]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
[3.6.2-1]
[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.6.2
5 Release:        1
6 Copyright:      GPL
7 Group:          Utilities/System
8 Group(pl):      Narzêdzia/System
9 Source0:        ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
10 Source1:        lpd.init
11 Patch0:         LPRng-install.patch
12 Patch1:         LPRng-autoconf.patch
13 Requires:       /sbin/chkconfig
14 URL:            http://www.astart.com/lprng/LPRng.html
15 Provides:       lpr
16 Obsoletes:      lpr
17 BuildRoot:      /tmp/%{name}-%{version}-root
18
19 %define         _libdir %{_sbindir}
20
21 %description
22 LPRng is the "next generation" printing system for UNIX, featuring
23 enhanced reliability and security.
24
25 %description -l pl
26 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym niezawodno¶æ 
27 i bezpieczeñstwo.
28
29 %prep
30 %setup  -q
31 %patch0 -p0
32 %patch1 -p1
33
34 %build
35 gettextize --copy --force
36 aclocal
37 autoconf
38 LDFLAGS="-s"; export LDFLAGS
39 %configure \
40         --enable-nls \
41         --with-included-gettext
42
43 make
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d  $RPM_BUILD_ROOT/etc/rc.d/init.d
48
49 make install \
50         DESTDIR=$RPM_BUILD_ROOT \
51         LPD_CONF_PATH=$RPM_BUILD_ROOT/etc/lpd.conf \
52         LPD_PERMS_PATH=$RPM_BUILD_ROOT/etc/lpd.perms \
53         SUID_ROOT_PERMS="755"
54
55 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
56
57 rm -fr TESTSUPPORT/{Makefile*,LPD}
58
59 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
60         ANNOUNCE CHANGES CONTRIBUTORS \
61         README* TESTSUPPORT/* HOWTO/LPRng-HOWTO.txt
62
63 %find_lang %{name}
64
65 %post
66 /sbin/chkconfig --add lpd
67 if test -r /var/run/lpd.pid; then
68         /etc/rc.d/init.d/lpd restart 1>&2
69 else
70         echo "Run \"/etc/rc.d/init.d/lpd start\" to start mcserv daemon."
71 fi
72
73 %preun
74 if [ "$1" = "0" ]; then
75         /sbin/chkconfig --del lpd
76         /etc/rc.d/init.d/lpd stop 1>&2
77 fi
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %config(noreplace) /etc/lpd.conf
85 %config(noreplace) /etc/lpd.perms
86 %doc {ANNOUNCE,CHANGES,CONTRIBUTORS}.gz
87 %doc {HOWTO/LPRng-HOWTO.txt,README*}.gz TESTSUPPORT
88 %attr(754,root,root) /etc/rc.d/init.d/lpd
89 %attr(755,root,root) %{_bindir}/*
90 %attr(755,root,root) %{_sbindir}/*
91 %{_mandir}/man[158]/*
92
93 %changelog
94 * Sat Jul 10 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
95   [3.6.2-1]
96 - added more standard autoconf suit (LPRng-autoconf.patch),
97 - removed unused Source1 (LPRng-DOC*tgz),
98 - added including in pacckage .mo files (%%find_lang),
99 - added using %config macro in %build
100 - standarized %post, %preun.
101
102 * Tue Feb  9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
103   [3.5.3-2]
104 - added pl translations
105 - added Group(pl)
106 - added gzipping man pages and documentation
107
108 * Tue Dec  1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
109   [3.5.3-1]
110 - added -q %setup parameter,
111 - added gzipping man pages,
112 - changed Buildroot to /tmp/%%{name}-%%{version}-root,
113 - removed INSTALL and COPYING from %doc,
114 - added using %%{name} and %%{version} in Source,
115 - added %attr and %defattr macros in %files (allow build package from
116   non-root account).
117
118 * Thu Jan 29 1998 Jan "Yenya" Kasprzak <kas@fi.muni.cz
119 - Upgraded to 3.4.2
120 - Merged LPRng and LPRng-lpd packages - if you don't need lpd, chkconfig it off.
121 - Changed /etc/rc.d/init.d/lpd script to be chkconfig-compatible for RH5.0
122
123 * Thu Jun 5 1997 Timo Karjalainen <timok@iki.fi>
124 - Upgraded to version 3.2.6
125
126 * Sat May 31 1997 Timo Karjalainen <timok@iki.fi>
127 - Upgraded to version 3.2.5
128 - Some minor changes to specfile
This page took 0.136071 seconds and 4 git commands to generate.