summaryrefslogtreecommitdiff
path: root/tor.spec.in
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-04 15:34:04 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-04 15:34:04 +0000
commit831c988ea1b5104a31ef9cad295bf8a56b10b2e8 (patch)
treea12bab402a79c61f5edb1b2549bb9736e97c8e50 /tor.spec.in
parent69e5e8d0adc7d841c1b5c2d24f2c8228563cc66f (diff)
downloadtor-831c988ea1b5104a31ef9cad295bf8a56b10b2e8.tar.gz
tor-831c988ea1b5104a31ef9cad295bf8a56b10b2e8.zip
fix problems introduced by rpm spec patch.
svn:r2675
Diffstat (limited to 'tor.spec.in')
-rw-r--r--tor.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/tor.spec.in b/tor.spec.in
index 06bf1dfcb9..8d8d2dedd8 100644
--- a/tor.spec.in
+++ b/tor.spec.in
@@ -6,7 +6,7 @@
# This should be incremented whenever the spec file changes, but
# can drop back to zero at a new Tor version
-%define specver 0
+%define specver 1
## Things users may want to change
#
@@ -27,7 +27,7 @@
# versions... while making as few confusing changes to the standard
# release naming as possible.
# XXXX009 Execept that handling cvs breaks this.
-%define version %(echo %{native_version} | sed 's/-cvs/.cvs/' -e 's/pre/.pre./' -e 's/rc/.rc./' -e 's/([0-9])$/\1.release/')
+%define version %(echo %{native_version} | sed -e 's/-cvs/.cvs/' -e 's/pre/.pre./' -e 's/rc/.rc./' -e 's/([0-9])$/\1.release/')
## Release and OS identification song and dance
#
@@ -46,11 +46,11 @@
%if %{is_fc}
%define ostag %(sed -e 's/^.*release /fc/' -e 's/ .*$//' -e 's/\\./_/g' < /etc/fedora-release)
-%endif
-
+%else
%if %{is_rh}
%define ostag %(sed -e 's/^.*release /rh/' -e 's/ .*$//' -e 's/\\./_/g' < /etc/redhat-release)
%endif
+%endif
# These are probably wrong... just placeholders should we actually
# end up supporting these distributions