]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
- fixed %doc,
[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.5.3
5 Release:        2
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:        ftp://ftp.astart.com/pub/LPRng/LPRng/%{name}_DOC-%{version}.tgz
11 Source2:        lpd.init
12 Requires:       /sbin/chkconfig
13 Provides:       lpr
14 Obsoletes:      lpr
15 BuildRoot:      /tmp/%{name}-%{version}-root
16
17 %description
18 LPRng is the "next generation" printing system for UNIX, featuring
19 enhanced reliability and security.
20
21 %description -l pl
22 LPRng jest systemem drukowania nowej generacji zwiêkszaj±cym niezawodno¶æ 
23 i bezpieczeñstwo.
24
25 %prep
26 %setup -q
27 # %setup -a1 
28
29 %build
30 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
31 ./configure \
32         --prefix=/usr 
33 #       --with-lpddir=/usr/sbin \
34 #       --with-admindir=/usr/sbin
35
36 make
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d  $RPM_BUILD_ROOT/etc/rc.d/init.d
41
42 make install \
43         prefix=$RPM_BUILD_ROOT/usr \
44         INSTALL_LIB=$RPM_BUILD_ROOT/usr/sbin \
45         INSTALL_MAINT=$RPM_BUILD_ROOT/usr/sbin \
46         SUID_ROOT_PERMS="755"
47
48 install $RPM_SOURCE_DIR/lpd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/lpd
49 install lpd.conf lpd.perms $RPM_BUILD_ROOT/etc
50 # /etc/printcap is in the setup package
51 # touch $RPM_BUILD_ROOT/etc/printcap
52
53 gzip -9nf $RPM_BUILD_ROOT/usr/man/man*/* \
54         ANNOUNCE Artistic.license CHANGES CONTRIBUTORS \
55         Commercial.license HOWTO README* TESTSUPPORT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %pre
61 if test -r /etc/rc.d/init.d/lpd
62         then /etc/rc.d/init.d/lpd stop
63 fi
64
65 if test -r /etc/rc.d/init.d/lpd.init
66         then /etc/rc.d/init.d/lpd.init stop
67 fi
68
69 %post
70 test "$1" = 1 && /sbin/chkconfig lpd on
71
72 %preun
73 if test "$1" = 0
74 then
75         /etc/rc.d/init.d/lpd stop
76         /sbin/chkconfig lpd off
77 fi
78
79 %files
80 %defattr(644,root,root,755)
81 # /etc/printcap is in the setup package
82 # %config /etc/printcap
83 %config /etc/lpd.conf
84 %config /etc/lpd.perms
85 %doc {ANNOUNCE,Artistic.license,CHANGES,CONTRIBUTORS}.gz
86 %doc {Commercial.license,HOWTO,README*,TESTSUPPORT}.gz
87 %attr(755,root,root) /etc/rc.d/init.d/lpd
88 %attr(755,root,root) /usr/bin/*
89 %attr(755,root,root) /usr/sbin/*
90 /usr/man/man[158]/*
91
92 %changelog
93 * Tue Feb  9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
94   [3.5.3-2]
95 - added pl translations
96 - added Group(pl)
97 - added gzipping man pages and documentation
98
99 * Tue Dec  1 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
100   [3.5.3-1]
101 - added -q %setup parameter,
102 - added gzipping man pages,
103 - changed Buildroot to /tmp/%%{name}-%%{version}-root,
104 - removed INSTALL and COPYING from %doc,
105 - added using %%{name} and %%{version} in Source,
106 - added %attr and %defattr macros in %files (allow build package from
107   non-root account).
108
109 * Thu Jan 29 1998 Jan "Yenya" Kasprzak <kas@fi.muni.cz
110 - Upgraded to 3.4.2
111 - Merged LPRng and LPRng-lpd packages - if you don't need lpd, chkconfig it off.
112 - Changed /etc/rc.d/init.d/lpd script to be chkconfig-compatible for RH5.0
113
114 * Thu Jun 5 1997 Timo Karjalainen <timok@iki.fi>
115 - Upgraded to version 3.2.6
116
117 * Sat May 31 1997 Timo Karjalainen <timok@iki.fi>
118 - Upgraded to version 3.2.5
119 - Some minor changes to specfile
This page took 0.032076 seconds and 3 git commands to generate.