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