Author: glen                         Date: Mon Jan 22 11:23:56 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- R: libuuid for uuidgen
- creae users

---- Files affected:
SPECS:
   pld-builder.spec (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: SPECS/pld-builder.spec
diff -u SPECS/pld-builder.spec:1.25 SPECS/pld-builder.spec:1.26
--- SPECS/pld-builder.spec:1.25 Sun Apr 23 19:21:06 2006
+++ SPECS/pld-builder.spec      Mon Jan 22 12:23:51 2007
@@ -4,7 +4,7 @@
 Summary(pl):   Środowisko budowniczego pakietów RPM dla PLD
 Name:          pld-builder
 Version:       0.0.%{_snap}
-Release:       0.16
+Release:       0.20
 License:       GPL
 Group:         Development/Building
 Source0:       %{name}.new-%{_snap}.tar.bz2
@@ -15,6 +15,10 @@
 BuildRequires: python
 BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/useradd
+Requires:      libuuid
 Requires:      python-pld-builder = %{version}-%{release}
 Requires:      rc-scripts
 BuildArch:     noarch
@@ -110,6 +114,11 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%useradd -u 168 -g daemon -c "srpms builder" srpms_builder
+%useradd -u 169 -g daemon -c "bin builder" bin_builder
+%useradd -u 170 -g daemon -c "ftpac" ftpac
+
 %post
 /sbin/chkconfig --add %{name}
 %service %{name} restart
@@ -120,6 +129,13 @@
        /sbin/chkconfig --del %{name}
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+       %userremove srpms_builder
+       %userremove bin_builder
+       %userremove ftpac
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc README TODO
@@ -159,6 +175,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2007/01/22 11:23:51  glen
+- R: libuuid for uuidgen
+- creae users
+
 Revision 1.25  2006/04/23 17:21:06  glen
 - macros for service
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pld-builder.spec?r1=1.25&r2=1.26&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to