]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
- remove static subpackage.
[packages/LPRng.git] / LPRng.spec
1 Summary:        A next-generation printing system for UNIX
2 Summary(pl):    System drukowania nowej generacji
3 Summary(zh_CN): LPRng--´òÓ¡³ÌÐò
4 Name:           LPRng
5 Version:        3.8.0
6 Release:        1
7 License:        GPL
8 Group:          Applications/System
9 Group(de):      Applikationen/System
10 Group(pl):      Aplikacje/System
11 Source0:        ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
12 Source1:        %{name}.init
13 Source2:        %{name}.conf
14 Source3:        %{name}.printcap
15 Patch0:         %{name}-jobfilescan.patch
16 Patch1:         %{name}-ac_fixes.patch
17 Patch2:         %{name}-manpage.patch
18 Patch3:         %{name}-shutdown.patch
19 Patch4:         %{name}-nproc-unlimited.patch
20 URL:            http://www.astart.com/lprng/LPRng.html
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  gettext-devel
24 BuildRequires:  libtool
25 BuildRequires:  ncurses-devel >= 5.0
26 Prereq:         /sbin/ldconfig
27 Prereq:         /sbin/chkconfig
28 Prereq:         rc-scripts >= 0.2.0
29 Provides:       lpr
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Obsoletes:      lpr
32
33 %description
34 The LPRng software is an enhanced, extended, and portable
35 implementation of the Berkeley LPR print spooler functionality. While
36 providing the same interface and meeting RFC1179 requirements, the
37 implementation is completely new and provides support for the
38 following features: lightweight (no databases needed) lpr, lpc, and
39 lprm programs; dynamic redirection of print queues; automatic job
40 holding; highly verbose diagnostics; multiple printers serving a
41 single queue; client programs do not need to run SUID root; greatly
42 enhanced security checks; and a greatly improved permission and
43 authorization mechanism.
44
45 The source software compiles and runs on a wide variety of UNIX
46 systems, and is compatible with other print spoolers and network
47 printers that use the LPR interface and meet RFC1179 requirements.
48 LPRng provides emulation packages for the SVR4 lp and lpstat programs,
49 eliminating the need for another print spooler package. These
50 emulation packages can be modified according to local requirements, in
51 order to support vintage printing systems.
52
53 For users that require secure and/or authenticated printing support,
54 LPRng supports Kerberos V, MIT Kerberos IV Print Support, and PGP
55 authentication. LPRng is being adopted by MIT for use as their Campus
56 Wide printing support system. Additional authentication support is
57 extremely simple to add. LPRng is Open Source Software, and the
58 current public distribution is available from the listed FTP and Web
59 Sites.
60
61 %description -l pl
62 LPRng jest rozszerzon±, ulepszon± i portowaln± implementacj± 
63 Berkeley'owskiego LPR print spooler'a. Dostarcza ten sam interfejs
64 oraz jest zgodny z wymaganiami RFC1179. Jednocze¶nie wykonanie jest
65 ca³kowicie nowe i dostarcza nastêpuj±ce rzeczy: 
66 - programy - "lekki" lpr (nie s± potrzebne ¿adne bazy danych), 
67   lpc, oraz lprm;
68 - dynamiczna redyrekcja do kolejek;
69 - automatyczne wstrzymywanie zadañ;
70 - "gadatliwa" diagnostyka;
71 - obs³ugê wielu drukarek na jednej kolejce;
72 - programy klienckie nie musz± byæ SUID root;
73 - mocno rozszerzona kontrola bezpieczeñstwa;
74 - mocno rozszerzone mechanizmy bezpieczeñstwa i kontroli uprawnieñ.
75
76 Oprogramowanie to kompiluje siê i dzia³a na wielu systemach UNIX'owych
77 i jest kompatybilne z innymi print spoolami oraz drukarkami sieciowymi, 
78 które u¿ywaj± interfejsu LPR oraz spe³niaj± wymagania RFC1179. LPRng
79 dostarcza pakiety emulacyjne dla programów SVR4 lp oraz lpstat, 
80 eliminuj±c w ten sposób konieczno¶æ posiadania jeszcze jednego pakietu
81 print spoola. Te pakiety mog± byæ modyfikowane zgodnie z lokalnymi 
82 wymaganiami. 
83
84 Dla u¿ytkowników, którzy potrzebuj± bezpiecznej i autentyfikowanej
85 obs³ugi drukowania LPRng wspiera Kerberos V, MIT Kerberos IV Print 
86 Support oraz PGP. 
87
88 %prep
89 %setup  -q
90 %patch0 -p1
91 %patch1 -p1
92 %patch2 -p1
93 %patch3 -p1
94 %patch4 -p1
95
96 %build
97 rm -f missing acinclude.m4
98 gettextize --copy --force
99 libtoolize --copy --force
100 aclocal
101 autoconf
102 (cd gdbm-1.8.0 ; aclocal ; autoconf )
103 %configure \
104         --disable-setuid \
105         --with-userid=lp \
106         --with-groupid=lp \
107         --with-filterdir=%{_libdir}/lpfilters \
108         --with-lockfile=%{_var}/spool/lpd/lpd
109
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d  $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd/lp}
115
116 %{__make} install \
117         DESTDIR=$RPM_BUILD_ROOT \
118         POSTINSTALL="NO"
119
120 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
121 # yes, overwrite distribution lpd.conf
122 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
123 echo "default_printer = lp" >>$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
124 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/printcap
125 install lpd.perms $RPM_BUILD_ROOT%{_sysconfdir}/
126 # default spool
127
128 rm -fr TESTSUPPORT/{Makefile*,LPD}
129 mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
130
131 gzip -9nf CHANGES CONTRIBUTORS README* TESTSUPPORT/*
132
133 %find_lang %{name}
134
135 %clean
136 rm -rf $RPM_BUILD_ROOT
137
138 %post
139 /sbin/ldconfig
140 /sbin/chkconfig --add lpd
141 if [ -f /var/lock/subsys/lpd ]; then
142         /etc/rc.d/init.d/lpd restart 1>&2
143 else
144         echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
145 fi
146
147 %preun
148 if [ "$1" = "0" ]; then
149         if [ -f /var/lock/subsys/lpd ]; then
150                 /etc/rc.d/init.d/lpd stop 1>&2
151         fi
152         /sbin/chkconfig --del lpd
153 fi
154
155 %postun -p /sbin/ldconfig
156
157 %files -f %{name}.lang
158 %defattr(644,root,root,755)
159 %doc *.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html HOWTO/CHANGES
160 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf
161 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms
162 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap
163 %attr(754,root,root) /etc/rc.d/init.d/lpd
164 %attr(755,root,root) %{_bindir}/*
165 %attr(755,root,root) %{_sbindir}/*
166 %attr(755,root,root) %{_libdir}/lib*.so.*.*
167 %dir %{_libdir}/lpfilters
168 %attr(755,root,root) %{_libdir}/lpfilters/*
169 %dir %attr(750,root,lp) %{_var}/spool/lpd
170 %dir %attr(770,root,lp) %{_var}/spool/lpd/lp
171 %{_mandir}/man[158]/*
This page took 0.10412 seconds and 4 git commands to generate.