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