]> git.pld-linux.org Git - packages/dokuwiki-plugin-blog.git/blobdiff - dokuwiki-plugin-blog.spec
- add VERSION check in build
[packages/dokuwiki-plugin-blog.git] / dokuwiki-plugin-blog.spec
index 9e106247de2ce087ad5912cf3f43dfc32ead73c5..3f36b537e5db75433317ef29ed71af54ac5cfcdb 100644 (file)
@@ -24,12 +24,18 @@ This plugin makes blogs in your wiki easily possible.
 
 %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
This page took 0.086398 seconds and 4 git commands to generate.