adapt for conf.modules.d with httpd 2.4
- add possible workaround for kwallet crasher (#810861) Resolves: rhbz#810861
This commit is contained in:
parent
0caf5ab92a
commit
de106c6ac6
@ -13,11 +13,14 @@
|
|||||||
|
|
||||||
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
||||||
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
|
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
|
||||||
|
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
|
||||||
|
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
|
||||||
|
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
||||||
|
|
||||||
Summary: A Modern Concurrent Version Control System
|
Summary: A Modern Concurrent Version Control System
|
||||||
Name: subversion
|
Name: subversion
|
||||||
Version: 1.7.4
|
Version: 1.7.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://subversion.apache.org/
|
URL: http://subversion.apache.org/
|
||||||
@ -234,9 +237,17 @@ make pure_vendor_install -C subversion/bindings/swig/perl/native \
|
|||||||
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
install -m 755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/subversion
|
install -m 755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/subversion
|
||||||
|
|
||||||
# Add subversion.conf configuration file into httpd/conf.d directory.
|
mkdir -p ${RPM_BUILD_ROOT}{%{_httpd_modconfdir},%{_httpd_confdir}}
|
||||||
install -m 755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
|
|
||||||
install -m 644 $RPM_SOURCE_DIR/subversion.conf ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
|
%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}"
|
||||||
|
# httpd <= 2.2.x
|
||||||
|
install -p -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_httpd_confdir}
|
||||||
|
%else
|
||||||
|
sed -n /^LoadModule/p %{SOURCE1} > 10-subversion.conf
|
||||||
|
sed /^LoadModule/d %{SOURCE1} > example.conf
|
||||||
|
touch -r %{SOURCE1} 10-subversion.conf example.conf
|
||||||
|
install -p -m 644 10-subversion.conf ${RPM_BUILD_ROOT}%{_httpd_modconfdir}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Remove unpackaged files
|
# Remove unpackaged files
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_includedir}/subversion-*/*.txt \
|
rm -rf ${RPM_BUILD_ROOT}%{_includedir}/subversion-*/*.txt \
|
||||||
@ -436,8 +447,11 @@ fi
|
|||||||
|
|
||||||
%files -n mod_dav_svn
|
%files -n mod_dav_svn
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) %{_sysconfdir}/httpd/conf.d/subversion.conf
|
%config(noreplace) %{_httpd_modconfdir}/*.conf
|
||||||
%{_libdir}/httpd/modules/mod_*.so
|
%{_libdir}/httpd/modules/mod_*.so
|
||||||
|
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
|
||||||
|
%doc example.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
%files perl
|
%files perl
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -459,6 +473,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 19 2012 Joe Orton <jorton@redhat.com> - 1.7.4-4
|
||||||
|
- adapt for conf.modules.d with httpd 2.4
|
||||||
|
- add possible workaround for kwallet crasher (#810861)
|
||||||
|
|
||||||
* Fri Mar 30 2012 Joe Orton <jorton@redhat.com> - 1.7.4-3
|
* Fri Mar 30 2012 Joe Orton <jorton@redhat.com> - 1.7.4-3
|
||||||
- re-enable test suite
|
- re-enable test suite
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user