diff options
author | Roger Dingledine <arma@torproject.org> | 2006-09-07 03:26:17 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-09-07 03:26:17 +0000 |
commit | 36d4aff7689b78ce064275f9db084db252ad7608 (patch) | |
tree | cb1f812b5f34b73729990016526c24c91fa88248 /tor.spec.in | |
parent | ae67a044f0a47225ddbf19b09eb70e9423528f05 (diff) | |
download | tor-36d4aff7689b78ce064275f9db084db252ad7608.tar.gz tor-36d4aff7689b78ce064275f9db084db252ad7608.zip |
help the rpm spec file recognize development versions now that
they're not called foo-cvs
svn:r8339
Diffstat (limited to 'tor.spec.in')
-rw-r--r-- | tor.spec.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tor.spec.in b/tor.spec.in index f46b5762e5..405088c18e 100644 --- a/tor.spec.in +++ b/tor.spec.in @@ -84,9 +84,9 @@ # Using the build date ensures that every build really does get # a different release number. We use this trick for CVS versions. # For release versions, we don't want or need it. -%define is_cvs_version %(echo %{native_version} | grep 'cvs' > /dev/null && echo 1 || echo 0) +%define is_dev_version %(echo %{native_version} | grep 'dev' > /dev/null && echo 1 || echo 0) -%if %{is_cvs_version} +%if %{is_dev_version} %define blddate %(date -u +"%Y%m%d%H%M") %define release %{pkgspec}.%{specver}.%{ostag}.%{blddate} %else |