source: projects/specs/trunk/g/gpr/gpr-vl.spec @ 521

Revision 521, 1.7 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Summary:        GPR - PPD-based graphical printing frontend.
2Summary(ja):    GPR - PPD¥Ù¡¼¥¹¤Î¥°¥é¥Õ¥£¥«¥ë°õºþ¥Õ¥í¥ó¥È¥¨¥ó¥É
3Name:           gpr
4Version:        0.9
5Release:        0vl3
6License:        GPL
7Group:          Applications/Publishing
8
9Source:         http://sourceforge.net/projects/lpr/%{name}-%{version}.tar.bz2
10Url:            http://sourceforge.net/projects/lpr/
11BuildRoot:      %{_tmppath}/%{name}-%{version}-root
12Prereq:         alternatives
13Requires:       libppd ppdfilt libxml gtk+ a2ps
14BuildRequires:  autoconf automake libtool libppd-devel libxml-devel gtk+-devel
15
16%description
17GPR is a graphical printing frontend which allows choosing the desired
18printer and adjusting printer options via a GUI under various
19spoolers. To have the needed printer capability information to set up
20the option screens it uses PPD files, which are available for all
21PostScript printers and all printers configured with Foomatic.
22
23%prep
24
25%setup -q
26
27%build
28%configure
29make
30
31%install
32%makeinstall
33
34# Use update-alternatives to make printing with GPR also possible with
35# the "lpr" command
36
37( cd $RPM_BUILD_ROOT%{_bindir}
38  ln -s gpr lpr-gpr
39)
40
41%post
42# Set up update-alternatives entry
43/sbin/update-alternatives --install %{_bindir}/lpr lpr %{_bindir}/lpr-gpr 8
44
45%preun
46if [ "$1" = 0 ]; then
47  # Remove update-alternatives entry
48  /sbin/update-alternatives --remove lpr /usr/bin/lpr-gpr
49fi
50
51%postun
52
53%clean
54rm -fr %buildroot
55
56%files
57%defattr(-,root,root)
58%doc ABOUT-NLS AUTHORS COPYING INSTALL README TODO
59%{_bindir}/*
60
61%changelog
62* Thu Oct 28 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl3
63- rebuild with db4-4.2.52
64- added Japanese summary
65
66* Sat Sep 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl2
67- change Group:
68- added Prereq: alternatives
69
70* Wed Apr 30 2003 Satoshi MACHINO <machino@vinelinux.org> 0.9-0vl1
71- initial release.
72
Note: See TracBrowser for help on using the repository browser.