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