]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
- Requires for rc-scripts changed to Prereq.
[packages/LPRng.git] / LPRng.spec
1 Summary:        A next-generation printing system for UNIX
2 Summary(pl):    System drukowania nowej generacji
3 Name:           LPRng
4 Version:        3.7.4
5 Release:        2
6 License:        GPL
7 Group:          Utilities/System
8 Group(pl):      Narzêdzia/System
9 Source0:        ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 Patch0:         %{name}-filter.patch
13 Patch1:         %{name}-ac_fixes.patch
14 Patch2:         %{name}-inet_ntop.patch
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  gettext-devel
18 BuildRequires:  ncurses-devel >= 5.0
19 Requires:       /sbin/chkconfig
20 Prereq:         rc-scripts >= 0.2.0
21 URL:            http://www.astart.com/lprng/LPRng.html
22 Provides:       lpr
23 Obsoletes:      lpr
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26
27 %description
28 The LPRng software is an enhanced, extended, and portable
29 implementation of the Berkeley LPR print spooler functionality. While
30 providing the same interface and meeting RFC1179 requirements, the
31 implementation is completely new and provides support for the
32 following features: lightweight (no databases needed) lpr, lpc, and
33 lprm programs; dynamic redirection of print queues; automatic job
34 holding; highly verbose diagnostics; multiple printers serving a
35 single queue; client programs do not need to run SUID root; greatly
36 enhanced security checks; and a greatly improved permission and
37 authorization mechanism.
38
39 The source software compiles and runs on a wide variety of UNIX
40 systems, and is compatible with other print spoolers and network
41 printers that use the LPR interface and meet RFC1179 requirements.
42 LPRng provides emulation packages for the SVR4 lp and lpstat programs,
43 eliminating the need for another print spooler package. These
44 emulation packages can be modified according to local requirements, in
45 order to support vintage printing systems.
46
47 For users that require secure and/or authenticated printing support,
48 LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP
49 authentication. LPRng is being adopted by MIT for use as their Campus
50 Wide printing support system. Additional authentication support is
51 extremely simple to add. LPRng is Open Source Software, and the
52 current public distribution is available from the listed FTP and Web
53 Sites.
54
55 %description -l pl
56 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym
57 niezawodno¶æ i bezpieczeñstwo.
58
59 %prep
60 %setup  -q
61 %patch0 -p1
62 %patch1 -p1
63 %patch2 -p1
64
65 %build
66 gettextize --copy --force
67 aclocal
68 autoconf
69 %configure \
70         --disable-setuid \
71         --with-userid=lp \
72         --with-groupid=lp \
73         --with-filterdir=%{_libdir}/lpfilters \
74         --with-lockfile=%{_var}/spool/lpd/lpd
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d  $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd}
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
86 # yes, overwrite distribution lpd.conf
87 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
88 install printcap.in $RPM_BUILD_ROOT%{_sysconfdir}/printcap
89 install lpd.perms $RPM_BUILD_ROOT%{_sysconfdir}/
90
91 rm -fr TESTSUPPORT/{Makefile*,LPD}
92 mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
93
94 gzip -9nf CHANGES CONTRIBUTORS README* TESTSUPPORT/*
95
96 %find_lang %{name}
97
98 %post
99 /sbin/chkconfig --add lpd
100 if [ -f /var/lock/subsys/lpd ]; then
101         /etc/rc.d/init.d/lpd restart 1>&2
102 else
103         echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
104 fi
105
106 %preun
107 if [ "$1" = "0" ]; then
108         if [ -f /var/lock/subsys/lpd ]; then
109                 /etc/rc.d/init.d/lpd stop 1>&2
110         fi
111         /sbin/chkconfig --del lpd
112 fi
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf
120 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms
121 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap
122 %doc {CHANGES,CONTRIBUTORS,README*}.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html
123 %attr(754,root,root) /etc/rc.d/init.d/lpd
124 %attr(755,root,root) %{_bindir}/*
125 %attr(755,root,root) %{_sbindir}/*
126 %dir %{_libdir}/lpfilters
127 %attr(755,root,root) %{_libdir}/lpfilters/*
128 %dir %attr(750,root,lp) %{_var}/spool/lpd
129 %{_mandir}/man[158]/*
This page took 0.065091 seconds and 4 git commands to generate.