SPECS: captive.spec - added provides user/group captive - rel 1, ...

tommat tommat at pld-linux.org
Thu Jan 26 20:39:05 CET 2006


Author: tommat                       Date: Thu Jan 26 19:39:05 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added provides user/group captive 
- rel 1, it works :)

---- Files affected:
SPECS:
   captive.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/captive.spec
diff -u SPECS/captive.spec:1.13 SPECS/captive.spec:1.14
--- SPECS/captive.spec:1.13	Thu Jan 26 13:12:23 2006
+++ SPECS/captive.spec	Thu Jan 26 20:38:59 2006
@@ -5,7 +5,7 @@
 Summary(pl):	Captive - obsługa NTFS dla Linuksa z odczytem i zapisem
 Name:		captive
 Version:	1.1.6.1
-Release:	0.1
+Release:	1
 License:	GPL
 Group:		Base/Kernel
 Source0:	http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz
@@ -25,6 +25,14 @@
 BuildRequires:	perl-tools-pod
 BuildRequires:	pkgconfig
 BuildRequires:	readline-devel
+Provides:	group(captive)
+Provides:	user(captive)
+Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires(pre):	/bin/id
+Requires(pre):	/usr/bin/getgid
+Requires(pre):	/usr/sbin/groupadd
+Requires(pre):	/usr/sbin/useradd
 Requires:	ntfsprogs >= 1.8.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -117,6 +125,16 @@
 %clean
 #rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 141 captive
+%useradd -u 141 -r -d /var/lib/captive -s /bin/false -c "Captive User" -g captive captive
+
+%postun 
+if [ "$1" = "0" ]; then
+	%userremove captive
+	%groupremove captive
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README THANKS TODO
@@ -143,6 +161,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.14  2006/01/26 19:38:59  tommat
+- added provides user/group captive
+- rel 1, it works :)
+
 Revision 1.13  2006/01/26 12:12:23  tommat
 - version 1.1.6.1
 - build with fuse instead of lufs support
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/captive.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list