[521] | 1 | Summary: GPR - PPD-based graphical printing frontend. |
---|
| 2 | Summary(ja): GPR - PPD¥Ù¡¼¥¹¤Î¥°¥é¥Õ¥£¥«¥ë°õºþ¥Õ¥í¥ó¥È¥¨¥ó¥É |
---|
| 3 | Name: gpr |
---|
| 4 | Version: 0.9 |
---|
| 5 | Release: 0vl3 |
---|
| 6 | License: GPL |
---|
| 7 | Group: Applications/Publishing |
---|
| 8 | |
---|
| 9 | Source: http://sourceforge.net/projects/lpr/%{name}-%{version}.tar.bz2 |
---|
| 10 | Url: http://sourceforge.net/projects/lpr/ |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | Prereq: alternatives |
---|
| 13 | Requires: libppd ppdfilt libxml gtk+ a2ps |
---|
| 14 | BuildRequires: autoconf automake libtool libppd-devel libxml-devel gtk+-devel |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | GPR is a graphical printing frontend which allows choosing the desired |
---|
| 18 | printer and adjusting printer options via a GUI under various |
---|
| 19 | spoolers. To have the needed printer capability information to set up |
---|
| 20 | the option screens it uses PPD files, which are available for all |
---|
| 21 | PostScript printers and all printers configured with Foomatic. |
---|
| 22 | |
---|
| 23 | %prep |
---|
| 24 | |
---|
| 25 | %setup -q |
---|
| 26 | |
---|
| 27 | %build |
---|
| 28 | %configure |
---|
| 29 | make |
---|
| 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 |
---|
| 46 | if [ "$1" = 0 ]; then |
---|
| 47 | # Remove update-alternatives entry |
---|
| 48 | /sbin/update-alternatives --remove lpr /usr/bin/lpr-gpr |
---|
| 49 | fi |
---|
| 50 | |
---|
| 51 | %postun |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -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 | |
---|