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