From 18b1097f28c57d032847ce4e6de427e19fe2f51d Mon Sep 17 00:00:00 2001 From: Erinn Clark Date: Sat, 21 Aug 2010 00:12:26 -0700 Subject: [PATCH] Update rpm spec file so that it will build without manual intervention on all rpm-based distributions --- tor.spec.in | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tor.spec.in b/tor.spec.in index c0ac4ea8da..25557b73e2 100644 --- a/tor.spec.in +++ b/tor.spec.in @@ -117,6 +117,7 @@ BuildRequires: openssl-devel >= 0.9.7 %endif %if %{is_fc} BuildRequires: rpm-build >= 4.0 +Conflicts: tor-core, tor-lsb, tor-upstart %endif Requires(pre): /usr/bin/id, /bin/date, /bin/sh Requires(pre): %{_sbindir}/useradd, %{_sbindir}/groupadd @@ -153,7 +154,7 @@ for high-stakes anonymity. %build %if %{is_suse} -%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup} +%configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup} --docdir=%{_docdir}/%{name} %else %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup} %endif @@ -262,14 +263,20 @@ exit 0 %files %defattr(-,root,root) +%if %{is_suse} +%doc INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO doc/*html +%endif %doc INSTALL LICENSE README ChangeLog doc/HACKING doc/TODO %{_mandir}/man*/* -%{_docdir}/tor/* %{_bindir}/tor %{_bindir}/torctl %{_bindir}/torify %{_bindir}/tor-resolve %{_bindir}/tor-gencert +%if %{is_suse} +%else +%{_docdir}/* +%endif %{_datadir}/tor/geoip %config %{_initrddir}/%{name} %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name} @@ -280,6 +287,10 @@ exit 0 %attr(0750,%{toruser},%{torgroup}) %dir %{_localstatedir}/log/%{name} %changelog +* Fri Aug 20 2010 Erinn Clark +- add conflicts for Fedora packages +- add logic for SuSE since it requires special doc handling + * Mon Feb 22 2010 Erinn Clark - remove AUTHORS from %doc line since it no longer exists upstream - switch maintainers -- 2.11.4.GIT