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