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