pnm2ppa-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. Summary: Drivers for printing to HP PPA printers
  2. Summary(ja): HP PPAプリンタ用ドライバ
  3. Name: pnm2ppa
  4. #Serial: 1
  5. Obsoletes: ppa, pbm2ppa
  6. Version: 1.12
  7. Release: 1%{?_dist_release}
  8. License: GPL
  9. URL: http://sourceforge.net/projects/pnm2ppa
  10. Source: http://download.sourceforge.net/pnm2ppa/pnm2ppa-%{version}.tar.gz
  11. Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz
  12. Patch2: pbm2ppa-20000205.diff
  13. Patch3: pnm2ppa-redhat.patch
  14. Group: Applications/Publishing
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. %define topdir pnm2ppa-%{version}
  17. %description
  18. pnm2ppa is a color driver for HP PPA host-based printers such
  19. as the HP710C, 712C, 720C, 722C, 820Cse, 820Cxi, 1000Cse, and 1000Cxi.
  20. It accepts ghostscript output in PPM format, and sends it to the printer
  21. in PPA format. The older (black only) driver pbm2ppa is also included.
  22. Install pnm2ppa if you have a PPA printer and need to print.
  23. %description -l ja
  24. このソフトウェアは PPA (printer performance architecture) プロトコルを使った
  25. 出力を作成します。このプロトコルは数種の HP の 「Windows のみの」プリンタで
  26. 使われています。HP Deskjet 710C, 712C, 720C, 722C, 820Cse, 820Cxi, 1000Cse,
  27. 1000Cxi などが該当プリンタとなります。このフィルタは ghostscript のPPM
  28. フォーマットの出力を受け付け、プリンタにPPAフォーマットで送ります。
  29. 古い白黒専用のフィルタpbm2ppaも含まれています。
  30. PPAプリンタを使うときには、この pnm2ppa が必要になります。
  31. %prep
  32. %setup -q -n %{topdir}
  33. #pbm2ppa source
  34. %setup -T -D -a 1 -n %{topdir}
  35. %patch2 -p0
  36. #%patch3 -p1 -b .rh
  37. %build
  38. make
  39. cd pbm2ppa-0.8.6
  40. make
  41. %install
  42. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  43. install -d $RPM_BUILD_ROOT%{_bindir}
  44. install -d $RPM_BUILD_ROOT%{_sysconfdir}
  45. install -d $RPM_BUILD_ROOT%{_mandir}/man1
  46. make BINDIR=$RPM_BUILD_ROOT%{_bindir} \
  47. CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
  48. MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install
  49. install -m 0755 utils/Linux/detect_ppa $RPM_BUILD_ROOT%{_bindir}
  50. install -m 0755 utils/Linux/test_ppa $RPM_BUILD_ROOT%{_bindir}
  51. install -m 0755 pbm2ppa-0.8.6/pbm2ppa $RPM_BUILD_ROOT%{_bindir}
  52. install -m 0755 pbm2ppa-0.8.6/pbmtpg $RPM_BUILD_ROOT%{_bindir}
  53. install -m 0644 pbm2ppa-0.8.6/pbm2ppa.conf $RPM_BUILD_ROOT%{_sysconfdir}
  54. install -m 0644 pbm2ppa-0.8.6/pbm2ppa.1 $RPM_BUILD_ROOT%{_mandir}/man1
  55. chmod 644 docs/en/LICENSE
  56. mkdir -p pbm2ppa
  57. for file in CALIBRATION CREDITS INSTALL INSTALL-MORE LICENSE README ; do
  58. install -m 0644 pbm2ppa-0.8.6/$file pbm2ppa/$file
  59. done
  60. %clean
  61. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  62. %files
  63. %defattr(-,root,root)
  64. %doc docs/en/CREDITS docs/en/INSTALL docs/en/LICENSE docs/en/README
  65. %doc docs/en/RELEASE-NOTES docs/en/TODO
  66. %doc docs/en/INSTALL.REDHAT.txt docs/en/COLOR.txt docs/en/CALIBRATION.txt
  67. %doc docs/en/INSTALL.REDHAT.html docs/en/COLOR.html docs/en/CALIBRATION.html
  68. %doc test.ps
  69. %doc pbm2ppa
  70. %{_bindir}/pnm2ppa
  71. %{_bindir}/pbm2ppa
  72. %{_bindir}/pbmtpg
  73. %{_bindir}/calibrate_ppa
  74. %{_bindir}/test_ppa
  75. %{_bindir}/detect_ppa
  76. %{_mandir}/man1/pnm2ppa.1*
  77. %{_mandir}/man1/pbm2ppa.1*
  78. %config %{_sysconfdir}/pnm2ppa.conf
  79. %config %{_sysconfdir}/pbm2ppa.conf
  80. %changelog
  81. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.12-1vl5
  82. - applied new versioning policy, spec in utf-8
  83. * Fri Dec 28 2007 Shu KONNO <owa@bg.wakwak.com> 1.12-0vl2
  84. - s/Copyright/License/
  85. - dropt Serial: 1
  86. * Sat Mar 15 2003 <ryo1@bc.wakwak.com> 1.12-0vl1
  87. - rebuild with new toolchains
  88. - update to 1.12 and dropped patch3
  89. - use more macros
  90. * Sat Jun 09 2001 <sagami@vinelinux.org>
  91. - 1.0-2vl2: rebuilt for _mandir
  92. * Wed Oct 4 2000 Jun Nishii <jun@vinelinux.org>
  93. - 1.0-2vl1
  94. - added Japanese summary and description
  95. - build for Vine Linux 2.1
  96. * Thu Aug 3 2000 Bill Nottingham <notting@redhat.com>
  97. - build upstream package
  98. * Tue Jul 11 2000 Duncan Haldane <duncan_haldane@users.sourceforge.net>
  99. - updated for 1.0 release.
  100. * Mon Jul 10 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  101. - remove execute bits from config file and man-page
  102. * Sun Apr 09 2000 <duncan_haldane@users.sourceforge.net>
  103. - added optional updated rhs-printfilter files
  104. * Thu Feb 10 2000 Bill Nottingham <notting@redhat.com>
  105. - adopt upstream package
  106. * Sun Feb 6 2000 <duncan_haldane@users.sourceforge.net>
  107. - new pnm2ppa release, and add pbm2ppa driver.
  108. * Thu Jan 7 2000 <duncan_haldane@users.sourceforge.net>
  109. - created rpm