gpr-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. Source: http://sourceforge.net/projects/lpr/%{name}-%{version}.tar.bz2
  9. Url: http://sourceforge.net/projects/lpr/
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Prereq: alternatives
  12. Requires: libppd ppdfilt libxml gtk+ a2ps
  13. BuildRequires: autoconf automake libtool libppd-devel libxml-devel gtk+-devel
  14. %description
  15. GPR is a graphical printing frontend which allows choosing the desired
  16. printer and adjusting printer options via a GUI under various
  17. spoolers. To have the needed printer capability information to set up
  18. the option screens it uses PPD files, which are available for all
  19. PostScript printers and all printers configured with Foomatic.
  20. %prep
  21. %setup -q
  22. %build
  23. %configure
  24. make
  25. %install
  26. %makeinstall
  27. # Use update-alternatives to make printing with GPR also possible with
  28. # the "lpr" command
  29. ( cd $RPM_BUILD_ROOT%{_bindir}
  30. ln -s gpr lpr-gpr
  31. )
  32. %post
  33. # Set up update-alternatives entry
  34. /sbin/update-alternatives --install %{_bindir}/lpr lpr %{_bindir}/lpr-gpr 8
  35. %preun
  36. if [ "$1" = 0 ]; then
  37. # Remove update-alternatives entry
  38. /sbin/update-alternatives --remove lpr /usr/bin/lpr-gpr
  39. fi
  40. %postun
  41. %clean
  42. rm -fr %buildroot
  43. %files
  44. %defattr(-,root,root)
  45. %doc ABOUT-NLS AUTHORS COPYING INSTALL README TODO
  46. %{_bindir}/*
  47. %changelog
  48. * Thu Oct 28 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl3
  49. - rebuild with db4-4.2.52
  50. - added Japanese summary
  51. * Sat Sep 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl2
  52. - change Group:
  53. - added Prereq: alternatives
  54. * Wed Apr 30 2003 Satoshi MACHINO <machino@vinelinux.org> 0.9-0vl1
  55. - initial release.