[521] | 1 | # To bootstrap: |
---|
| 2 | # build this first without IJS support |
---|
| 3 | # build ghostscript |
---|
| 4 | # build this with IJS support re-enabled |
---|
| 5 | |
---|
| 6 | %define build_with_ijs_support 1 |
---|
| 7 | %define build_with_cups_support 0 |
---|
| 8 | %define build_with_plugin_support 1 |
---|
| 9 | %define build_with_utils_support 1 |
---|
| 10 | |
---|
| 11 | Summary: A collection of high-quality printer drivers. |
---|
| 12 | Summary(ja): ハイクオリティプリンタドライバ集 |
---|
| 13 | Name: gimp-print |
---|
| 14 | Version: 4.2.7 |
---|
| 15 | Release: 1%{?_dist_release} |
---|
| 16 | License: GPL |
---|
| 17 | Group: System Environment/Libraries |
---|
| 18 | URL: http://gimp-print.sourceforge.net/ |
---|
| 19 | Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
| 20 | Patch0: gimp-print-4.2.1-no-kitload.patch |
---|
| 21 | Patch1: gimp-print-C8x.patch |
---|
| 22 | Patch2: gimp-print-4.2.5-print.patch |
---|
| 23 | Patch4: gimp-print-4.2.6-gimp2.patch |
---|
| 24 | Patch5: gimp-print-plugindir.patch |
---|
| 25 | Patch6: gimp-print-4.2.6-mkinstalldirs.patch |
---|
| 26 | Patch7: gimp-print-textdomain.patch |
---|
| 27 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 28 | %if %{build_with_ijs_support} |
---|
| 29 | BuildRequires: ghostscript-devel |
---|
| 30 | %endif |
---|
| 31 | BuildRequires: gimp-devel >= 2.0 |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | These drivers provide printing quality for UNIX/Linux in many cases equal |
---|
| 35 | to or better than proprietary vendor-supplied drivers, and can be used for |
---|
| 36 | many of the most demanding printing tasks. |
---|
| 37 | |
---|
| 38 | %package devel |
---|
| 39 | Summary: Files for developing applications that use gimp-print. |
---|
| 40 | Requires: %{name} = %{version} |
---|
| 41 | Group: Development/Libraries |
---|
| 42 | |
---|
| 43 | %description devel |
---|
| 44 | The header files, static library, libtool library and man pages for |
---|
| 45 | developing applications that use gimp-print. |
---|
| 46 | |
---|
| 47 | %if %{build_with_utils_support} |
---|
| 48 | %package utils |
---|
| 49 | Summary: Utility programs from gimp-print |
---|
| 50 | Summary(ja): gimp-print 用ユーティリティプログラム |
---|
| 51 | Requires: %{name} = %{version} |
---|
| 52 | Group: Applications/Publishing |
---|
| 53 | |
---|
| 54 | %description utils |
---|
| 55 | This package contains the escputil program. |
---|
| 56 | %endif |
---|
| 57 | |
---|
| 58 | %if %{build_with_plugin_support} |
---|
| 59 | %package plugin |
---|
| 60 | Summary: GIMP plug-in for gimp-print |
---|
| 61 | Summary(ja): GIMP用 gimp-print プラグイン |
---|
| 62 | Requires: %{name} = %{version} |
---|
| 63 | Requires: gimp >= 2.0 |
---|
| 64 | Group: System Environment/Libraries |
---|
| 65 | |
---|
| 66 | %description plugin |
---|
| 67 | This package contains the gimp-print GIMP plug-in. |
---|
| 68 | %endif |
---|
| 69 | |
---|
| 70 | %if %{build_with_cups_support} |
---|
| 71 | %package -n gimp-print-cups |
---|
| 72 | Summary: CUPS drivers for Canon, Epson, HP and compatible printers |
---|
| 73 | Requires: cups >= 1.1.17 |
---|
| 74 | BuildRequires: cups-devel |
---|
| 75 | Group: Applications/Publishing |
---|
| 76 | |
---|
| 77 | %description -n gimp-print-cups |
---|
| 78 | gimp-print-cups provides native CUPS support for a wide range of Canon, |
---|
| 79 | Epson, HP and compatible printers. |
---|
| 80 | %endif |
---|
| 81 | |
---|
| 82 | %prep |
---|
| 83 | %setup -q |
---|
| 84 | %patch0 -p1 -b .no-kitload |
---|
| 85 | %patch1 -p1 -b .C8x |
---|
| 86 | %patch2 -p1 -b .print |
---|
| 87 | %patch4 -p1 -b .gimp2 |
---|
| 88 | %patch5 -p1 -b .plugindir |
---|
| 89 | %patch6 -p1 -b .mkinstalldirs |
---|
| 90 | %patch7 -p1 -b .textdomain |
---|
| 91 | |
---|
| 92 | %build |
---|
| 93 | libtoolize --force --copy |
---|
| 94 | aclocal |
---|
| 95 | autoconf |
---|
| 96 | %if %{build_with_ijs_support} |
---|
| 97 | %if %{build_with_cups_support} |
---|
| 98 | %configure --with-ijs --with-foomatic --with-cups --with-gimp --without-ghost |
---|
| 99 | %else |
---|
| 100 | %configure --with-ijs --with-foomatic --without-cups --with-gimp --without-ghost |
---|
| 101 | %endif |
---|
| 102 | %else |
---|
| 103 | %configure --without-ijs --with-foomatic --without-cups --with-gimp --without-ghost |
---|
| 104 | %endif |
---|
| 105 | |
---|
| 106 | make CFLAGS="$RPM_OPT_FLAGS" |
---|
| 107 | |
---|
| 108 | %install |
---|
| 109 | rm -rf %{buildroot} |
---|
| 110 | %makeinstall cups_prefix=%{buildroot}%{_prefix} \ |
---|
| 111 | cups_exec_prefix=%{buildroot}%{_exec_prefix} \ |
---|
| 112 | cups_bindir=%{buildroot}%{_bindir} \ |
---|
| 113 | cups_conf_datadir=%{buildroot}%{_datadir}/cups \ |
---|
| 114 | cups_conf_serverbin=%{buildroot}%{_libdir}/cups \ |
---|
| 115 | cups_conf_serverroot=%{buildroot}%{_sysconfdir}/cups |
---|
| 116 | |
---|
| 117 | %if %{build_with_plugin_support} |
---|
| 118 | for ver in %{_libdir}/gimp/* |
---|
| 119 | do |
---|
| 120 | mkdir -p %{buildroot}$ver/plug-ins |
---|
| 121 | install -m0755 src/gimp/.libs/print %{buildroot}$ver/plug-ins/print |
---|
| 122 | done |
---|
| 123 | %endif |
---|
| 124 | |
---|
| 125 | # Don't install this, since we don't list it in the manifest. |
---|
| 126 | rm -f %{buildroot}%{_infodir}/dir |
---|
| 127 | |
---|
| 128 | %find_lang %{name} |
---|
| 129 | |
---|
| 130 | %clean |
---|
| 131 | rm -rf %{buildroot} |
---|
| 132 | |
---|
| 133 | %files -f %{name}.lang |
---|
| 134 | %defattr(-,root,root) |
---|
| 135 | %doc README COPYING |
---|
| 136 | %{_libdir}/*.so.* |
---|
| 137 | %{_infodir}/gimpprint* |
---|
| 138 | %{_datadir}/gimp-print |
---|
| 139 | %if %{build_with_ijs_support} |
---|
| 140 | %{_bindir}/ijsgimpprint |
---|
| 141 | %{_mandir}/man1/ijsgimpprint.1* |
---|
| 142 | %endif |
---|
| 143 | %{_mandir}/man7/* |
---|
| 144 | |
---|
| 145 | %if %{build_with_plugin_support} |
---|
| 146 | %files plugin |
---|
| 147 | %defattr(-,root,root) |
---|
| 148 | %{_libdir}/gimp/*/plug-ins/print |
---|
| 149 | %endif |
---|
| 150 | |
---|
| 151 | %if %{build_with_utils_support} |
---|
| 152 | %files utils |
---|
| 153 | %defattr(-,root,root) |
---|
| 154 | %{_bindir}/escputil |
---|
| 155 | %{_mandir}/man1/escputil.1* |
---|
| 156 | %endif |
---|
| 157 | |
---|
| 158 | %files devel |
---|
| 159 | %defattr(-,root,root) |
---|
| 160 | %dir %{_includedir}/%{name} |
---|
| 161 | %{_includedir}/%{name}/*.h |
---|
| 162 | %{_libdir}/*.a |
---|
| 163 | %{_libdir}/*.so |
---|
| 164 | %{_libdir}/*.la |
---|
| 165 | %{_bindir}/gimpprint-config |
---|
| 166 | %{_mandir}/man1/gimpprint-config.1* |
---|
| 167 | %{_mandir}/man3/* |
---|
| 168 | %{_datadir}/aclocal/gimpprint.m4 |
---|
| 169 | |
---|
| 170 | %if %{build_with_cups_support} |
---|
| 171 | %files cups |
---|
| 172 | %defattr(-,root,root) |
---|
| 173 | %{_mandir}/man8/cups-calibrate.8* |
---|
| 174 | %{_libdir}/cups/backend/* |
---|
| 175 | %{_libdir}/cups/filter/* |
---|
| 176 | %{_bindir}/cups-calibrate |
---|
| 177 | %{_datadir}/cups/calibrate.ppm |
---|
| 178 | %dir %{_datadir}/cups/model/* |
---|
| 179 | %{_datadir}/cups/model/*/* |
---|
| 180 | %config %{_sysconfdir}/cups/* |
---|
| 181 | %endif |
---|
| 182 | |
---|
| 183 | %post |
---|
| 184 | /sbin/ldconfig |
---|
| 185 | /sbin/install-info /usr/share/info/gimpprint.info.gz /usr/share/info/dir |
---|
| 186 | |
---|
| 187 | %postun |
---|
| 188 | /sbin/ldconfig |
---|
| 189 | if [ $1 = 0 ]; then |
---|
| 190 | /sbin/install-info --delete /usr/share/info/gimpprint.info.gz /usr/share/info/dir |
---|
| 191 | fi |
---|
| 192 | |
---|
| 193 | %if %{build_with_cups_support} |
---|
| 194 | %post -n gimp-print-cups |
---|
| 195 | /sbin/install-info /usr/share/info/gimpprint.info.gz /usr/share/info/dir |
---|
| 196 | /sbin/ldconfig |
---|
| 197 | if [ $1 -eq 1 ]; then |
---|
| 198 | # First install. |
---|
| 199 | /sbin/service cups reload >/dev/null 2>&1 || : |
---|
| 200 | fi |
---|
| 201 | exit 0 |
---|
| 202 | |
---|
| 203 | %preun -n gimp-print-cups |
---|
| 204 | if [ $1 = 0 ]; then |
---|
| 205 | /sbin/install-info --delete /usr/share/info/gimpprint.info.gz /usr/share/info/dir |
---|
| 206 | fi |
---|
| 207 | |
---|
| 208 | %postun -n gimp-print-cups |
---|
| 209 | /sbin/ldconfig |
---|
| 210 | if [ "$1" -ge "1" ]; then |
---|
| 211 | /sbin/service cups reload >/dev/null 2>&1 || : |
---|
| 212 | fi |
---|
| 213 | exit 0 |
---|
| 214 | %endif |
---|
| 215 | |
---|
| 216 | %changelog |
---|
| 217 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.7-1 |
---|
| 218 | - rebuild with ghostscript-8.63 |
---|
| 219 | - new versioning policy, spec in utf-8 |
---|
| 220 | |
---|
| 221 | * Sun Apr 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.2.7-0vl2 |
---|
| 222 | - rebuilt with readline 5.1 |
---|
| 223 | |
---|
| 224 | * Fri Jul 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.7-0vl1 |
---|
| 225 | - new upstream release |
---|
| 226 | - import Patches from fedora's gimp-print-4.2.7-1 |
---|
| 227 | - add Japanese Summaries |
---|
| 228 | |
---|
| 229 | * Thu Apr 17 2003 Satoshi MACHINO <machino@vinelinux.org> 4.2.5-0vl4 |
---|
| 230 | - rebuild gimp-1.2.3-0vl4 and ghostscript-7.06-0vl1 |
---|
| 231 | |
---|
| 232 | * Thu Mar 13 2003 Satoshi MACHINO <machino@vinelinux.org> 4.2.5-0vl3 |
---|
| 233 | - Ships the gimp print plug-in |
---|
| 234 | -- enable plugin/utils support |
---|
| 235 | |
---|
| 236 | * Sun Mar 2 2003 Satoshi MACHINO <machino@vinelinux.org> 4.2.5-0vl2 |
---|
| 237 | - Enable IJS support |
---|
| 238 | - fixed spec file |
---|
| 239 | -- disable {cups, plugin, utils}_support |
---|
| 240 | |
---|
| 241 | * Sat Mar 1 2003 Satoshi MACHINO <machino@vinelinux.org> 4.2.5-0vl1 |
---|
| 242 | - New upstream version |
---|
| 243 | - added patch1 |
---|
| 244 | - dropped patch2 |
---|
| 245 | |
---|
| 246 | * Sat Mar 1 2003 Satoshi MACHINO <machino@vinelinux.org> 4.2.4-5vl1 |
---|
| 247 | - build for VineLinux |
---|
| 248 | -- without IJS support |
---|
| 249 | |
---|
| 250 | * Fri Jan 24 2003 Tim Waugh <twaugh@redhat.com> 4.2.4-5 |
---|
| 251 | - Use 'reload' not 'condrestart' for cups. |
---|
| 252 | - Reload cups on first install as well as upgrade (part of bug #82500). |
---|
| 253 | |
---|
| 254 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> 4.2.4-4 |
---|
| 255 | - rebuilt |
---|
| 256 | |
---|
| 257 | * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 4.2.4-3 |
---|
| 258 | - Rebuild |
---|
| 259 | |
---|
| 260 | * Tue Dec 19 2002 Tim Waugh <twaugh@redhat.com> 4.2.4-2 |
---|
| 261 | - Add plugin subpackage. |
---|
| 262 | |
---|
| 263 | * Tue Nov 26 2002 Tim Waugh <twaugh@redhat.com> 4.2.4-1 |
---|
| 264 | - 4.2.4. |
---|
| 265 | - Ship more man pages. |
---|
| 266 | |
---|
| 267 | * Sun Nov 17 2002 Tim Waugh <twaugh@redhat.com> 4.2.3-2 |
---|
| 268 | - Fix print plug-in. |
---|
| 269 | |
---|
| 270 | * Thu Nov 7 2002 Tim Waugh <twaugh@redhat.com> 4.2.3-1 |
---|
| 271 | - 4.2.3. |
---|
| 272 | - No longer need the ijsparam patch. |
---|
| 273 | - Ship the man page for ijsgimpprint. |
---|
| 274 | |
---|
| 275 | * Wed Nov 6 2002 Tim Waugh <twaugh@redhat.com> 4.2.1-6 |
---|
| 276 | - Don't install files not shipped. |
---|
| 277 | - Build gimp plug-in. |
---|
| 278 | - Add a mechanism for bootstrapping. |
---|
| 279 | |
---|
| 280 | * Thu Jul 18 2002 Tim Waugh <twaugh@redhat.com> 4.2.1-5 |
---|
| 281 | - Make the cups package own some directories. |
---|
| 282 | |
---|
| 283 | * Tue Jul 16 2002 Tim Waugh <twaugh@redhat.com> 4.2.1-4 |
---|
| 284 | - Fix PS:Duplex problems. |
---|
| 285 | |
---|
| 286 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 4.2.1-3 |
---|
| 287 | - automated rebuild |
---|
| 288 | |
---|
| 289 | * Sun May 26 2002 Tim Powers <timp@redhat.com> 4.2.1-2 |
---|
| 290 | - automated rebuild |
---|
| 291 | |
---|
| 292 | * Mon May 20 2002 Tim Waugh <twaugh@redhat.com> 4.2.1-1 |
---|
| 293 | - Enable IJS support. |
---|
| 294 | |
---|
| 295 | * Mon May 20 2002 Tim Waugh <twaugh@redhat.com> 4.2.1-0.1 |
---|
| 296 | - Initial package. |
---|