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