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