]> git.pld-linux.org Git - packages/ifhp.git/blame - ifhp.spec
- updated gettext BR
[packages/ifhp.git] / ifhp.spec
CommitLineData
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 6Summary: Print filter for HP postscript, text, and other printers
e814163a 7Summary(pl.UTF-8): Filtr wydruku HP postscriptu, tekstu i innych drukarek
9dc5586f 8Name: ifhp
3eb13d60 9Version: 3.5.20
030b8060 10Release: 5
2867fe00 11License: GPL or Artistic
3eb13d60 12Vendor: Astart Technologies, San Diego, CA 92123 http://www.astart.com/
9a38a637 13Group: Applications/System
51c1a097 14Source0: ftp://ftp.lprng.com/pub/LPRng/ifhp/%{name}-%{version}.tgz
3eb13d60 15# Source0-md5: 25b151b3adb953b571e6b0a7cc9937f3
f00c4caf 16Patch0: %{name}-ac_fixes.patch
d6fbd6e2 17Patch1: %{name}-trim_cmdline.patch
24c649d7 18Patch2: %{name}-no-Werror.patch
f8d0c06c 19Patch3: %{name}-a4.patch
51c1a097 20URL: http://www.lprng.com/
3eb13d60 21BuildRequires: autoconf
0660539f 22BuildRequires: automake
594dad84 23BuildRequires: gettext-tools
dbe6633a 24BuildRequires: ghostscript
20cc99ed 25BuildRequires: perl-Net-SNMP
63b28578
JB
26BuildRequires: perl-modules
27BuildRequires: rpm-perlprov
a5febe6d 28Requires: /usr/bin/lpr
6d619aaf 29Obsoletes: apsfilter
47bf51d5 30Obsoletes: rhs-printfilters
63b28578 31BuildRoot: %{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
38ifhp is a highly versatile print filter for BSD based print spoolers.
39It can be configured to handle text, PostScript, PJL, PCL, and raster
40printers, supports conversion from one format to another, and can be
41used as a stand-alone print utility.
42
43It is the primary supported print filter for the LPRng print spooler.
44
2dc32845
JR
45%description -l pl.UTF-8
46ifhp jest wszechstronnym filtrem wydruków dla opartych na BSD
47zarządców wydruku. Może być skonfigurowany do obsługi tekstu,
48PostScriptu, PJL, PCL i drukarek rastrowych, obsługuje konwersję
49między formatami, może być używany jako samodzielne narzędzie do
0660539f
JB
50drukowania.
51
2dc32845 52Jest 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
69rm -rf $RPM_BUILD_ROOT
5bbdcec3 70install -d $RPM_BUILD_ROOT%{_sysconfdir}
f00c4caf 71
aaff02cc 72%{__make} -j1 install \
f00c4caf 73 DESTDIR=$RPM_BUILD_ROOT
cbc667a3 74
72b1822f 75mv -f $RPM_BUILD_ROOT%{_sysconfdir}/ifhp.conf.sample .
cbc667a3 76
47bf51d5 77for 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 79done
4eb3da78 80#%find_lang %{name}
9dc5586f
SZ
81
82%clean
83rm -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/*
This page took 0.082576 seconds and 4 git commands to generate.