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