[waf] Spec file fixes: Make %%prerel optional.

Thomas Moschny thm at fedoraproject.org
Thu Jun 7 17:11:16 UTC 2012


commit a136f910622cb7da76b0381c3d32372e94cb18e6
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Thu Jun 7 17:02:30 2012 +0200

    Spec file fixes: Make %%prerel optional.

 waf.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/waf.spec b/waf.spec
index 2abe98c..0035c3f 100644
--- a/waf.spec
+++ b/waf.spec
@@ -14,7 +14,7 @@
 
 Name:           waf
 Version:        1.7.0
-Release:        0.1.%{prerel}%{?dist}
+Release:        %{?prerel:0.}2%{?prerel:.%prerel}%{?dist}
 Summary:        A Python-based build system
 Group:          Development/Tools
 # The entire source code is BSD apart from pproc.py (taken from Python 2.5)
@@ -26,7 +26,7 @@ URL:            http://code.google.com/p/waf/
 # - /docs/book, as this is under CC-BY-NC-ND, which is not allowed in
 #   Fedora
 # - Waf logos
-Source:         waf-%{version}%{prerel}.stripped.tar.bz2
+Source:         waf-%{version}%{?prerel}.stripped.tar.bz2
 # use _datadir instead of /usr/lib
 Patch0:         waf-1.6.2-libdir.patch
 Patch1:         waf-1.6.9-logo.patch
@@ -209,6 +209,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Jun  7 2012 Thomas Moschny <thomas.moschny at gmx.de> - 1.7.0-0.2.pre3
+- Spec file fixes.
+
 * Thu Jun  7 2012 Michel Salim <salimma at fedoraproject.org> - 1.7.0-0.1.pre3
 - Update to 1.7.0pre3
 - Spec clean-up


More information about the scm-commits mailing list