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