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