cndrvcups-lips4-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. %define version 1.20
  2. %define release 1%{?_dist_release}
  3. %define rel 1
  4. Summary: Canon LIPS4 Printer Driver for Linux v%{version}-%{rel}
  5. Name: cndrvcups-lips4
  6. Version: %{version}
  7. Release: %{release}
  8. License: See the README files.
  9. # Copyright: Copyright CANON INC. 2004. All Rights Reserved.
  10. Vendor: CANON INC.
  11. Group: Applications/Publishing
  12. Source0: http://download.canon.jp/pub/driver/lasershot/linux/cndrvcups-lips4-%{version}-%{rel}.tar.gz
  13. Patch0: cndrvcups-lips4-1.20-ppd.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Requires: cups gtk+ glib popt libxml2 zlib
  16. Requires: cndrvcups-common >= %{version}
  17. BuildRequires: cndrvcups-common >= 1.02
  18. BuildRequires: cups-devel gtk+-devel glib-devel
  19. BuildRequires: libxml2-devel zlib-devel
  20. %description
  21. Canon LIPS4 Printer Driver for Linux.
  22. This LIPS4 printer driver provides printing functions for Canon LBP/iR
  23. printers operating under the CUPS (Common UNIX Printing System) environment.
  24. %description -l ja
  25. Linux用キヤノンLIPS4プリンタドライバ。
  26. このLIPS4プリンタドライバはCUPS (Common UNIX Printing System)環境で
  27. キヤノンLBPプリンタを扱うために必要な印刷機能を提供します。
  28. %prep
  29. %setup -q
  30. %patch0 -p1 -b .ppd
  31. cd driver
  32. ./autogen.sh --prefix=%{_prefix} --enable-shared --disable-static
  33. cd ../pstolipscpca
  34. ./autogen.sh --prefix=%{_prefix} --enable-progpath=%{_bindir} --enable-shared --disable-static
  35. cd ../ppd
  36. ./autogen.sh --prefix=%{_prefix}
  37. %build
  38. make
  39. %install
  40. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  41. mkdir -p %{buildroot}%{_libdir}
  42. mkdir -p %{buildroot}%{_libdir}/cups/filter
  43. mkdir -p %{buildroot}%{_datadir}/cups/model/canon
  44. %makeinstall
  45. ln -sf libcanonlips.so.1.0 %{buildroot}%{_libdir}/libcanonlips.so
  46. %clean
  47. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  48. %post -p /sbin/ldconfig
  49. %postun -p /sbin/ldconfig
  50. %files
  51. %defattr(-,root,root)
  52. %{_libdir}/libcanonlips.so
  53. %{_libdir}/libcanonlips.so.*
  54. %{_libdir}/cups/filter/pstolipscpca
  55. %{_datadir}/cups/model/canon/CNCUPS*LJ.PPD
  56. %doc *-lips4-1.2x.txt COPYING
  57. %changelog
  58. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.20-1vl5
  59. - applied new versioning policy, spec in utf-8
  60. * Sun Jun 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20-1vl2
  61. - fix kanji code of spec file.
  62. * Tue Sep 6 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.20-1vl1
  63. - new upstream release
  64. * Tue Oct 26 2004 Satoshi MACHINO <machino@vinelinux.org> 1.02-1vl1
  65. - initial release
  66. -- added ppddir patch