SPECS: dokuwiki-plugin-blog.spec - add VERSION check in build

glen glen at pld-linux.org
Tue Apr 7 16:56:48 CEST 2009


Author: glen                         Date: Tue Apr  7 14:56:48 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add VERSION check in build

---- Files affected:
SPECS:
   dokuwiki-plugin-blog.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/dokuwiki-plugin-blog.spec
diff -u SPECS/dokuwiki-plugin-blog.spec:1.2 SPECS/dokuwiki-plugin-blog.spec:1.3
--- SPECS/dokuwiki-plugin-blog.spec:1.2	Tue Apr  7 16:04:18 2009
+++ SPECS/dokuwiki-plugin-blog.spec	Tue Apr  7 16:56:43 2009
@@ -25,12 +25,18 @@
 
 %prep
 %setup -q -n %{plugin}
+if [ $(cat VERSION | tr -d -) != %{version} ]; then
+	: %%{version} mismatch, should be: $(cat VERSION | tr -d -)
+	exit 1
+fi
+
+rm -f blog.tar.gz
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
-rm -rf $RPM_BUILD_ROOT%{plugindir}/{blog.tar.gz,COPYING,README,VERSION,_template.txt}
+rm -rf $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION,_template.txt}
 
 # find locales
 sh %{SOURCE1} %{name}.lang
@@ -59,9 +65,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2009/04/07 14:56:43  glen
+- add VERSION check in build
+
 Revision 1.2  2009/04/07 14:04:18  gzohop
 - _template.txt > doc
 
 Revision 1.1  2009/04/07 13:43:55  gzohop
 - add
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dokuwiki-plugin-blog.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list