]> git.pld-linux.org Git - packages/LPRngTool.git/blob - LPRngTool.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/LPRngTool.git] / LPRngTool.spec
1 Summary:        LPRngTool - printer configuration, monitoring and management utility with GUI for LPRng
2 Summary(pl):    LPRngTool - narzêdziem do monitorowania i zarz±dzania systemem druku LPRng
3 Name:           LPRngTool
4 Version:        1.3.2
5 Release:        2
6 License:        GPL
7 Group:          Applications/Publishing
8 Source0:        ftp://ftp.lprng.com/pub/LPRng/LPRngTool/%{name}-%{version}.tgz
9 Source1:        %{name}.desktop
10 Source2:        %{name}.png
11 Patch0:         %{name}-ac_fixes.patch
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  samba-client
15 Requires:       ghostscript
16 Requires:       tcl
17 Requires:       tk >= 1.50
18 Requires:       LPRng >= 3.7
19 Requires:       ifhp >= 3.4
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Obsoletes:      printtool
22
23 %define         _ifhpfilterdir  /usr/lib/lpfilters
24 %define         _filterdir      /usr/lib/filters
25 %define         _prefix         /usr/X11R6
26 %define         _mandir         %{_prefix}/man
27
28 %description
29 LPRngTool is a printer configuration and print queue monitoring and
30 management utility with a graphical user interface. LPRngTool is
31 similar to Red Hat's 'printtool', but includes most of the additional
32 functions of LPRng (including printer pooling, printer redirection,
33 job accounting, etc), and the 'lpc' facilities for local and remote
34 queue management and monitoring. LPRngTool works with SMB, Windows, HP
35 JetDirect, locally-attached, and unfiltered printers and print queues.
36
37 %description -l pl
38 LPRngTool to narzêdzie do konfiguracji drukarki, monitorowania i
39 zarz±dzania kolejk± wydruku z graficznym interfejsem u¿ytkownika. Jest
40 podobne do RedHatowego printtoola, ale zwiera wiêkszo¶æ dodatkowych
41 funkcji LPRng (w tym przekierowanie drukarek, przydzielanie prac
42 itp.), oraz udogodnienia lpc do monitorowania i zarz±dzania lokalnymi
43 oraz zdalnymi kolejkami. LPRngTool dzia³a z drukarkami i kolejkami
44 SMB, Windows, HP JetDirect, lokalnie pod³±czonymi i niefiltrowanymi.
45
46 %prep
47 %setup -q
48 %patch0 -p1
49
50 %build
51 %{__aclocal}
52 %{__autoconf}
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},%{_applnkdir}/Settings}
69
70 %{__make} DESTDIR=$RPM_BUILD_ROOT install
71
72 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Settings
73 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %doc README CHANGES
81 %attr(0755,root,root) %{_bindir}/*
82 %config %{_sysconfdir}/lprngtool.conf
83 %{_sysconfdir}/lprngtool.conf.sample
84 %{_mandir}/man1/*.1*
85 %dir %{_filterdir}
86 %attr(755,root,root) %{_filterdir}/atalkprint
87 %attr(755,root,root) %{_filterdir}/ncpprint
88 %attr(755,root,root) %{_filterdir}/smbprint
89 %{_filterdir}/printerdb
90 %{_filterdir}/testpage*
91 %{_applnkdir}/Settings/*
92 %{_pixmapsdir}/*
This page took 0.208109 seconds and 4 git commands to generate.