]>
Commit | Line | Data |
---|---|---|
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: ftp://ftp.lprng.com/pub/LPRng/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 | BuildRequires: samba-client | |
16 | Requires: LPRng >= 3.7 | |
17 | Requires: ghostscript | |
18 | Requires: ifhp >= 3.4 | |
19 | Requires: tcl | |
20 | Requires: tk >= 1.50 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | Obsoletes: printtool | |
23 | ||
24 | %define _ifhpfilterdir /usr/lib/lpfilters | |
25 | %define _filterdir /usr/lib/filters | |
26 | ||
27 | %description | |
28 | LPRngTool is a printer configuration and print queue monitoring and | |
29 | management utility with a graphical user interface. LPRngTool is | |
30 | similar to Red Hat's 'printtool', but includes most of the additional | |
31 | functions of LPRng (including printer pooling, printer redirection, | |
32 | job accounting, etc), and the 'lpc' facilities for local and remote | |
33 | queue management and monitoring. LPRngTool works with SMB, Windows, HP | |
34 | JetDirect, locally-attached, and unfiltered printers and print queues. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | LPRngTool to narzędzie do konfiguracji drukarki, monitorowania i | |
38 | zarządzania kolejką wydruku z graficznym interfejsem użytkownika. Jest | |
39 | podobne do RedHatowego printtoola, ale zwiera większość dodatkowych | |
40 | funkcji LPRng (w tym przekierowanie drukarek, przydzielanie prac | |
41 | itp.), oraz udogodnienia lpc do monitorowania i zarządzania lokalnymi | |
42 | oraz zdalnymi kolejkami. LPRngTool działa z drukarkami i kolejkami | |
43 | SMB, Windows, HP JetDirect, lokalnie podłączonymi i niefiltrowanymi. | |
44 | ||
45 | %prep | |
46 | %setup -q | |
47 | %patch0 -p1 | |
48 | ||
49 | %build | |
50 | %{__aclocal} | |
51 | %{__autoconf} | |
52 | cp -f /usr/share/automake/config.sub . | |
53 | %configure \ | |
54 | --with-lprngtool_conf=%{_sysconfdir}/lprngtool.conf \ | |
55 | --with-printcap_path=%{_sysconfdir}/printcap \ | |
56 | --with-spool_directory=/var/spool/lpd \ | |
57 | --with-ifhp_path=%{_ifhpfilterdir}/ifhp \ | |
58 | --with-filterdir=%{_filterdir} \ | |
59 | --with-gsupdir=%{_datadir}/ghostscript \ | |
60 | --with-userid=lp \ | |
61 | --with-groupid=lp | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_filterdir}} \ | |
67 | $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir},%{_mandir}/man1} \ | |
68 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
74 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc README CHANGES | |
82 | %attr(0755,root,root) %{_bindir}/* | |
83 | %config %{_sysconfdir}/lprngtool.conf | |
84 | %{_sysconfdir}/lprngtool.conf.sample | |
85 | %{_mandir}/man1/*.1* | |
86 | %dir %{_filterdir} | |
87 | %attr(755,root,root) %{_filterdir}/atalkprint | |
88 | %attr(755,root,root) %{_filterdir}/ncpprint | |
89 | %attr(755,root,root) %{_filterdir}/smbprint | |
90 | %{_filterdir}/printerdb | |
91 | %{_filterdir}/testpage* | |
92 | %{_desktopdir}/*.desktop | |
93 | %{_pixmapsdir}/* |