SPECS: hplip.spec - added initscript to start helper programs

wiget wiget at pld-linux.org
Mon May 8 00:31:26 CEST 2006


Author: wiget                        Date: Sun May  7 22:31:25 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added initscript to start helper programs

---- Files affected:
SPECS:
   hplip.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/hplip.spec
diff -u SPECS/hplip.spec:1.8 SPECS/hplip.spec:1.9
--- SPECS/hplip.spec:1.8	Sun May  7 23:30:37 2006
+++ SPECS/hplip.spec	Mon May  8 00:31:18 2006
@@ -7,6 +7,7 @@
 #       - symlinks in /usr/bin for scripts from /usr/share/hplip
 #       - all scripts are in python, merge pyhton subpackage to main
 #       package ?
+#       - /usr/share/hplip/toolbox requires python-qt
 #
 # Conditional build:
 %bcond_without	cups	# without CUPS support
@@ -20,17 +21,18 @@
 Group:		Applications/System
 Source0:	http://dl.sourceforge.net/hplip/%{name}-%{version}.tar.gz
 # Source0-md5:	349489b10fb44d1bf105b04ff5352551
+Source1:	%{name}.init
 Patch0:		%{name}-0.9.10-2.patch
 URL:		http://hplip.sourceforge.net/
-BuildRequires:	automake
 BuildRequires:	autoconf
+BuildRequires:	automake
 %{?with_cups:BuildRequires:	cups-devel}
 BuildRequires:	libstdc++-devel
 BuildRequires:	net-snmp-devel
 BuildRequires:	openssl-devel
 BuildRequires:	python-devel
-Conflicts:	ghostscript <= 7.00-3
 Obsoletes:	hpijs
+Conflicts:	ghostscript <= 7.00-3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define         _ulibdir        %{_prefix}/lib
@@ -119,6 +121,8 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+
 %if %{with cups}
 install -d $RPM_BUILD_ROOT$(cups-config --datadir)/model \
 	$RPM_BUILD_ROOT$(cups-config --serverbin)/filter
@@ -133,6 +137,8 @@
 mv $RPM_BUILD_ROOT{%{_datadir}/ppd/HP/*,%{_cupsppddir}}
 %endif
 
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/hplip
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -147,6 +153,7 @@
 %doc hplip_readme.html
 %attr(755,root,root) %{_bindir}/hp*
 %attr(755,root,root) %{_sbindir}/hp*
+%attr(754,root,root) /etc/rc.d/init.d/hplip
 %dir %{_datadir}/hplip
 # info about GPL v2 for some files
 %{_datadir}/hplip/COPYING
@@ -211,6 +218,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2006/05/07 22:31:18  wiget
+- added initscript to start helper programs
+
 Revision 1.8  2006/05/07 21:30:37  wiget
 - some files are on MIT license
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/hplip.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list