[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8339: help the rpm spec file recognize development versions now th (tor/trunk)



Author: arma
Date: 2006-09-06 23:26:17 -0400 (Wed, 06 Sep 2006)
New Revision: 8339

Modified:
   tor/trunk/tor.spec.in
Log:
help the rpm spec file recognize development versions now that
they're not called foo-cvs


Modified: tor/trunk/tor.spec.in
===================================================================
--- tor/trunk/tor.spec.in	2006-09-07 01:23:15 UTC (rev 8338)
+++ tor/trunk/tor.spec.in	2006-09-07 03:26:17 UTC (rev 8339)
@@ -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