]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
- no subshells
[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.1
6 Release:        2
7 License:        GPL
8 Group:          Applications/System
9 Source0:        ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 Source3:        %{name}.printcap
13 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
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 Obsoletes:      cups
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
103         aclocal
104         autoconf
105 cd ..
106 %configure \
107         --disable-setuid \
108         --with-userid=lp \
109         --with-groupid=lp \
110         --with-filterdir=%{_libdir}/lpfilters \
111         --with-lockfile=%{_var}/spool/lpd/lpd
112
113 %{__make}
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117 install -d  $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_var}/spool/lpd/lp}
118
119 %{__make} install \
120         DESTDIR=$RPM_BUILD_ROOT \
121         POSTINSTALL="NO"
122
123 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
124 # yes, overwrite distribution lpd.conf
125 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
126 echo "default_printer = lp" >>$RPM_BUILD_ROOT%{_sysconfdir}/lpd.conf
127 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/printcap
128 install lpd.perms $RPM_BUILD_ROOT%{_sysconfdir}/
129 # default spool
130
131 rm -fr TESTSUPPORT/{Makefile*,LPD}
132 mv -f lpd.conf TESTSUPPORT/lpd.conf.distrib
133
134 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
135
136 gzip -9nf CHANGES CONTRIBUTORS README* TESTSUPPORT/*
137
138 %find_lang %{name}
139
140 %clean
141 rm -rf $RPM_BUILD_ROOT
142
143 %post
144 /sbin/ldconfig
145 /sbin/chkconfig --add lpd
146 if [ -f /var/lock/subsys/lpd ]; then
147         /etc/rc.d/init.d/lpd restart 1>&2
148 else
149         echo "Run \"/etc/rc.d/init.d/lpd start\" to start LPRng lpd daemon."
150 fi
151
152 %preun
153 if [ "$1" = "0" ]; then
154         if [ -f /var/lock/subsys/lpd ]; then
155                 /etc/rc.d/init.d/lpd stop 1>&2
156         fi
157         /sbin/chkconfig --del lpd
158 fi
159
160 %postun -p /sbin/ldconfig
161
162 %files -f %{name}.lang
163 %defattr(644,root,root,755)
164 %doc *.gz TESTSUPPORT HOWTO/LPRng-HOWTO.html HOWTO/CHANGES
165 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.conf
166 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/lpd.perms
167 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/printcap
168 %attr(754,root,root) /etc/rc.d/init.d/lpd
169 %attr(755,root,root) %{_bindir}/*
170 %attr(755,root,root) %{_sbindir}/*
171 %attr(755,root,root) %{_libdir}/lib*.so.*.*
172 %dir %{_libdir}/lpfilters
173 %attr(755,root,root) %{_libdir}/lpfilters/*
174 %dir %attr(750,root,lp) %{_var}/spool/lpd
175 %dir %attr(770,root,lp) %{_var}/spool/lpd/lp
176 %{_mandir}/man[158]/*
177 %lang(pl) %{_mandir}/pl/man[158]/*
This page took 0.0845 seconds and 4 git commands to generate.