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