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