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