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