[dokuwiki] Use macros for dokuwiki release numbers

Adam Tkac atkac at fedoraproject.org
Thu Dec 12 16:26:41 UTC 2013


commit 88d46a9fb1ebbd0b680f44663336fdc54176c19f
Author: Adam Tkac <vonsch at gmail.com>
Date:   Thu Dec 12 17:11:19 2013 +0100

    Use macros for dokuwiki release numbers
    
    Signed-off-by: Adam Tkac <vonsch at gmail.com>

 dokuwiki.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/dokuwiki.spec b/dokuwiki.spec
index e94a89e..5ebf1c9 100644
--- a/dokuwiki.spec
+++ b/dokuwiki.spec
@@ -1,11 +1,14 @@
+%global		releasenum 2013-05-10a
+%global		releasetag 20130510a
+
 Name:		dokuwiki
 Version:	0
-Release:	0.21.20130510a%{?dist}
+Release:	0.21.%{releasetag}%{?dist}
 Summary:	Standards compliant simple to use wiki
 Group:		Applications/Internet
 License:	GPLv2
 URL:		http://www.dokuwiki.org/dokuwiki
-Source0:	http://download.dokuwiki.org/src/%{name}/%{name}-2013-05-10a.tgz
+Source0:	http://download.dokuwiki.org/src/%{name}/%{name}-%{releasenum}.tgz
 #Fedora specific patches to use fedora packaged libraries
 Patch1:		dokuwiki-rm-bundled-libs.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -38,7 +41,7 @@ BuildArch:	noarch
 Configures DokuWiki to run in SELinux enabled environments.
 
 %prep
-%setup -q -n %{name}-2013-05-10a
+%setup -q -n %{name}-%{releasenum}
 
 # Remove bundled code
 rm inc/EmailAddressValidator.php
@@ -208,6 +211,7 @@ fi
 %changelog
 * Thu Dec 12 2013 Adam Tkac <vonsch at gmail.com> - 0-0.21.20130510a
 - fix upstream source link
+- use macros for dokuwiki release numbers
 
 * Tue Sep 03 2013 Adam Tkac <vonsch at gmail.com> - 0-0.20.20130510a
 - fix Requires for EL5, #967975 (patch by Charles R. Anderson)


More information about the scm-commits mailing list