]> git.pld-linux.org Git - packages/LPRngTool.git/blob - LPRngTool.spec
75081199299c51b2c0151a6b2b24b775723eda52
[packages/LPRngTool.git] / LPRngTool.spec
1 Summary:        LPRngTool is a printer configuration and print queue monitoring and management utility with a graphical user interface for LPRng.
2 Summary(pl):    LPRngTool jest narzêdziem do monitorowania i zarz±dzania systemem druku LPRng
3 Name:           LPRngTool
4 Version:        1.2.7
5 Release:        1
6 License:        GPL
7 Group:          Applications/Publishing
8 Group(de):      Applikationen/Publizieren
9 Group(es):      Aplicaciones/Editoración
10 Group(pl):      Aplikacje/Publikowanie
11 Group(pt_BR):   Aplicações/Editoração
12 Source0:        ftp://ftp.astart.com/pub/LPRng/LPRngTool/%{name}-%{version}.tgz
13 Requires:       ghostscript tcl tk >= 1.50 LPRng >= 3.7  ifhp >= 3.4
14 Provides:       LPRngTool
15 Obsoletes:      printtool
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define wmconfig /etc/X11/wmconfig
19 %define bindir /usr/bin
20 %define controlpanel /usr/lib/rhs/control-panel
21 %define filterdir /usr/libexec/filters
22 %define rhfilterdir %{filterdir}/rhs
23 %define sysconfdir /etc
24 %define mandir /usr/share/man
25 %define datadir /usr/share
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 %prep
37 %setup -q
38
39 %build
40
41 # configuration for Linux
42 CONFIGURE_ARGS="--bindir=%{bindir} --mandir=%{mandir} \
43         --with-lprngtool_conf=%{sysconfdir}/lprngtool.conf \
44         --with-printcap_path=%{sysconfdir}/printcap \
45         --with-spool_directory=/var/spool/lpd  \
46         --with-ifhp_path=%{filterdir}/ifhp \
47         --with-userid=lp --with-groupid=lp \
48         --with-filterdir=%{filterdir} \
49         --with-rhfilterdir=%{rhfilterdir} \
50         --with-gsupdir=%{datadir}/ghostscript"
51
52 CFLAGS=%{rpmcflags} ./configure ${CONFIGURE_ARGS}
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 rm -rf %{buildroot}
58 install -d $RPM_BUILD_ROOT/%wmconfig
59 install -d $RPM_BUILD_ROOT/%bindir
60 install -d $RPM_BUILD_ROOT/%controlpanel
61 install -d $RPM_BUILD_ROOT/%filterdir
62 install -d $RPM_BUILD_ROOT/%rhfilterdir
63 install -d $RPM_BUILD_ROOT/%sysconfdir
64 rm -rf $RPM_BUILD_ROOT/%mandir/man1
65 install -d $RPM_BUILD_ROOT/%mandir/man1
66
67 %{__make} DESTDIR=$RPM_BUILD_ROOT install
68
69 install lprngtool.wmconfig $RPM_BUILD_ROOT/%wmconfig/lprngtool  
70 install lprngtool.init $RPM_BUILD_ROOT/%controlpanel/lprngtool.init
71 install lprngtool.xpm  $RPM_BUILD_ROOT/%controlpanel/lprngtool.xpm
72
73 %clean
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README CHANGES INSTALL
78 %{bindir}/*
79 %{controlpanel}/lprngtool.init
80 %{controlpanel}/lprngtool.xpm
81 %attr(0644,root,root)   %config            %{sysconfdir}/lprngtool.conf
82 %attr(0644,root,root)                      %{sysconfdir}/lprngtool.conf.sample
83 %attr(0644,root,root)   %config(missingok) %{wmconfig}/lprngtool
84 %{mandir}/man1/*.1*
85 %dir %rhfilterdir
86 %{rhfilterdir}/*
This page took 0.044402 seconds and 2 git commands to generate.