]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng.spec
- added using CVS keywords in %changelog (for automating them).
[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]/*
This page took 0.04595 seconds and 4 git commands to generate.