]> git.pld-linux.org Git - packages/ifhp.git/blob - ifhp.spec
- parallel install doesn't work
[packages/ifhp.git] / ifhp.spec
1 #
2 # WARNING;
3 #       DO NOT update this to 3.5.22, that release is broken.
4 #
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
8 Name:           ifhp
9 Version:        3.5.20
10 Release:        5
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
29 Obsoletes:      apsfilter
30 Obsoletes:      rhs-printfilters
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         lpfiltersdir lpfilters
34 # only few scripts need it
35 %define         _noautoreq      'perl(Net::SNMP)'
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
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
50 drukowania.
51
52 Jest to podstawowy filtr dla zarządcy drukowania LPRng.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59
60 %build
61 %{__autoconf}
62 %configure \
63         --with-filterdir=%{_libdir}/%{lpfiltersdir} \
64         --with-foomatic-rip=/usr/bin/foomatic-rip \
65         --with-pagesize=a4
66 %{__make}
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_sysconfdir}
71
72 %{__make} -j1 install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/ifhp.conf.sample .
76
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
79 done
80 #%find_lang %{name}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 #%files -f %{name}.lang
86 %files
87 %defattr(644,root,root,755)
88 %doc README ifhp.conf.sample DOCS/*.{html,jpg}
89 # HOWTO/*.html
90 %attr(755,root,root) %{_bindir}/*
91 %attr(755,root,root) %{_libdir}/%{lpfiltersdir}/*
92 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
93 %{_mandir}/man8/*
This page took 0.089124 seconds and 3 git commands to generate.