[packages/dokuwiki-plugin-icalevents] - better use of macros

glen glen at pld-linux.org
Mon Sep 10 18:11:20 CEST 2012


commit 5821ede088bb008ec753542a5c82e3c7edf57075
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Sep 10 19:11:17 2012 +0300

    - better use of macros

 dokuwiki-plugin-icalevents.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/dokuwiki-plugin-icalevents.spec b/dokuwiki-plugin-icalevents.spec
index b4506f6..5702bc4 100644
--- a/dokuwiki-plugin-icalevents.spec
+++ b/dokuwiki-plugin-icalevents.spec
@@ -1,13 +1,15 @@
+%define		subver	2012-09-09
+%define		ver		%(echo %{subver} | tr -d -)
 %define		plugin	icalevents
 %define		php_min_version 5.0.0
 %include	/usr/lib/rpm/macros.php
 Summary:	Parses an iCal calendar .ics file and renders it as an HTML table
 Name:		dokuwiki-plugin-%{plugin}
-Version:	20120909
+Version:	%{ver}
 Release:	1
 License:	GPL v2
 Group:		Applications/WWW
-Source0:	https://github.com/glensc/dokuwiki-plugin-icalevents/tarball/2012-09-09/%{name}-%{version}.tgz
+Source0:	https://github.com/glensc/dokuwiki-plugin-icalevents/tarball/%{subver}/%{name}-%{version}.tgz
 # Source0-md5:	f06f7df14b65359ff83096c1cec11e02
 URL:		http://www.dokuwiki.org/plugin:icalevents
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-icalevents.git/commitdiff/5821ede088bb008ec753542a5c82e3c7edf57075



More information about the pld-cvs-commit mailing list