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