packages: rc-scripts-user/rc-scripts-user.spec - compile run-fast-or-hide -...

sparky sparky at pld-linux.org
Mon Jan 31 19:30:15 CET 2011


Author: sparky                       Date: Mon Jan 31 18:30:15 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- compile run-fast-or-hide
- no longer noarch
- init script updated to: 1.2

---- Files affected:
packages/rc-scripts-user:
   rc-scripts-user.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/rc-scripts-user/rc-scripts-user.spec
diff -u packages/rc-scripts-user/rc-scripts-user.spec:1.2 packages/rc-scripts-user/rc-scripts-user.spec:1.3
--- packages/rc-scripts-user/rc-scripts-user.spec:1.2	Mon Jan 31 02:33:59 2011
+++ packages/rc-scripts-user/rc-scripts-user.spec	Mon Jan 31 19:30:10 2011
@@ -3,16 +3,16 @@
 Summary:	Run user scripts
 Summary(pl.UTF-8):	Uruchom skrypty użytkownika
 Name:		rc-scripts-user
-Version:	1.1
+Version:	1.2
 Release:	1
 License:	GPL v2+
 Group:		Applications/System
 Source0:	userscripts
+Source1:	run-fast-or-hide.c
 URL:		http://www.pld-linux.org/Packages/UserScripts
 BuildRequires:	rpmbuild(macros) >= 1.228
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts
-BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,12 +22,18 @@
 Uruchom skrypty użytkownika przy starcie oraz wyłączaniu systemu.
 
 %prep
+%setup -q -c -T
 awk '/Version/ { v=$4 } END { exit v != "%{version}" }' < %{SOURCE0}
 
+%build
+%{__cc} %{rpmcppflags} %{rpmcppflags} -Wall %{rpmldflags} %{SOURCE1} -o run-fast-or-hide
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+install -d $RPM_BUILD_ROOT/sbin
 
+install run-fast-or-hide $RPM_BUILD_ROOT/sbin
 install %{SOURCE0} $RPM_BUILD_ROOT/etc/rc.d/init.d/userscripts
 
 cat <<'EOF' > $RPM_BUILD_ROOT/etc/sysconfig/userscripts
@@ -63,6 +69,7 @@
 
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) /sbin/run-fast-or-hide
 %attr(754,root,root) /etc/rc.d/init.d/userscripts
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/userscripts
 
@@ -72,6 +79,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2011/01/31 18:30:10  sparky
+- compile run-fast-or-hide
+- no longer noarch
+- init script updated to: 1.2
+
 Revision 1.2  2011/01/31 01:33:59  sparky
 - don't restart in %post
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rc-scripts-user/rc-scripts-user.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list