[packages/ifhp] - updated to 3.5.22 - updated ac_fixes,no-Werror patches
qboosh
qboosh at pld-linux.org
Fri Mar 7 19:33:26 CET 2014
commit 595238cebb3cf344399718596417b263fa38670f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Mar 7 19:36:14 2014 +0100
- updated to 3.5.22
- updated ac_fixes,no-Werror patches
ifhp-ac_fixes.patch | 4 ++--
ifhp-no-Werror.patch | 4 ++--
ifhp.spec | 48 ++++++++++++++++++++++++++++++++++++------------
3 files changed, 40 insertions(+), 16 deletions(-)
---
diff --git a/ifhp.spec b/ifhp.spec
index b7b6efc..db58ff2 100644
--- a/ifhp.spec
+++ b/ifhp.spec
@@ -2,19 +2,18 @@
Summary: Print filter for HP postscript, text, and other printers
Summary(pl.UTF-8): Filtr wydruku HP postscriptu, tekstu i innych drukarek
Name: ifhp
-Version: 3.5.20
-Release: 4
+Version: 3.5.22
+Release: 1
License: GPL or Artistic
-Vendor: Astart Technologies, San Diego, CA 92123 http://www.astart.com/
Group: Applications/System
Source0: ftp://ftp.lprng.com/pub/LPRng/ifhp/%{name}-%{version}.tgz
-# Source0-md5: 25b151b3adb953b571e6b0a7cc9937f3
+# Source0-md5: 450b24f44dffbfda84a58ce5067ab1ad
Patch0: %{name}-ac_fixes.patch
Patch1: %{name}-trim_cmdline.patch
Patch2: %{name}-no-Werror.patch
Patch3: %{name}-a4.patch
URL: http://www.lprng.com/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: gettext-devel
BuildRequires: ghostscript
@@ -22,11 +21,13 @@ BuildRequires: perl-Net-SNMP
BuildRequires: perl-modules
BuildRequires: rpm-perlprov
Requires: /usr/bin/lpr
+Suggests: a2ps
+Suggests: ghostscript
Obsoletes: apsfilter
Obsoletes: rhs-printfilters
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define lpfiltersdir lpfilters
+%define lpfiltersdir %{_libdir}/lpfilters
# only few scripts need it
%define _noautoreq 'perl(Net::SNMP)'
@@ -56,7 +57,10 @@ Jest to podstawowy filtr dla zarzÄ…dcy drukowania LPRng.
%build
%{__autoconf}
%configure \
- --with-filterdir=%{_libdir}/%{lpfiltersdir} \
+ A2PS=/usr/bin/a2ps \
+ GS=/usr/bin/gs \
+ --disable-gscheck \
+ --with-filterdir=%{lpfiltersdir} \
--with-foomatic-rip=/usr/bin/foomatic-rip \
--with-pagesize=a4
%{__make}
@@ -70,8 +74,12 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/ifhp.conf.sample .
+# some random junk and docs
+%{__rm} $RPM_BUILD_ROOT%{lpfiltersdir}/UTILS/{400095.ppd,HP2500CJ.PPD,Watermarks,accounting.sh.in,extract_pjl,fixupdate.in,install-sh,mkinstalldirs,sendhp.sh.in,stopstr.c,supported.in,test1,use_snmp_for_status}
+
+# cleanup empty locales
for f in $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/ifhp.mo ; do
- [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
+ [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && %{__rm} $f
done
#%find_lang %{name}
@@ -81,9 +89,25 @@ rm -rf $RPM_BUILD_ROOT
#%files -f %{name}.lang
%files
%defattr(644,root,root,755)
-%doc README ifhp.conf.sample DOCS/*.{html,jpg}
+%doc CHANGES README* ifhp.conf.sample DOCS/*.{html,jpg} UTILS/{Watermarks,use_snmp_for_status}
# HOWTO/*.html
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/%{lpfiltersdir}/*
+%attr(755,root,root) %{_bindir}/extract_pjl
+%attr(755,root,root) %{_bindir}/snmp_printer_status
+%attr(755,root,root) %{lpfiltersdir}/extract_pjl
+%attr(755,root,root) %{lpfiltersdir}/ifhp
+%attr(755,root,root) %{lpfiltersdir}/snmp_printer_status
+%attr(755,root,root) %{lpfiltersdir}/textps
+%attr(755,root,root) %{lpfiltersdir}/wrapper
+%{lpfiltersdir}/snmp_printer_status.conf
+%dir %{lpfiltersdir}/UTILS
+%attr(755,root,root) %{lpfiltersdir}/UTILS/accounting.sh
+%attr(755,root,root) %{lpfiltersdir}/UTILS/fixupdate
+%attr(755,root,root) %{lpfiltersdir}/UTILS/phaser5400_snmp_mib_query
+%attr(755,root,root) %{lpfiltersdir}/UTILS/sendhp.sh
+%attr(755,root,root) %{lpfiltersdir}/UTILS/supported
+%{lpfiltersdir}/UTILS/ellipse.ps
+%{lpfiltersdir}/UTILS/one.*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
-%{_mandir}/man8/*
+%{_mandir}/man1/ifhp.1*
+%{_mandir}/man1/snmp_printer_status.1*
+%{_mandir}/man1/textps.1*
diff --git a/ifhp-ac_fixes.patch b/ifhp-ac_fixes.patch
index 2e17357..2a1fd2f 100644
--- a/ifhp-ac_fixes.patch
+++ b/ifhp-ac_fixes.patch
@@ -1,5 +1,5 @@
---- ifhp-3.5.11/configure.in.orig 2003-09-05 22:05:42.000000000 +0200
-+++ ifhp-3.5.11/configure.in 2003-10-06 21:15:24.731523552 +0200
+--- ifhp-3.5.22/configure.ac.orig 2003-09-05 22:05:42.000000000 +0200
++++ ifhp-3.5.22/configure.ac 2003-10-06 21:15:24.731523552 +0200
@@ -119,22 +119,7 @@
AC_MSG_RESULT($FONT_DIR)
AC_SUBST(FONT_DIR)
diff --git a/ifhp-no-Werror.patch b/ifhp-no-Werror.patch
index 96eef0d..5df1c7e 100644
--- a/ifhp-no-Werror.patch
+++ b/ifhp-no-Werror.patch
@@ -1,5 +1,5 @@
---- ifhp-3.5.20/configure.in~ 2007-06-22 13:21:31.000000000 +0200
-+++ ifhp-3.5.20/configure.in 2007-06-22 13:26:21.000000000 +0200
+--- ifhp-3.5.22/configure.ac~ 2007-06-22 13:21:31.000000000 +0200
++++ ifhp-3.5.22/configure.ac 2007-06-22 13:26:21.000000000 +0200
@@ -1225,8 +1225,8 @@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ifhp.git/commitdiff/595238cebb3cf344399718596417b263fa38670f
More information about the pld-cvs-commit
mailing list