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