[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/maint-0.2.2 2/3] Update rpm spec file so that it will build without manual intervention on all rpm-based distributions
Author: Erinn Clark <erinn@xxxxxxxxxxxxxx>
Date: Sat, 21 Aug 2010 00:12:26 -0700
Subject: Update rpm spec file so that it will build without manual intervention on all rpm-based distributions
Commit: 18b1097f28c57d032847ce4e6de427e19fe2f51d
---
tor.spec.in | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/tor.spec.in b/tor.spec.in
index c0ac4ea..25557b7 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 <erinn@xxxxxxxxxxxxxx>
+- add conflicts for Fedora packages
+- add logic for SuSE since it requires special doc handling
+
* Mon Feb 22 2010 Erinn Clark <erinn@xxxxxxxxxxxxxx>
- remove AUTHORS from %doc line since it no longer exists upstream
- switch maintainers
--
1.7.1