39 |
|
|
40 |
Name: subversion |
Name: subversion |
41 |
Version: 1.7.10 |
Version: 1.7.10 |
42 |
%define subrel 1 |
%define subrel 2 |
43 |
Release: %mkrel 1 |
Release: %mkrel 1 |
44 |
Epoch: 2 |
Epoch: 2 |
45 |
Summary: A Concurrent Versioning System |
Summary: A Concurrent Versioning System |
54 |
Source6: %{name}-1.3.0-global-servers |
Source6: %{name}-1.3.0-global-servers |
55 |
Source7: http://svnbook.red-bean.com/nightly/en/svn-book-html-chunk.tar.bz2 |
Source7: http://svnbook.red-bean.com/nightly/en/svn-book-html-chunk.tar.bz2 |
56 |
Source8: svnserve.service |
Source8: svnserve.service |
57 |
|
Source9: svnserve-tmpfiles.conf |
58 |
Patch0: subversion-1.7.1-underlink.patch |
Patch0: subversion-1.7.1-underlink.patch |
59 |
# http://www.rz.uni-karlsruhe.de/~rz41/source/Patches/subversion-1.4.3/hook-scripts-patch |
# http://www.rz.uni-karlsruhe.de/~rz41/source/Patches/subversion-1.4.3/hook-scripts-patch |
60 |
# Patch1: subversion-1.6.0-deplibs.patch |
# Patch1: subversion-1.6.0-deplibs.patch |
223 |
Group: System/Servers |
Group: System/Servers |
224 |
Requires: %{name} = %{epoch}:%{version}-%{release} |
Requires: %{name} = %{epoch}:%{version}-%{release} |
225 |
Requires(pre): rpm-helper |
Requires(pre): rpm-helper |
226 |
|
Requires(preun): rpm-helper |
227 |
Requires(postun): rpm-helper |
Requires(postun): rpm-helper |
228 |
Requires(post): sed |
Requires(post): sed |
229 |
|
Requires(post): rpm-helper |
230 |
|
Requires(post): systemd |
231 |
# soname didn't change between 1.3.x and 1.4.x, but we |
# soname didn't change between 1.3.x and 1.4.x, but we |
232 |
# need the right one... |
# need the right one... |
233 |
Requires: %{libsvn} = %{epoch}:%{version} |
Requires: %{libsvn} = %{epoch}:%{version} |
247 |
%pre server |
%pre server |
248 |
%_pre_useradd svn /var/lib/svn /bin/false |
%_pre_useradd svn /var/lib/svn /bin/false |
249 |
|
|
250 |
|
%preun server |
251 |
|
%_preun_service svnserve |
252 |
|
|
253 |
%post server |
%post server |
254 |
|
%_tmpfilescreate svnserve |
255 |
|
%_post_service svnserve |
256 |
# fix svn entries in /etc/services |
# fix svn entries in /etc/services |
257 |
if ! grep -qE '^svn[[:space:]]+3690/(tcp|udp)[[:space:]]+svnserve' %{_sysconfdir}/services; then |
if ! grep -qE '^svn[[:space:]]+3690/(tcp|udp)[[:space:]]+svnserve' %{_sysconfdir}/services; then |
258 |
# cleanup |
# cleanup |
272 |
/var/lib/svn |
/var/lib/svn |
273 |
%{_mandir}/man8/svnserve.8* |
%{_mandir}/man8/svnserve.8* |
274 |
%{_mandir}/man5/svnserve.conf.5* |
%{_mandir}/man5/svnserve.conf.5* |
275 |
|
%{_tmpfilesdir}/svnserve.conf |
276 |
|
|
277 |
#-------------------------------------------------------------------------- |
#-------------------------------------------------------------------------- |
278 |
|
|
752 |
install -D -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}/10_mod_dav_svn.conf |
install -D -m 644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}/10_mod_dav_svn.conf |
753 |
install -D -m 644 %{SOURCE3} %{buildroot}%{_httpd_extconfdir}/subversion.conf |
install -D -m 644 %{SOURCE3} %{buildroot}%{_httpd_extconfdir}/subversion.conf |
754 |
|
|
755 |
|
%{__install} -D -p -m 0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/svnserve.conf |
756 |
|
|
757 |
# install the extra module |
# install the extra module |
758 |
|
|
759 |
# cleanup |
# cleanup |
836 |
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnrdump |
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnrdump |
837 |
|
|
838 |
# fix the stupid rpath stuff... |
# fix the stupid rpath stuff... |
839 |
find %{buildroot}%{perl_vendorarch} -type f -name "*.so" | xargs chrpath -d |
myf() { find %{buildroot}%{perl_vendorarch} -type f -name "*.so"; } |
840 |
|
# Fix the readonly permissions of the perl files. |
841 |
|
myf | xargs chmod u+w |
842 |
|
myf | xargs chrpath -d |
843 |
|
|
844 |
# handle translations |
# handle translations |
845 |
%find_lang %{name} |
%find_lang %{name} |
850 |
install -d %{buildroot}/var/lib/svn/repositories |
install -d %{buildroot}/var/lib/svn/repositories |
851 |
|
|
852 |
# Move perl man |
# Move perl man |
853 |
mv %{buildroot}%_prefix/local/share/man/man3/* %{buildroot}%{_mandir}/man3/ |
chmod u+w %{buildroot}%_prefix/local/share/man/man3/* |
854 |
|
mv -f %{buildroot}%_prefix/local/share/man/man3/* %{buildroot}%{_mandir}/man3/ |
855 |
|
|
856 |
# cleanup |
# cleanup |
857 |
find %{buildroot} -name "perllocal.pod" | xargs rm -f |
find %{buildroot} -name "perllocal.pod" | xargs rm -f |
858 |
|
|
859 |
# delete all .la files |
# delete all .la files |
860 |
find %{buildroot} -name *.la -delete |
find %{buildroot} -name *.la -delete |
861 |
|
|