cndrvcups-lb-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. %define version 1.20
  2. %define release 2%{?_dist_release}
  3. %define rel 1
  4. Summary: Canon UFR II / LIPSLX Printer Driver for Linux v%{version}-%{rel}
  5. Summary(ja): キャノン UFR II / LIPSLX プリンタドライバ v%{version}-%{rel}
  6. Name: cndrvcups-lb
  7. Version: %{version}
  8. Release: %{release}
  9. License: See the LICENSE*.txt file.
  10. # Copyright: Copyright CANON INC. 2004-2005. All Rights Reserved.
  11. Vendor: CANON INC.
  12. Group: Applications/Publishing
  13. Source0: http://download.canon.jp/pub/driver/lasershot/linux/cndrvcups-lb-%{version}-%{rel}.tar.gz
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Requires: cndrvcups-common >= %{version}
  16. BuildRequires: cndrvcups-common >= %{version}
  17. %description
  18. Canon UFR II / LIPSLX Printer Driver for Linux.
  19. This UFR II / LIPSLX printer driver provides printing functions for
  20. Canon LBP/iR printers operating under the CUPS (Common UNIX Printing
  21. System) environment.
  22. %description -l ja
  23. Linux 用キヤノン UFR II / LIPSLX プリンタドライバ。
  24. この UFR II / LIPSLX プリンタドライバは CUPS (Common UNIX Printing
  25. System) 環境でキヤノン LBP/iR プリンタを扱うために必要な印刷機能を
  26. 提供します。
  27. %package -n cndrvcups-ufr2
  28. Summary: Canon UFR II Printer Driver for Linux v%{version}
  29. Summary(ja): キャノン UFR II プリンタドライバ v%{version}
  30. License: See the LICENSE*.txt file.
  31. Vendor: CANON INC.
  32. Group: Applications/Publishing
  33. Requires: cndrvcups-common >= %{version}
  34. BuildRequires: cndrvcups-common >= %{version}
  35. %description -n cndrvcups-ufr2
  36. Canon UFR II Printer Driver for Linux.
  37. This UFR II printer driver provides printing functions for Canon
  38. LBP/iR printers operating under the CUPS (Common UNIX Printing
  39. System) environment.
  40. %description -n cndrvcups-ufr2 -l ja
  41. Linux 用キヤノン UFR II プリンタドライバ。
  42. この UFR II プリンタドライバは CUPS (Common UNIX PrintingSystem)
  43. 環境でキヤノン LBP/iR プリンタを扱うために必要な印刷機能を提供し
  44. ます。
  45. %package -n cndrvcups-lipslx
  46. Summary: Canon LIPSLX Printer Driver for Linux v%{version}
  47. Summary(ja): キャノン LIPSLX プリンタドライバ v%{version}
  48. License: See the LICENSE*.txt file.
  49. Vendor: CANON INC.
  50. Group: Applications/Publishing
  51. Requires: cndrvcups-common >= %{version}
  52. BuildRequires: cndrvcups-common >= %{version}
  53. %description -n cndrvcups-lipslx
  54. Canon LIPSLX Printer Driver for Linux.
  55. This LIPSLX printer driver provides printing functions for Canon
  56. LBP/iR printers operating under the CUPS (Common UNIX Printing
  57. System) environment.
  58. %description -n cndrvcups-lipslx -l ja
  59. Linux 用キヤノン LIPSLX プリンタドライバ。
  60. この LIPSLX プリンタドライバは CUPS (Common UNIX PrintingSystem)
  61. 環境でキヤノン LBP/iR プリンタを扱うために必要な印刷機能を提供し
  62. ます。
  63. %prep
  64. %setup -q
  65. cd ppd
  66. ./autogen.sh --prefix=%{_prefix}
  67. cd ../pstoufr2icpca
  68. ./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir} --enable-shared --disable-static
  69. %build
  70. make
  71. %install
  72. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  73. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  74. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  75. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/cups/filter
  76. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/cups/model/canon
  77. %makeinstall
  78. %ifarch x86_64
  79. %define libsdir libsx86_64
  80. %else
  81. %define libsdir libs
  82. %endif
  83. #install -c -m 755 %{libsdir}/libcanonufr2.la ${RPM_BUILD_ROOT}%{_libdir}
  84. install -c -s -m 755 %{libsdir}/libcanonufr2.so.1.0.0 ${RPM_BUILD_ROOT}%{_libdir}
  85. install -c -s -m 755 %{libsdir}/pnmtoufr2icpca ${RPM_BUILD_ROOT}%{_bindir}
  86. cd ${RPM_BUILD_ROOT}%{_libdir}
  87. ln -s libcanonufr2.so.1.0.0 libcanonufr2.so
  88. ln -s libcanonufr2.so.1.0.0 libcanonufr2.so.1
  89. cd -
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT
  92. %post -n cndrvcups-ufr2 -p /sbin/ldconfig
  93. %postun -n cndrvcups-ufr2 -p /sbin/ldconfig
  94. %post -n cndrvcups-lipslx -p /sbin/ldconfig
  95. %postun -n cndrvcups-lipslx -p /sbin/ldconfig
  96. %files -n cndrvcups-ufr2
  97. %defattr(-,root,root)
  98. %{_libdir}/libcanonufr2.*
  99. %{_libdir}/cups/filter/pstoufr2icpca
  100. %{_bindir}/pnmtoufr2icpca
  101. %{_datadir}/cups/model/CNCUPS*ZK.PPD
  102. %doc README-ufr2-1.2*.txt
  103. %doc LICENSE-ufr2-%{version}.txt
  104. %files -n cndrvcups-lipslx
  105. %defattr(-,root,root)
  106. %{_libdir}/libcanonufr2.*
  107. %{_libdir}/cups/filter/pstoufr2icpca
  108. %{_bindir}/pnmtoufr2icpca
  109. %{_datadir}/cups/model/CNCUPS*ZJ.PPD
  110. %doc README-lipslx-1.2*.txt
  111. %doc LICENSE-lipslx-%{version}.txt
  112. %changelog
  113. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.20-2vl5
  114. - applied new versioning policy, spec in utf-8
  115. - removed *.la
  116. * Fri Sep 22 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.20-1vl2
  117. - rebuild to expand %%{version} macro in Summary. <BTS:VineLinux:134>
  118. - add japanese Summary and Description.
  119. - drop -s option for installation of libcanonufr2.la to avoid rpm
  120. build error.
  121. * Tue Sep 6 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20-1vl1
  122. - initial build for Vine Linux