3 # DO NOT update this to 3.5.22, that release is broken.
5 %include /usr/lib/rpm/macros.perl
6 Summary: Print filter for HP postscript, text, and other printers
7 Summary(pl.UTF-8): Filtr wydruku HP postscriptu, tekstu i innych drukarek
11 License: GPL or Artistic
12 Vendor: Astart Technologies, San Diego, CA 92123 http://www.astart.com/
13 Group: Applications/System
14 Source0: ftp://ftp.lprng.com/pub/LPRng/ifhp/%{name}-%{version}.tgz
15 # Source0-md5: 25b151b3adb953b571e6b0a7cc9937f3
16 Patch0: %{name}-ac_fixes.patch
17 Patch1: %{name}-trim_cmdline.patch
18 Patch2: %{name}-no-Werror.patch
19 Patch3: %{name}-a4.patch
20 URL: http://www.lprng.com/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: gettext-devel
24 BuildRequires: ghostscript
25 BuildRequires: perl-Net-SNMP
26 BuildRequires: perl-modules
27 BuildRequires: rpm-perlprov
28 Requires: /usr/bin/lpr
30 Obsoletes: rhs-printfilters
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define lpfiltersdir lpfilters
34 # only few scripts need it
35 %define _noautoreq 'perl(Net::SNMP)'
38 ifhp is a highly versatile print filter for BSD based print spoolers.
39 It can be configured to handle text, PostScript, PJL, PCL, and raster
40 printers, supports conversion from one format to another, and can be
41 used as a stand-alone print utility.
43 It is the primary supported print filter for the LPRng print spooler.
45 %description -l pl.UTF-8
46 ifhp jest wszechstronnym filtrem wydruków dla opartych na BSD
47 zarządców wydruku. Może być skonfigurowany do obsługi tekstu,
48 PostScriptu, PJL, PCL i drukarek rastrowych, obsługuje konwersję
49 między formatami, może być używany jako samodzielne narzędzie do
52 Jest to podstawowy filtr dla zarządcy drukowania LPRng.
63 --with-filterdir=%{_libdir}/%{lpfiltersdir} \
64 --with-foomatic-rip=/usr/bin/foomatic-rip \
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_sysconfdir}
72 %{__make} -j1 install \
73 DESTDIR=$RPM_BUILD_ROOT
75 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/ifhp.conf.sample .
77 for f in $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/ifhp.mo ; do
78 [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f
83 rm -rf $RPM_BUILD_ROOT
85 #%files -f %{name}.lang
87 %defattr(644,root,root,755)
88 %doc README ifhp.conf.sample DOCS/*.{html,jpg}
90 %attr(755,root,root) %{_bindir}/*
91 %attr(755,root,root) %{_libdir}/%{lpfiltersdir}/*
92 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf