]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
- removed %{_*dir} redefines
[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:        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 Source2:        LPRng.conf
12 Patch0:         LPRng-autoconf.patch
13 BuildRequires:  ncurses-devel >= 5.0
14 Requires:       /sbin/chkconfig
15 Requires:       rc-scripts >= 0.2.0
16 URL:            http://www.astart.com/lprng/LPRng.html
17 Provides:       lpr
18 Obsoletes:      lpr
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
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 %patch0 -p1
57
58 %build
59 gettextize --copy --force
60 aclocal
61 autoconf
62 LDFLAGS="-s"; export LDFLAGS
63 %configure \
64         --enable-nls \
65         --disable-setuid \
66         --with-userid=lp \
67         --with-groupid=lp \
68         --with-filterdir=%{_libdir}/lpfilters \
69         --with-lockfile=%{_var}/spool/lpd/lpd
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d  $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd}
76
77 %{__make} install \
78         INSTALL_PREFIX=$RPM_BUILD_ROOT \
79         LPD_CONF_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf \
80         LPD_PERMS_PATH=$RPM_BUILD_ROOT%{_sysconfdir}/lpd.perms
81
82 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
83 # yes, overwrite distribution lpd.conf
84 install %{SOURCE2} $RPM_BUILD_ROOT/etc/lpd.conf
85 install printcap   $RPM_BUILD_ROOT/etc/
86
87 rm -fr TESTSUPPORT/{Makefile*,LPD}
88 mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
89
90 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
91         CHANGES CONTRIBUTORS README* TESTSUPPORT/*
92
93 #%find_lang %{name}
94
95 %post
96 /sbin/chkconfig --add lpd
97 if [ -f /var/lock/subsys/lpd ]; then
98         /etc/rc.d/init.d/lpd restart 1>&2
99 else
100         echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
101 fi
102
103 %preun
104 if [ "$1" = "0" ]; then
105         if [ -f /var/lock/subsys/lpd ]; then
106                 /etc/rc.d/init.d/lpd stop 1>&2
107         fi
108         /sbin/chkconfig --del lpd
109 fi
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %files
115 %defattr(644,root,root,755)
116 %config(noreplace) %{_sysconfdir}/lpd.conf
117 %config(noreplace) %{_sysconfdir}/lpd.perms
118 %config(noreplace) %{_sysconfdir}/printcap
119 %doc {CHANGES,CONTRIBUTORS,README*}.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html
120 %attr(754,root,root) /etc/rc.d/init.d/lpd
121 %attr(755,root,root) %{_bindir}/*
122 %attr(755,root,root) %{_sbindir}/*
123 %dir %{_libdir}/lpfilters
124 %attr(755,root,root) %{_libdir}/lpfilters/*
125 %dir %attr(750,root,lp) %{_var}/spool/lpd
126 %{_mandir}/man[158]/*
This page took 0.065554 seconds and 4 git commands to generate.