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