]>
Commit | Line | Data |
---|---|---|
030b8060 JR |
1 | # |
2 | # WARNING; | |
3 | # DO NOT update this to 3.5.22, that release is broken. | |
4 | # | |
63b28578 | 5 | %include /usr/lib/rpm/macros.perl |
2867fe00 | 6 | Summary: Print filter for HP postscript, text, and other printers |
e814163a | 7 | Summary(pl.UTF-8): Filtr wydruku HP postscriptu, tekstu i innych drukarek |
9dc5586f | 8 | Name: ifhp |
3eb13d60 | 9 | Version: 3.5.20 |
030b8060 | 10 | Release: 5 |
2867fe00 | 11 | License: GPL or Artistic |
3eb13d60 | 12 | Vendor: Astart Technologies, San Diego, CA 92123 http://www.astart.com/ |
9a38a637 | 13 | Group: Applications/System |
51c1a097 | 14 | Source0: ftp://ftp.lprng.com/pub/LPRng/ifhp/%{name}-%{version}.tgz |
3eb13d60 | 15 | # Source0-md5: 25b151b3adb953b571e6b0a7cc9937f3 |
f00c4caf | 16 | Patch0: %{name}-ac_fixes.patch |
d6fbd6e2 | 17 | Patch1: %{name}-trim_cmdline.patch |
24c649d7 | 18 | Patch2: %{name}-no-Werror.patch |
f8d0c06c | 19 | Patch3: %{name}-a4.patch |
51c1a097 | 20 | URL: http://www.lprng.com/ |
3eb13d60 | 21 | BuildRequires: autoconf |
0660539f | 22 | BuildRequires: automake |
594dad84 | 23 | BuildRequires: gettext-tools |
dbe6633a | 24 | BuildRequires: ghostscript |
20cc99ed | 25 | BuildRequires: perl-Net-SNMP |
63b28578 JB |
26 | BuildRequires: perl-modules |
27 | BuildRequires: rpm-perlprov | |
a5febe6d | 28 | Requires: /usr/bin/lpr |
6d619aaf | 29 | Obsoletes: apsfilter |
47bf51d5 | 30 | Obsoletes: rhs-printfilters |
63b28578 | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a7210836 | 32 | |
3eb13d60 | 33 | %define lpfiltersdir lpfilters |
63b28578 JB |
34 | # only few scripts need it |
35 | %define _noautoreq 'perl(Net::SNMP)' | |
9dc5586f SZ |
36 | |
37 | %description | |
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. | |
42 | ||
43 | It is the primary supported print filter for the LPRng print spooler. | |
44 | ||
2dc32845 JR |
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 | |
0660539f JB |
50 | drukowania. |
51 | ||
2dc32845 | 52 | Jest to podstawowy filtr dla zarządcy drukowania LPRng. |
0660539f | 53 | |
9dc5586f SZ |
54 | %prep |
55 | %setup -q | |
d6fbd6e2 SZ |
56 | %patch0 -p1 |
57 | %patch1 -p1 | |
24c649d7 | 58 | %patch2 -p1 |
9dc5586f SZ |
59 | |
60 | %build | |
18f53027 | 61 | %{__autoconf} |
9a38a637 | 62 | %configure \ |
3eb13d60 | 63 | --with-filterdir=%{_libdir}/%{lpfiltersdir} \ |
8a382b05 JR |
64 | --with-foomatic-rip=/usr/bin/foomatic-rip \ |
65 | --with-pagesize=a4 | |
9dc5586f SZ |
66 | %{__make} |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
5bbdcec3 | 70 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
f00c4caf | 71 | |
aaff02cc | 72 | %{__make} -j1 install \ |
f00c4caf | 73 | DESTDIR=$RPM_BUILD_ROOT |
cbc667a3 | 74 | |
72b1822f | 75 | mv -f $RPM_BUILD_ROOT%{_sysconfdir}/ifhp.conf.sample . |
cbc667a3 | 76 | |
47bf51d5 | 77 | for f in $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/ifhp.mo ; do |
3eb13d60 | 78 | [ "`file $f | sed -e 's/.*,//' -e 's/message.*//'`" -le 1 ] && rm -f $f |
47bf51d5 | 79 | done |
4eb3da78 | 80 | #%find_lang %{name} |
9dc5586f SZ |
81 | |
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
4eb3da78 | 85 | #%files -f %{name}.lang |
86 | %files | |
9dc5586f | 87 | %defattr(644,root,root,755) |
3eb13d60 | 88 | %doc README ifhp.conf.sample DOCS/*.{html,jpg} |
47bf51d5 | 89 | # HOWTO/*.html |
3eb13d60 JR |
90 | %attr(755,root,root) %{_bindir}/* |
91 | %attr(755,root,root) %{_libdir}/%{lpfiltersdir}/* | |
20cc99ed | 92 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf |
3eb13d60 | 93 | %{_mandir}/man8/* |