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