SPECS: pipslite.spec - added link, system-ltdl patches - init scrip...

qboosh qboosh at pld-linux.org
Sun Apr 13 16:59:45 CEST 2008


Author: qboosh                       Date: Sun Apr 13 14:59:45 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added link,system-ltdl patches
- init script fixes (give at least change to start daemon on glibc 2.4+)
- fixed cups filters path, added missing dirs
- builds fine on x86_64, no reason for EA?

---- Files affected:
SPECS:
   pipslite.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/pipslite.spec
diff -u SPECS/pipslite.spec:1.4 SPECS/pipslite.spec:1.5
--- SPECS/pipslite.spec:1.4	Sun Apr 13 16:15:15 2008
+++ SPECS/pipslite.spec	Sun Apr 13 16:59:39 2008
@@ -4,13 +4,15 @@
 Name:		pipslite
 Version:	1.0.2
 Release:	1
-License:	Mixed (GPL, LGPL, distributable)
+License:	GPL v2+ (programs), LGPL v2+ (library)
 Group:		Applications/Printing
 Source0:	http://lx2.avasys.jp/pips/lite%{version}/%{name}-%{version}.tar.gz
 Source1:	%{name}-ekpd.init
 Patch0:		%{name}-services.patch
 Patch1:		%{name}-ekpd-permissions.patch             
 Patch2:		%{name}-init.patch
+Patch3:		%{name}-link.patch
+Patch4:		%{name}-system-ltdl.patch
 URL:		http://www.avasys.jp/english/linux_e/dl_spc.html
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -22,10 +24,10 @@
 BuildRequires:	libtool
 BuildRequires:	rpmbuild(macros) >= 1.174
 BuildRequires:	sed >= 4.0
+Requires(post,postun):	/sbin/ldconfig
+Requires(post,preun):	/sbin/chkconfig
 Requires:	cups-filter-pstoraster
 Requires:	ghostscript
-Requires(post,preun):	/sbin/chkconfig
-ExclusiveArch:	%{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -65,6 +67,8 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %build
 %{__gettextize}
@@ -73,7 +77,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	--disable-static
 %{__make}
 
 %install
@@ -88,6 +93,8 @@
 mv $RPM_BUILD_ROOT%{_libdir}/pipslite/ekpd $RPM_BUILD_ROOT%{_sbindir}
 
 rm -rf $RPM_BUILD_ROOT%{_datadir}/pipslite/{rc.d,readme}
+# no devel
+rm $RPM_BUILD_ROOT%{_libdir}/liblite.la
 
 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/zh{,_CN}
 
@@ -97,6 +104,7 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
+/sbin/ldconfig
 /sbin/chkconfig --add ekpd
 if [ -f /var/lock/subsys/ekpd ]; then
 	/etc/rc.d/init.d/ekpd restart 1>&2
@@ -112,35 +120,47 @@
 	/sbin/chkconfig --del ekpd
 fi
 
+%postun	-p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog COPYING*
-%doc doc/readmelite doc/readmelite.ja
+%doc AUTHORS ChangeLog NEWS doc/readmelite
+%lang(ja) %doc doc/readmelite.ja
+%attr(755,root,root) %{_bindir}/ekpstm
+%attr(755,root,root) %{_bindir}/pipslite
+%attr(755,root,root) %{_bindir}/pipslite-install
+%attr(755,root,root) %{_sbindir}/ekpd
+%dir %{_libdir}/pipslite
+%attr(755,root,root) %{_libdir}/pipslite/filterlite
+%attr(755,root,root) %{_libdir}/pipslite/freset
+%attr(755,root,root) %{_libdir}/pipslite/gsconfig
+%attr(755,root,root) %{_libdir}/liblite.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblite.so.1
+# dlopened by .so
+%attr(755,root,root) %{_libdir}/liblite.so
+%dir %{_sysconfdir}/pipslite
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pipslite/ekpdrc
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pipsrc
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_sbindir}/ekpd
 %attr(754,root,root) /etc/rc.d/init.d/ekpd
-%attr(755,root,root) %{_libdir}/pipslite/*
-%attr(755,root,root) %{_libdir}/liblite.so*
-%{_libdir}/liblite.la
-%attr(600,lp,lp) %{_var}/run/*
+%attr(600,lp,lp) %{_var}/run/ekplp0
 %dir %{_datadir}/pipslite
 %{_datadir}/pipslite/paper_list.csv
-%dir %{_datadir}/pipslite
 %dir %{_datadir}/pipslite/scripts
-%{_datadir}/pipslite/scripts/*.lc
-%attr(755,root,root) %{_datadir}/pipslite/scripts/setup-lpr.sh
+%{_datadir}/pipslite/scripts/en.lc
+%lang(ja) %{_datadir}/pipslite/scripts/ja.lc
 %attr(755,root,root) %{_datadir}/pipslite/scripts/inst-lpr-post.sh
+%attr(755,root,root) %{_datadir}/pipslite/scripts/setup-lpr.sh
 
 %files cups
 %defattr(644,root,root,755)
-%doc doc/readmelite-cups*
-%attr(755,root,root) %{_libdir}/cups/backend/*
-%attr(755,root,root) %{_libdir}/cups/filter/*
-%{_datadir}/cups/model/*
-%attr(755,root,root) %{_datadir}/pipslite/scripts/setup-cups.sh
+%doc doc/readmelite-cups
+%lang(ja) %doc doc/readmelite-cups.ja
+%attr(755,root,root) %{_prefix}/lib/cups/backend/ekplp
+%attr(755,root,root) %{_prefix}/lib/cups/filter/pipstoprinter
+%attr(755,root,root) %{_prefix}/lib/cups/filter/rastertopips
+%{_datadir}/cups/model/eklite.ppd
 %attr(755,root,root) %{_datadir}/pipslite/scripts/inst-cups-post.sh
+%attr(755,root,root) %{_datadir}/pipslite/scripts/setup-cups.sh
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -148,6 +168,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2008-04-13 14:59:39  qboosh
+- added link,system-ltdl patches
+- init script fixes (give at least change to start daemon on glibc 2.4+)
+- fixed cups filters path, added missing dirs
+- builds fine on x86_64, no reason for EA?
+
 Revision 1.4  2008-04-13 14:15:15  qboosh
 - pl
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/pipslite.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list