cndrvcups-common-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %define version 1.20
  2. %define release 1%{?_dist_release}
  3. %define rel 1
  4. Summary: Canon Printer Driver Common Module
  5. Summary(ja): キヤノンプリンタドライバ共通モジュール
  6. Name: cndrvcups-common
  7. Version: %{version}
  8. Release: %{release}
  9. License: See the README file.
  10. # Copyright: Copyright CANON INC. 2004. All Rights Reserved.
  11. Group: System Environment/Libraries
  12. Source: http://download.canon.jp/pub/driver/lasershot/linux/%{name}-%{version}-%{rel}.tar.gz
  13. Patch0: cndrvcups-common-1.20-cngplpmod.patch
  14. Patch1: cndrvcups-common-1.20-ppdoptions.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Requires: cups, gtk+
  17. Requires: ghostscript >= 7.07-0vl18
  18. BuildRequires: cups-devel, gtk+-devel
  19. %description
  20. cndrvcups-common is common modules for Canon LIPS4/CAPT driver on CUPS.
  21. You shouold install this module to use following specific drivers.
  22. - LIPS4 Driver cndrvcups-lips4
  23. - CAPT Driver cndrvcups-capt
  24. %description -l ja
  25. cndrvcups-common は CUPS (Common Unix Printing System) でキヤノン
  26. 製レーザープリンタを利用するための共通モジュールです。以下のドライバ
  27. のどちらかを利用するために必要となります。
  28. - LIPS4 ドライバ cndrvcups-lips4
  29. - CAPT ドライバ cndrvcups-capt
  30. %prep
  31. %setup
  32. %patch0 -p1 -b .cngplpmod
  33. %patch1 -p1 -b .ppdoptions
  34. %build
  35. pushd buftool
  36. ./autogen.sh
  37. %configure --disable-shared --enable-static
  38. popd
  39. pushd cpca
  40. ./autogen.sh
  41. %configure --enable-shared --disable-static
  42. popd
  43. pushd cngplp
  44. ./autogen.sh
  45. %configure
  46. popd
  47. make
  48. %install
  49. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  50. mkdir -p %{buildroot}
  51. mkdir -p %{buildroot}%{_includedir}
  52. mkdir -p %{buildroot}%{_libdir}
  53. mkdir -p %{buildroot}%{_bindir}
  54. mkdir -p %{buildroot}%{_datadir}
  55. %makeinstall
  56. install -c libs/cnpkmodule ${RPM_BUILD_ROOT}%{_bindir}
  57. %clean
  58. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  59. %files
  60. %defattr(0644, root, root)
  61. %{_bindir}/*
  62. %{_libdir}/*
  63. %{_includedir}/*
  64. %{_datadir}/locale/*/LC_MESSAGES/*
  65. %changelog
  66. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.20-1vl5
  67. - applied new versioning policy, spec in utf-8
  68. * Sun Nov 25 2007 Shu KONNO <owa@bg.wakwak.com> 1.20-1vl2
  69. - added Patch0: cndrvcups-common-1.20-cngplpmod.patch
  70. - added Patch1: cndrvcups-common-1.20-ppdoptions.patch
  71. * Tue Sep 6 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20-1vl1
  72. - new upstream release
  73. * Tue Oct 26 2004 Satoshi MACHINO <machino@vinelinux.org> 1.02-1vl1
  74. - updated to 1.02-1
  75. * Wed Aug 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.00-1vl1
  76. - initial build for Vine Linux