1
%define apache_version 2.0.52
2
%define apr_version 0.9.7
3
%define neon_version 0.26.1
4
%define python_version 2.4
5
%define sqlite_version 3.4
6
%define swig_version 1.3.25
7
%define apache_dir /usr
9
# If you don't want to take time for the tests then set make_*_check to 0.
10
%define make_ra_local_bdb_check 1
11
%define make_ra_svn_bdb_check 1
12
%define make_ra_dav_bdb_check 1
13
%define make_ra_local_fsfs_check 1
14
%define make_ra_svn_fsfs_check 1
15
%define make_ra_dav_fsfs_check 1
16
Summary: A Concurrent Versioning system similar to but better than CVS.
21
Group: Utilities/System
22
URL: http://subversion.tigris.org
23
SOURCE0: subversion-%{version}-%{release}.tar.gz
24
SOURCE3: filter-requires.sh
25
Patch1: subversion-0.31.0-rpath.patch
26
Patch2: python-2.4.patch
29
Packager: David Summers <david@summersoft.fay.ar.us>
30
Requires: apr >= %{apr_version}
31
Requires: apr-util >= %{apr_version}
32
Requires: db4 >= 4.2.52
33
Requires: neon >= %{neon_version}
34
Requires: sqlite >= %{sqlite_version}
35
BuildPreReq: autoconf >= 2.53
36
BuildPreReq: db4-devel >= 4.2.52
37
BuildPreReq: docbook-style-xsl >= 1.58.1
39
BuildPreReq: expat-devel
41
BuildPreReq: httpd >= %{apache_version}
42
BuildPreReq: apr-devel >= %{apr_version}
43
BuildPreReq: apr-util-devel >= %{apr_version}
44
BuildPreReq: libtool >= 1.4.2
45
BuildPreReq: libxslt >= 1.0.27
46
BuildPreReq: neon-devel >= %{neon_version}
47
BuildPreReq: openssl-devel
49
BuildPreReq: python%{python_version} >= %{python_version}
50
BuildPreReq: python%{python_version}-devel >= %{python_version}
51
BuildPreReq: swig >= %{swig_version}
52
BuildPreReq: sqlite >= %{sqlite_version}
53
BuildPreReq: zlib-devel
54
Obsoletes: subversion-server
55
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
58
Subversion is a concurrent version control system which enables one or more
59
users to collaborate in developing and maintaining a hierarchy of files and
60
directories while keeping a history of all changes. Subversion only stores
61
the differences between versions, instead of every complete file. Subversion
62
also keeps a log of who, when, and why changes occurred.
64
As such it basically does the same thing CVS does (Concurrent Versioning System)
65
but has major enhancements compared to CVS and fixes a lot of the annoyances
68
*** Note: This is a relocatable package; it can be installed anywhere you like
69
with the "rpm -Uvh --prefix /your/favorite/path" command. This is useful
70
if you don't have root access on your machine but would like to use this
74
Group: Utilities/System
75
Summary: Development package for Subversion developers.
76
Requires: subversion = %{version}-%{release}
78
The subversion-devel package includes the static libraries and include files
79
for developers interacting with the subversion package.
81
%package -n mod_dav_svn
82
Group: Utilities/System
83
Summary: Apache server module for Subversion server.
84
Requires: apr >= %{apr_version}
85
Requires: apr-util >= %{apr_version}
86
Requires: subversion = %{version}-%{release}
87
Requires: httpd >= %{apache_version}
88
BuildPreReq: httpd-devel >= %{apache_version}
89
%description -n mod_dav_svn
90
The mod_dav_svn package adds the Subversion server Apache module to
91
the Apache directories and configuration.
94
Group: Utilities/System
95
Summary: Allows Perl scripts to directly use Subversion repositories.
98
Provides Perl (SWIG) support for Subversion.
101
Group: Utilities/System
102
Summary: Allows Python scripts to directly use Subversion repositories.
103
Requires: python%{python_version} >= %{python_version}
105
Provides Python (SWIG) support for Subversion.
108
Group: Utilities/System
109
Summary: Tools for Subversion
111
Tools for Subversion.
114
* Sat Mar 28 2009 David Summers <david@summersoft.fay.ar.us> r36833
115
- [RHEL4] Changes to build 1.7 trunk, backported to 1.6.
116
- Added patch to build with with new required non-RHEL4 python-2.4.6.
117
- Added patch to fix Subversion APACHE APR version checking.
119
* Sun Mar 01 2009 David Summers <david@summersoft.fay.ar.us> r36231
120
- [RHEL5] Changes to build 1.7 trunk, backported to 1.6.
122
* Tue Dec 23 2008 David Summers <david@summersoft.fay.ar.us> r34901
123
- [RHEL3] SPEC file change to build RPM 1.5.x on RHEL3.
125
* Sat Jun 30 2007 David Summers <david@summersoft.fay.ar.us> r27438
126
- [RHEL5] Added neon-0.26.1 requirement.
128
* Sat Jun 30 2007 David Summers <david@summersoft.fay.ar.us> r25592
129
- [RHEL5] Added RHEL5 SPEC file.
131
* Fri Jul 07 2006 David Summers <david@summersoft.fay.ar.us> r20468
132
- [RH8,RH9,RHEL3,RHEL4] Updated to APR/APR-UTIL 0.9.12.
133
RHEL3 requires httpd-2.0.46-56.ent.centos.2.1 or higher which includes
136
* Mon Jun 26 2006 David Summers <david@summersoft.fay.ar.us> r20253
137
- [RHEL3,RHEL4] Follow-up to r20040, changed %{apache_dir} to %{_libdir}
138
and %{_prefix} to %{_libdir} to help out people compiling 64-bit versions.
139
Thanks to Toby Johnson and others.
141
* Sun Jun 11 2006 David Summers <david@summersoft.fay.ar.us> r20040
142
- Figured out another (better) way to fix Subversion bug #1456 instead of
143
depending on a third program (chrpath); Used Fedora Core RPATH patch to
144
change the build procedure to eliminate the wierd RPATH in the Subversion
147
* Sat Jun 10 2006 David Summers <david@summersoft.fay.ar.us> r20038
148
- Changed /usr/lib to %{_libdir} and /usr/bin to %{_bindir} to help out
149
people compiling 64-bit versions. More needs to be done.
151
* Mon Mar 20 2006 David Summers <david@summersoft.fay.ar.us> r18962
152
- Added needed 'gettext' BuildPreReq.
153
Thanks go to Francis Giraldeau <francis.giraldeau@revolutionlinux.com>.
155
* Sat Jan 07 2006 David Summers <david@summersoft.fay.ar.us> r18013
156
- Simplify apache regression testing.
158
* Sat Dec 17 2005 David Summers <david@summersoft.fay.ar.us> r17832
159
- Figured out how to disable module configuration with --disable-mod-activation.
161
* Sat Dec 17 2005 David Summers <david@summersoft.fay.ar.us> r17828
162
- Fixed Subversion bug # 1456: Subversion RedHat RPMs have bad interaction with
165
* Sat Sep 24 2005 David Summers <david@summersoft.fay.ar.us> r16237
166
- [RHL8, RHL9] Updated to swig 1.3.25 to get rid of run-time dependencies on
167
swig package. With this update, only the developer/packager needs to install
170
* Sat Sep 24 2005 David Summers <david@summersoft.fay.ar.us> r16236
171
- [RHL7] Update do swig-1.3.25. This makes it so that only the
172
packager/developer needs to install the swig package.
174
* Fri Sep 23 2005 David Summers <david@summersoft.fay.ar.us> r16222
175
- [RHEL3] Update to SWIG 1.3.25. This makes it so that only the
176
developer/packager needs the SWIG package installed.
178
* Wed Aug 31 2005 David Summers <david@summersoft.fay.ar.us> r16011
179
- [RHEL4] Update to SWIG 1.3.25. This makes it so that only the
180
developer/packager needs the SWIG package installed.
182
* Sun Aug 07 2005 David Summers <david@summersoft.fay.ar.us> r15615
183
- [RHEL4] Fix bug where RHEL4 version can't find Python bindings.
184
RHEL4 uses python 2.3 instead of python 2.2.
186
* Mon Jun 13 2005 David Summers <david@summersoft.fay.ar.us> r15049
187
- [RHL7, RHL8, RHL9] Fix breakage that *only* occurs during release build
190
* Sat Apr 30 2005 David Summers <david@summersoft.fay.ar.us> r14530
191
- [!RHEL3] Make backend regression tests explicit and make sure we do them for
192
both BDB and FSFS backends.
194
* Sun Apr 24 2005 David Summers <david@summersoft.fay.ar.us> r14429
195
- [RHEL4] Add build for RHEL4 for both BDB and FSFS back-ends.
197
* Sun Apr 17 2005 David Summers <david@summersoft.fay.ar.us> r14276
198
- [RHEL3] *** WARNING: This version drops support for Berkeley BDB.
200
*** WARNING ***: If you have previously used the Berkeley BDB back-end
201
you must do a svnadmin dump BEFORE installing this package and a svnadmin
202
load AFTER installing it. I'm hoping this will be not be too much of a
203
hassle because to implement the new subversion 1.2 xdelta compression you
204
will need to do a dump/load anyway.
206
*** Note: This is not a requirement/problem of Subversion but of my previous
207
subversion packages where I tried to back-port/forward-port required packages
208
that came with the distribution.
210
- [RHEL3] Finally gave up trying to integrate manually with forward ported and
211
back ported packages. There are just too many interdependencies between
212
APR, BDB, APACHE, PHP, etc.
214
- [RHEL3] Changed subversion-server package name to mod_dav_svn.
216
* Thu Mar 31 2005 David Summers <david@summersoft.fay.ar.us> r13821
217
- Greatly reduce disk usage by telling each test pass to cleanup after
220
* Sun Mar 27 2005 David Summers <david@summersoft.fay.ar.us> r13716
221
- [RHL7] Fixed dependencies to use libtool and autoconf253 that already comes
222
with RedHat 7.3. I obviously didn't do my homework a couple of years ago.
223
No need to support updated/custom versions of these.
225
* Sun Mar 27 2005 David Summers <david@summersoft.fay.ar.us> r13714
226
- Make use of the new swig-1.3.19-3 package which allows swig-1.3.19 to
227
co-exist with the swig-1.1p5 package that comes with Redhat.
229
* Sun Mar 27 2005 David Summers <david@summersoft.fay.ar.us> r13711
230
- Take out "static build" feature that never actually worked as intended.
232
* Sun Mar 27 2005 David Summers <david@summersoft.fay.ar.us> r13709
233
- Fix http tests to work with new locking feature which now requires
236
* Tue Mar 15 2005 David Summers <david@summersoft.fay.ar.us> r13417
237
- Supplementary: Take out documentation patch altogether.
238
- [RHEL3, RHEL4] Turn testing back on, it was accidentally turned off.
240
* Sun Jan 09 2005 David Summers <david@summersoft.fay.ar.us> r13202
241
- Bye bye book; it is now no longer a part of the Subversion repository but
242
is at the http://svn.red-bean.com/svnbook/ URL.
243
I will probably create a separate RPM package for it now...stay tuned.
245
* Sun Jan 09 2005 David Summers <david@summersoft.fay.ar.us> 1.1.2-12650
246
- Delete apr, apr-util, and neon from the distribution tree as those
247
packages are already installed.
249
* Wed Dec 29 2004 David Summers <david@summersoft.fay.ar.us> 1.1.2-12531
250
- Added "noreplace" option to subversion.conf to not replace it if it has
251
been changed. This (hopefully) prevents the server from failing when doing
252
an upgrade. Thanks to Peter Holzleitner for the suggestion.
254
* Wed Jul 07 2004 David Summers <david@summersoft.fay.ar.us> 1.1.0-10174
255
- Require neon-0.24.7 to fix invalid XML (compression) bug.
257
* Thu May 20 2004 Ben Reser <ben@reser.org> 1.1.0-9807
258
- [RHL7, RHL8, RHL9] Require neon 0.24.6 to fix a security bug.
261
* Wed May 05 2004 David Summers <david@summersoft.fay.ar.us> 1.1.0-9628
262
- [!RHL7] Track changes to perl binding compile and install.
263
- Locale files now installed.
265
* Mon Apr 19 2004 Blair Zajac <blair@orcaware.com> 1.1.0-9438
266
- [RHL7, RHL8, RHL9] Require neon 0.24.5 to fix format string vulnerabilities
267
in XML/207 response handling. See
268
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0179
270
* Wed Mar 10 2004 David Summers <david@summersoft.fay.ar.us> 1.0.0-8983
271
- [RHEL3, RHEL4] Fedora-1 and WBEL-3 require db42-4.2.52 or greater.
273
* Tue Feb 24 2004 David Summers <david@summersoft.fay.ar.us> 1.0.0-8823
274
- [!RHL7] cvs2svn moved to separate project/package.
276
* Thu Feb 19 2004 David Summers <david@summersoft.fay.ar.us> 0.37.0-8770
277
- cvs2svn.1 man page taken out of distribution. Change RPM so that if it
278
just so happens to magically reappear someday then it will get put into
281
* Wed Jan 28 2004 David Summers <david@summersoft.fay.ar.us> 0.37.0-8534
282
- Change version number to new format based on dev list discussion.
284
* Sun Jan 18 2004 David Summers <david@summersoft.fay.ar.us> 0.36.0-8372
285
- Switched to the Redhat way of doing the "swig" package where it is not
286
separated into "swig" and "swig-runtime".
287
- Added subversion-perl package to support Perl (SWIG) bindings.
288
[RHL7] *** Note: Made it conditional as RedHat 7.x doesn't have the
291
* Sat Jan 17 2004 David Summers <david@summersoft.fay.ar.us> 0.36.0-8362
292
- Now requires swig-1.3.19 so we can build the upcoming perl bindings.
294
* Sat Dec 27 2003 David Summers <david@summersoft.fay.ar.us> 0.35.1-8104
295
- [RHL7] Patch by Ben Reser <ben@reser.org> to get documentation to build
297
- [RHL7] Updated to apache 2.0.48 (apr/apr-util 0.9.5).
298
- [RHL7] Added svnserve and svnserve.conf man pages.
300
* Thu Dec 25 2003 David Summers <david@summersoft.fay.ar.us> 0.35.1-8085
301
- [!RHL7] Patch by Ben Reser <ben@reser.org> to get documentation to build
303
- [!RHL7] svnserve.conf and svnserve manual pages added.
305
* Fri Dec 19 2003 David Summers <david@summersoft.fay.ar.us> 0.35.0-8054
306
- Require httpd-2.0.48. *** Note: I don't yet have packages for httpd-2.0.48.
307
- [!RHL7] Require apr-0.9.5.
309
* Tue Oct 25 2003 Blair Zajac <blair@orcaware.com> 0.32.1-7520
310
- Require neon 0.24.4.
312
* Tue Oct 7 2003 Blair Zajac <blair@orcaware.com> 0.30.0-7342
313
- Require neon 0.24.3.
315
* Sat Jul 19 2003 David Summers <david@summersoft.fay.ar.us> 0.25.0-6515
316
- Added cvs2svn regression tests.
318
* Sat Jul 19 2003 David Summers <david@summersoft.fay.ar.us> 0.25.0-6514
319
- PORTING file no longer exists.
320
- Thanks to Ralph Loader <suckfish@ihug.co.nz> for the following changes:
321
- [!RHL7] Get rid of extraneous perl module dependencies via filter-requires.sh
323
- gdbm-devel is not a build pre-req for subversion but APR/APR-UTIL.
324
- LDFLAGS no longer needed when compiling without subversion-devel installed.
325
- Use %configure instead of ./configure.
326
- expat is not a direct dependency of subversion.
327
- No need to copy separate subversion.conf and httpd.davcheck.conf as they
328
are in the source tree, just reference them there.
329
- Simplify "make install" by making use of DESTDIR macro instead of setting
330
individual directory components.
332
* Sun Jul 13 2003 David Summers <david@summersoft.fay.ar.us> 0.25.0-6462
333
- Fix revision number to be properly generated during RPM build. Can't use
334
the normal svnversion command at this point because the SRPM is not a
335
repository that we can get the version from via svnversion command.
337
* Sun Jul 13 2003 David Summers <david@summersoft.fay.ar.us> 0.25.0-6461
338
- Fix install/un-install not to bomb out on update if apache (httpd) doesn't
341
* Thu Jul 10 2003 David Summers <david@summersoft.fay.ar.us> 0.25.0-6434
342
- Apache 2.0.47 now recommended because of security issues.
344
* Sat Jun 28 2003 David Summers <david@summersoft.fay.ar.us> 0.24.2-6365
345
- [!RHL7] RedHat decided to break out apr and apr-util separately from apache
347
- [!RHL7] This also now builds on RedHat 9.0 because the new apr/apu-config
348
correctly picks up the openssl include files.
350
* Tue Jun 24 2003 David Summers <david@summersoft.fay.ar.us> 0.24.2-6334
351
- Now requires apache 2.0.46.
353
* Mon Jun 16 2003 David Summers <david@summersoft.fay.ar.us> 0.24.1-6256
354
- Added doxygen documentation.
356
* Tue Jun 10 2003 David Summers <david@summersoft.fay.ar.us> 0.23.0-6188
357
- Track changes for addition of mod_authz_svn httpd module.
359
* Sat Jun 07 2003 David Summers <david@summersoft.fay.ar.us> 0.23.0-6163
360
- svn-design.info is no longer built.
362
* Sat May 24 2003 David Summers <david@summersoft.fay.ar.us> 0.23.0-6036
363
- Track changes to Python SWIG build.
364
- Now requires neon-0.23.9 to pick up bug and security fixes.
365
- Now builds the book and puts it in /usr/share/doc/subversion-VERSION/book
366
directory. RedHat 7.x and RedHat 8.x users who build this RPM will need to
367
install or upgrade to the RedHat 9.0 docbook-style-xsl and libxslt packages.
369
* Thu May 15 2003 David Summers <david@summersoft.fay.ar.us> 0.22.2-5943
370
- The subversion package now requires python 2 because cvs2svn has been
371
unswigified and just depends on python 2.
372
- The new subversion-python package requires python 2.
374
* Sat May 10 2003 David Summers <david@summersoft.fay.ar.us> 0.22.1-5879
375
- svn-config has been taken back out of the distribution.
376
- cvs2svn no longer requires SWIG, so rename the subversion-cvs2svn package to
377
subversion-python and move the cvs2svn and RCS parser into the subversion
379
- Added cvs2svn man page.
381
* Sun Apr 13 2003 David Summers <david@summersoft.fay.ar.us> 0.20.1-5610
382
- Added svndumpfilter.
384
* Fri Apr 04 2003 David Summers <david@summersoft.fay.ar.us> 0.18.1-5549
385
- [!RHL7] Updated to Apache 2.0.45.
386
- [!RHL7] Took out libsvn_auth as it is no longer needed or used.
388
* Thu Apr 03 2003 David Summers <david@summersoft.fay.ar.us> 0.20.1-5542
389
- [RHL7] Updated to apache-2.0.45-0.1.
390
- [RHL7] Took out libsvn_auth as it is no longer generated or used.
392
* Sat Mar 01 2003 David Summers <david@summersoft.fay.ar.us> 0.18.1-5173
393
- Enabled RA_DAV checking.
394
Now requires httpd package to build because of RA_DAV tests.
396
* Sat Jan 18 2003 David Summers <david@summersoft.fay.ar.us> 0.16.1-4433
397
- Created tools package to hold the tools.
399
* Thu Jan 16 2003 David Summers <david@summersoft.fay.ar.us> 0.16.1-4405
400
- Now requires Apache HTTPD >= 2.0.44-0.1 (APACHE_2_0_BRANCH) which contains
401
the new version of APR/APR-UTILS as of 2003.01.15.
402
- Added svnversion command.
404
* Tue Dec 31 2002 David Summers <david@summersoft.fay.ar.us> 0.16.0-4218
405
- Create a svnadmin.static which is copied to svnadmin-version-release
406
when the package is erased, so users can still dump/load their repositories
407
even after they have upgraded the RPM package.
409
* Sun Dec 29 2002 David Summers <david@summersoft.fay.ar.us> 0.16.0-4206
410
- [RHL7] Switched to new db4 package to be more like RedHat 8.0.
411
- [RHL7] Switched to new version of apache that combines APR and APRUTILS into
414
* Sat Dec 14 2002 David Summers <david@summersoft.fay.ar.us> 0.16.0-4128
415
- SWIG now builds so we can use cvs2svn.
417
* Fri Oct 04 2002 David Summers <david@summersoft.fay.ar.us> 0.14.3-3280
418
- Made cvs2svn conditional (at least until we can get it to build consistently
421
* Sat Sep 21 2002 David Summers <david@summersoft.fay.ar.us> 0.14.3-3205
422
- Added SWIG dependencies to add cvs2svn capabilities.
424
* Fri Aug 16 2002 David Summers <david@summersoft.fay.ar.us> 0.14.1-2984
425
- Now requires neon-0.22.0.
427
* Thu Aug 15 2002 David Summers <david@summersoft.fay.ar.us> 0.14.1-2978
428
- Took out loading mod_dav_svn from subversion.spec file and put it in
429
subversion.conf file which goes into the apache conf directory.
430
- Simplify what gets put into httpd.conf to only the include for the
431
subversion.conf file.
432
(Thanks to Scott Harrison <sharrison@users.sourceforge.net> for prompting
435
* Thu Aug 08 2002 David Summers <david@summersoft.fay.ar.us> 0.14.0-2919
436
- Updated to APR/APR-UTIL 2002-08-08.
438
* Tue Jun 25 2002 David Summers <david@summersoft.fay.ar.us> 0.13.0-2332
439
- Updated to APACHE/APR/APR-UTIL 2002-06-25.
440
- Previous version had a few problems because of missing apache error/ files.
442
* Sun Jun 23 2002 David Summers <david@summersoft.fay.ar.us> 0.13.0-2318
443
- Updated to apache-2.0.40-0.3.
444
- Updated to subversion-0.13.1-2318.
446
* Tue Jun 18 2002 David Summers <david@summersoft.fay.ar.us> 0.13.0-2277
447
- Updated for RedHat 7.3 (autoconf253).
448
- Added a bunch of pre-requisites I didn't know were needed because I built a
449
new machine that didn't have them already installed.
450
- Fixed installation of man and info documentation pages.
452
* Wed Mar 06 2002 David Summers <david@summersoft.fay.ar.us> 0.9.0-1447
453
- Back to apache-libapr* stuff, hopefully to stay.
455
* Sun Feb 24 2002 David Summers <david@summersoft.fay.ar.us> 0.9.0-1373
456
- Fixed expat.patch to not have to make so many changes by writing a small
457
shell script that changes libexpat to -lexpat.
459
* Fri Feb 22 2002 Blair Zajac <blair@orcaware.com> 0.9.0-1364
460
- Updated to neon-0.19.2.
462
* Mon Feb 11 2002 David Summers <david@summersoft.fay.ar.us> 0.8.0-1250
463
- Back to using apr and apr-util separately from apache.
465
* Mon Feb 11 2002 David Summers <david@summersoft.fay.ar.us> 0.8.0-1232
466
- Updated to APR and APR-UTIL 2002.02.11.
467
- Updated to apache-2.0.32-0.2. (Requires apache-libapr and apache-libapr-util).
468
- Took out a (now non-existant) documentation file.
469
- Moved SPEC file changelog to after all package definitions.
471
* Sun Feb 03 2002 David Summers <david@summersoft.fay.ar.us> 0.8.0-1153
472
- Updated to neon-0.18.5.
473
- Broke up apache and apache-devel into apache-apr, apache-apr-devel,
474
apache-apr-utils, and apache-apr-utils-devel.
475
- Updated apache to APR and APR-UTILS to 2002.02.03 version.
477
* Sat Feb 02 2002 David Summers <david@summersoft.fay.ar.us> 0.8.0-1147
478
- Now builds without the separate APR package as it is built into and
479
"exported" from apache-2.0.31-0.3.
481
* Fri Feb 01 2002 David Summers <david@summersoft.fay.ar.us> 0.8.0-1132
482
- Took out patches to install procedure now not required because of fixes
485
* Fri Feb 01 2002 David Summers <david@summersoft.fay.ar.us> 0.8.0-1129
486
- Added requirement for APR 0.2002.01.19 rev 2 where the /usr/bin/apr-config
489
* Sun Oct 28 2001 David Summers <david@summersoft.fay.ar.us>
490
- Release M5-r340: Added the subversion-server package.
492
* Fri Oct 26 2001 David Summers <david@summersoft.fay.ar.us>
493
- Release M5-r327: No longer need expat-lite. We can use the normal expat.
495
* Thu Sep 27 2001 David Summers <david@summersoft.fay.ar.us>
496
- Release M3-r117: Initial Version.
498
%define __perl_requires %{SOURCE3}
499
%define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch)
500
%define perl_version %(eval "`perl -V:version`"; echo $version)
506
%patch1 -p1 -b .rpath
507
# Patch for python-2.4.6
508
%patch2 -p0 -b .python
509
# Patch for apache APR version checking.
510
%patch3 -p0 -b .apache
512
if [ -f /usr/bin/autoconf-2.53 ]; then
513
AUTOCONF="autoconf-2.53"
514
AUTOHEADER="autoheader-2.53"
515
export AUTOCONF AUTOHEADER
519
# Delete apr, apr-util, and neon from the tree as those packages should already
521
rm -rf apr apr-util neon
527
--disable-mod-activation \
530
--with-python=%{_bindir}/python%{pyver} \
531
--with-apxs=%{apache_dir}/sbin/apxs \
532
--with-apr=%{apache_dir}/bin/apr-config \
533
--with-apr-util=%{apache_dir}/bin/apu-config \
540
# Build python bindings
543
# Build PERL bindings
544
make swig-pl DESTDIR=$RPM_BUILD_ROOT
547
%if %{make_ra_local_bdb_check}
548
echo "*** Running regression tests on RA_LOCAL (FILE SYSTEM) layer ***"
549
make check CLEANUP=true FS_TYPE=bdb
550
echo "*** Finished regression tests on RA_LOCAL (FILE SYSTEM) layer ***"
553
%if %{make_ra_svn_bdb_check}
554
echo "*** Running regression tests on RA_SVN (SVN method) layer ***"
555
make svnserveautocheck CLEANUP=true FS_TYPE=bdb
556
echo "*** Finished regression tests on RA_SVN (SVN method) layer ***"
559
%if %{make_ra_dav_bdb_check}
560
echo "*** Running regression tests on RA_DAV (HTTP method) layer ***"
561
make davautocheck CLEANUP=true FS_TYPE=bdb
562
echo "*** Finished regression tests on RA_DAV (HTTP method) layer ***"
565
%if %{make_ra_local_fsfs_check}
566
echo "*** Running regression tests on RA_LOCAL (FILE SYSTEM) layer ***"
567
make check CLEANUP=true FS_TYPE=fsfs
568
echo "*** Finished regression tests on RA_LOCAL (FILE SYSTEM) layer ***"
571
%if %{make_ra_svn_fsfs_check}
572
echo "*** Running regression tests on RA_SVN (SVN method) layer ***"
573
make svnserveautocheck CLEANUP=true FS_TYPE=fsfs
574
echo "*** Finished regression tests on RA_SVN (SVN method) layer ***"
577
%if %{make_ra_dav_fsfs_check}
578
echo "*** Running regression tests on RA_DAV (HTTP method) layer ***"
579
make davautocheck CLEANUP=true FS_TYPE=fsfs
580
echo "*** Finished regression tests on RA_DAV (HTTP method) layer ***"
584
rm -rf $RPM_BUILD_ROOT
585
mkdir -p $RPM_BUILD_ROOT/%{apache_dir}/conf
586
make install DESTDIR="$RPM_BUILD_ROOT"
588
# Add subversion.conf configuration file into httpd/conf.d directory.
589
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
590
cp packages/rpm/rhel-4/subversion.conf $RPM_BUILD_ROOT/etc/httpd/conf.d
592
# Install Python SWIG bindings.
593
make install-swig-py DESTDIR=$RPM_BUILD_ROOT DISTUTIL_PARAM=--prefix=$RPM_BUILD_ROOT
594
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages
595
mv $RPM_BUILD_ROOT/%{_libdir}/svn-python/* $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages
596
rmdir $RPM_BUILD_ROOT/%{_libdir}/svn-python
598
# Install PERL SWIG bindings.
599
make install-swig-pl DESTDIR=$RPM_BUILD_ROOT
601
# Clean up unneeded files for package installation
602
rm -rf $RPM_BUILD_ROOT/%{_libdir}/perl5/%{perl_version}
604
# Set up contrib and tools package files.
605
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/subversion
606
cp -r tools $RPM_BUILD_ROOT/%{_libdir}/subversion
607
cp -r contrib $RPM_BUILD_ROOT/%{_libdir}/subversion
609
# Create doxygen documentation.
610
doxygen doc/doxygen.conf
613
# Restart apache server if needed.
614
source /etc/init.d/functions
615
if [ "`pidof httpd`"x != "x" ]; then
616
/etc/init.d/httpd restart || true
619
%postun -n mod_dav_svn
620
# Restart apache server if needed.
621
source /etc/init.d/functions
622
if [ "`pidof httpd`"x != "x" ]; then
623
/etc/init.d/httpd restart || true
627
rm -rf $RPM_BUILD_ROOT
630
%defattr(-,root,root)
631
%doc BUGS CHANGES COMMITTERS COPYING HACKING INSTALL README
632
%doc subversion/LICENSE
635
%{_bindir}/svndumpfilter
639
%{_bindir}/svnversion
640
%{_libdir}/libsvn_client*so*
641
%{_libdir}/libsvn_delta*so*
642
%{_libdir}/libsvn_diff*so*
643
%{_libdir}/libsvn_fs*so*
644
%{_libdir}/libsvn_ra*so*
645
%{_libdir}/libsvn_repos*so*
646
%{_libdir}/libsvn_subr*so*
647
%{_libdir}/libsvn_wc*so*
648
/usr/share/locale/*/*/*
649
/usr/share/man/man1/*
650
/usr/share/man/man5/*
651
/usr/share/man/man8/*
654
%defattr(-,root,root)
655
%doc doc/doxygen/html/*
657
%{_libdir}/libsvn*.la
658
/usr/include/subversion-1
660
%files -n mod_dav_svn
661
%defattr(-,root,root)
662
%config(noreplace) /etc/httpd/conf.d/subversion.conf
663
%{_libdir}/httpd/modules/mod_dav_svn.so
664
%{_libdir}/httpd/modules/mod_authz_svn.so
667
%defattr(-,root,root)
669
%{perl_sitearch}/auto/SVN
670
%{_libdir}/libsvn_swig_perl*so*
671
/usr/share/man/man3/SVN*
674
%defattr(-,root,root)
675
%{_libdir}/python%{pyver}/site-packages/svn
676
%{_libdir}/python%{pyver}/site-packages/libsvn
677
%{_libdir}/libsvn_swig_py*so*
680
%defattr(-,root,root)
681
%{_libdir}/subversion/tools
682
%{_libdir}/subversion/contrib