SPECS: weeder.spec - really apply %patch0 - move old data from /va...

glen glen at pld-linux.org
Fri Jun 17 23:42:30 CEST 2005


Author: glen                         Date: Fri Jun 17 21:42:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- really apply %patch0
- move old data from /var/weeder
- change permissions of datadir (first placing files there will own them)

---- Files affected:
SPECS:
   weeder.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/weeder.spec
diff -u SPECS/weeder.spec:1.3 SPECS/weeder.spec:1.4
--- SPECS/weeder.spec:1.3	Fri Jun 17 21:23:03 2005
+++ SPECS/weeder.spec	Fri Jun 17 23:42:25 2005
@@ -3,7 +3,7 @@
 Summary(pl):	Weeder - narzędzie do identyfikowania plików binarnych
 Name:		weeder
 Version:	0.9.7
-Release:	0.4
+Release:	0.9
 Epoch:		0
 License:	GPL
 Group:		Applications/Console
@@ -33,6 +33,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} -C src \
@@ -46,6 +47,13 @@
 install src/%{name} $RPM_BUILD_ROOT%{_bindir}
 sed -e 's,/var/weeder,%{_datadir},g' %{name}.1 > $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
 
+%post
+# move data from old original sources
+if [ -d /var/%{name} ] && [ ! -L /var/%{name} ]; then
+	mv /var/%{name}/* %{_datadir}
+	rmdir /var/%{name}
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -54,7 +62,7 @@
 %doc README history.txt
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/*
-%dir %verify(not group mode user) %{_datadir}
+%dir %attr(1777,root,root) %{_datadir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -62,6 +70,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2005/06/17 21:42:25  glen
+- really apply %patch0
+- move old data from /var/weeder
+- change permissions of datadir (first placing files there will own them)
+
 Revision 1.3  2005/06/17 19:23:03  qboosh
 - pl
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/weeder.spec?r1=1.3&r2=1.4&f=u




More information about the pld-cvs-commit mailing list