]> git.pld-linux.org Git - packages/LPRngTool.git/blob - LPRngTool.spec
8f5515b96aa74eeabd7e7c3b8d5816a2a1c585bf
[packages/LPRngTool.git] / LPRngTool.spec
1 Summary:        LPRngTool - printer configuration, monitoring and management utility with GUI for LPRng
2 Summary(pl.UTF-8):      LPRngTool - narzędziem do monitorowania i zarządzania systemem druku LPRng
3 Name:           LPRngTool
4 Version:        1.3.2
5 Release:        4
6 License:        GPL
7 Group:          Applications/Publishing
8 Source0:        http://www.lprng.com/DISTRIB/LPRngTool/%{name}-%{version}.tgz
9 # Source0-md5:  964bb358dbe140c7be5ebbdf0eecf64a
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-ac_fixes.patch
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 Requires:       LPRng >= 3.7
16 Requires:       ghostscript
17 Requires:       ifhp >= 3.4
18 Requires:       tcl >= 8.3
19 Requires:       tk >= 8.3
20 # or mpage, selectable at configure time (see configure)
21 Suggests:       a2ps
22 Suggests:       samba-client
23 # ncpfs (/usr/bin/nprint) for Netware printing, but it's probably too legacy to suggest these days
24 # pap? (see configure)
25 Obsoletes:      printtool
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _ifhpfilterdir  /usr/lib/lpfilters
29 %define         _filterdir      /usr/lib/filters
30
31 %description
32 LPRngTool is a printer configuration and print queue monitoring and
33 management utility with a graphical user interface. LPRngTool is
34 similar to Red Hat's 'printtool', but includes most of the additional
35 functions of LPRng (including printer pooling, printer redirection,
36 job accounting, etc), and the 'lpc' facilities for local and remote
37 queue management and monitoring. LPRngTool works with SMB, Windows, HP
38 JetDirect, locally-attached, and unfiltered printers and print queues.
39
40 %description -l pl.UTF-8
41 LPRngTool to narzędzie do konfiguracji drukarki, monitorowania i
42 zarządzania kolejką wydruku z graficznym interfejsem użytkownika. Jest
43 podobne do RedHatowego printtoola, ale zwiera większość dodatkowych
44 funkcji LPRng (w tym przekierowanie drukarek, przydzielanie prac
45 itp.), oraz udogodnienia lpc do monitorowania i zarządzania lokalnymi
46 oraz zdalnymi kolejkami. LPRngTool działa z drukarkami i kolejkami
47 SMB, Windows, HP JetDirect, lokalnie podłączonymi i niefiltrowanymi.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52
53 %build
54 %{__aclocal}
55 %{__autoconf}
56 cp -f /usr/share/automake/config.sub .
57 %configure \
58         A2PS=/usr/bin/a2ps \
59         GS=/usr/bin/gs \
60         NPRINT=/usr/bin/nprint \
61         SMBCLIENT=/usr/bin/smbclient \
62         WITH=/usr/bin/wish \
63         --with-lprngtool_conf=%{_sysconfdir}/lprngtool.conf \
64         --with-printcap_path=%{_sysconfdir}/printcap \
65         --with-spool_directory=/var/spool/lpd  \
66         --with-ifhp_path=%{_ifhpfilterdir}/ifhp \
67         --with-filterdir=%{_filterdir} \
68         --with-gsupdir=%{_datadir}/ghostscript \
69         --with-userid=lp \
70         --with-groupid=lp
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT{%{_bindir},%{_filterdir}} \
76         $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},%{_mandir}/man1} \
77         $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
83 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files
89 %defattr(644,root,root,755)
90 %doc README CHANGES
91 %attr(755,root,root) %{_bindir}/lprngtool
92 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lprngtool.conf
93 %{_sysconfdir}/lprngtool.conf.sample
94 %dir %{_filterdir}
95 %attr(755,root,root) %{_filterdir}/atalkprint
96 %attr(755,root,root) %{_filterdir}/ncpprint
97 %attr(755,root,root) %{_filterdir}/smbprint
98 %{_filterdir}/printerdb
99 %{_filterdir}/testpage*
100 %{_desktopdir}/LPRngTool.desktop
101 %{_pixmapsdir}/LPRngTool.png
102 %{_mandir}/man1/lprngtool.1*
This page took 0.258018 seconds and 2 git commands to generate.