1 # 2 # spec file for package gimp 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: dkenny 9 # 10 %define subver 2.3 11 %define subver_install 2.0 12 %define microver 12 13 %define help_version 10 14 15 Name: gimp 16 License: GPL/LGPL 17 Group: System/GUI/GNOME 18 Version: %{subver}.%{microver} 19 Release: 2 20 Distribution: Java Desktop System 21 Vendor: Sun Microsystems, Inc. 22 Summary: The GIMP (GNU Image Manipulation Program) 23 Source: ftp://ftp.gimp.org/pub/%{name}/v%{subver}/%{name}-%{version}.tar.bz2 24 Source1: ftp://ftp.gimp.org/pub/%{name}/help/gimp-help-2-0.%{help_version}.tar.gz 25 Patch1: gimp-01-menu-entry.diff 26 Patch2: gimp-02-Xext.diff 27 Patch3: gimp-03-fixcompile.diff 28 Patch4: gimp-04-null-char.diff 29 URL: http://www.gimp.org 30 BuildRoot: %{_tmppath}/%{name}-%{version}-build 31 Docdir: %{_defaultdocdir}/doc 32 Autoreqprov: on 33 Prereq: /sbin/ldconfig 34 Prereq: coreutils 35 36 %define glib2_version 2.4.1 37 %define gtk2_version 2.4.1 38 %define libmng_version 1.0.6 39 %define libgimpprint_version 4.2.6 40 %define libpng_version 1.2.5 41 %define libjpeg_version 6.2.0 42 %define libungif_version 4.1.0 43 %define slang_version 1.4.9 44 %define pygtk2_version 2.7.3 45 46 BuildRequires: glib2-devel >= %{glib2_version} 47 BuildRequires: gtk2-devel >= %{gtk2_version} 48 BuildRequires: libgimpprint-devel >= %{libgimpprint_version} 49 BuildRequires: libmng-devel >= %{libmng_version} 50 BuildRequires: libpng-devel >= %{libpng_version} 51 BuildRequires: libjpeg-devel >= %{libjpeg_version} 52 BuildRequires: libungif >= %{libungif_version} 53 BuildRequires: slang-devel >= %{slang_version} 54 BuildRequires: pygtk2-devel >= %{pygtk2_version} 55 56 Requires: glib2 >= %{glib2_version} 57 Requires: gtk2 >= %{gtk2_version} 58 59 %description 60 The GIMP (GNU Image Manipulation Program) is a powerful image 61 composition and editing program, which can be extremely useful for 62 creating logos and other graphics for webpages. The GIMP has many of 63 the tools and filters you would expect to find in similar commercial 64 offerings, and some interesting extras as well. The GIMP provides a 65 large image manipulation toolbox, including channel operations and 66 layers, effects, sub-pixel imaging and anti-aliasing, and conversions, 67 all with multi-level undo. 68 69 The GIMP includes a scripting facility, but many of the included 70 scripts rely on fonts that we cannot distribute. The GIMP FTP site 71 has a package of fonts that you can install by yourself, which 72 includes all the fonts needed to run the included scripts. Some of 73 the fonts have unusual licensing requirements; all the licenses are 74 documented in the package. Get 75 ftp://ftp.gimp.org/pub/gimp/fonts/freefonts-0.10.tar.gz and 76 ftp://ftp.gimp.org/pub/gimp/fonts/sharefonts-0.10.tar.gz if you are so 77 inclined. Alternatively, choose fonts which exist on your system 78 before running the scripts. 79 80 %package devel 81 Summary: The GIMP plug-in and extension development kit. 82 Group: Applications/Multimedia 83 Requires: gtk2-devel >= %{gtk2_version} 84 Requires: %{name} = %{version} 85 Autoreqprov: on 86 87 %description devel 88 The gimp-devel package contains the static libraries and header files 89 for writing GNU Image Manipulation Program (GIMP) plug-ins and 90 extensions. 91 92 93 %prep 94 %setup -q 95 %patch1 -p1 96 %patch2 -p1 97 %patch3 -p1 98 %patch4 -p1 99 100 gunzip -c %SOURCE1|tar xf - 101 102 %build 103 %ifos linux 104 if [ -x /usr/bin/getconf ]; then 105 CPUS=`getconf _NPROCESSORS_ONLN` 106 fi 107 %else 108 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 109 %endif 110 if test "x$CPUS" = "x" -o $CPUS = 0; then 111 CPUS=1 112 fi 113 114 CFLAGS="$RPM_OPT_FLAGS" \ 115 libtoolize --force 116 aclocal $ACLOCAL_FLAGS 117 automake -a -c -f 118 autoconf 119 # Removing sierra driver on Solaris since it doesn't compile yet. 120 %ifos solaris 121 %define print_options "--disable-print" 122 %define mmx_options "--enable-mmx=no" 123 %else 124 %define print_options "" 125 %endif 126 ./configure --prefix=%{_prefix} \ 127 --sysconfdir=%{_sysconfdir} \ 128 --bindir=%{_bindir} \ 129 --libdir=%{_libdir} \ 130 --includedir=%{_includedir} \ 131 --libexecdir=%{_libexecdir} \ 132 --localstatedir=/var/lib \ 133 --mandir=%{_mandir} \ 134 --enable-mp \ 135 %{gtk_doc_option} \ 136 --enable-default-binary \ 137 %{mmx_options} \ 138 %{print_options} 139 make munix= 140 141 PKG_CONFIG_DISABLE_UNINSTALLED= 142 unset PKG_CONFIG_DISABLE_UNINSTALLED 143 %ifos linux 144 export PKG_CONFIG_PATH=/usr/src/packages/BUILD/gimp-%{subver}.%{microver} 145 %endif 146 cd gimp-help-2-0.%{help_version} 147 ./configure --prefix=%{_prefix} \ 148 --sysconfdir=%{_sysconfdir} \ 149 --bindir=%{_bindir} \ 150 --libdir=%{_libdir} \ 151 --includedir=%{_includedir} \ 152 --libexecdir=%{_libexecdir} \ 153 --localstatedir=/var/lib \ 154 --mandir=%{_mandir} \ 155 --enable-mp \ 156 %{gtk_doc_option} \ 157 --enable-default-binary \ 158 %{print_options} 159 make 160 cd .. 161 162 %install 163 make DESTDIR=$RPM_BUILD_ROOT install 164 #clean up unpackaged files 165 rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/modules/*.la 166 rm $RPM_BUILD_ROOT%{_libdir}/*.la 167 #rm $RPM_BUILD_ROOT%{_libdir}/gimp/%{subver_install}/python/lib*.la 168 rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/python/*.la 169 #rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{subver_install}/python/*.a 170 171 cd gimp-help-2-0.%{help_version} 172 make DESTDIR=$RPM_BUILD_ROOT install 173 174 %clean 175 rm -rf $RPM_BUILD_ROOT 176 177 %post 178 /sbin/ldconfig 179 180 %postun 181 rm -f %{_datadir}/mime-info/gimp-%{subver}.keys 182 /sbin/ldconfig 183 184 %files 185 %defattr (-, root, root) 186 %{_bindir}/gimp 187 %{_bindir}/gimp-%{subver} 188 %{_bindir}/gimp-console* 189 %{_bindir}/gimp-remote* 190 %{_libdir}/lib*-%{subver_install}.so.* 191 %dir %{_datadir}/gimp/%{subver_install} 192 %dir %{_libdir}/gimp/%{subver_install} 193 %dir %{_libdir}/gimp/%{subver_install}/environ 194 %dir %{_libdir}/gimp/%{subver_install}/modules 195 %dir %{_libdir}/gimp/%{subver_install}/plug-ins 196 %{_libdir}/gimp/%{subver_install}/environ/* 197 %{_libdir}/gimp/%{subver_install}/modules/*.so 198 %{_libdir}/gimp/%{subver_install}/plug-ins/* 199 %{_libdir}/gimp/%{subver_install}/interpreters 200 %{_libdir}/gimp/%{subver_install}/python 201 %{_datadir}/gimp/%{subver_install}/brushes/ 202 %{_datadir}/gimp/%{subver_install}/fractalexplorer/ 203 %{_datadir}/gimp/%{subver_install}/gfig/ 204 %{_datadir}/gimp/%{subver_install}/gflare/ 205 %{_datadir}/gimp/%{subver_install}/gimpressionist/ 206 %{_datadir}/gimp/%{subver_install}/gradients/ 207 %{_datadir}/gimp/%{subver_install}/images/ 208 %{_datadir}/gimp/%{subver_install}/palettes/ 209 %{_datadir}/gimp/%{subver_install}/patterns/ 210 %{_datadir}/gimp/%{subver_install}/scripts/ 211 %{_datadir}/gimp/%{subver_install}/themes/ 212 %{_datadir}/gimp/%{subver_install}/tips/ 213 %{_datadir}/gimp/%{subver_install}/help/ 214 %{_datadir}/gimp/%{subver_install}/menus/ 215 %{_datadir}/applications/gimp.desktop 216 %{_datadir}/application-registry/gimp.applications 217 %{_datadir}/mime-info/gimp.keys 218 %{_datadir}/locale 219 %{_datadir}/icons 220 %{_sysconfdir}/gimp/%{subver_install}/gimprc 221 %{_sysconfdir}/gimp/%{subver_install}/gtkrc 222 %{_sysconfdir}/gimp/%{subver_install}/ps-menurc 223 %{_sysconfdir}/gimp/%{subver_install}/sessionrc 224 %{_sysconfdir}/gimp/%{subver_install}/templaterc 225 %{_sysconfdir}/gimp/%{subver_install}/unitrc 226 %{_sysconfdir}/gimp/%{subver_install}/controllerrc 227 %{_mandir}/man1/gimp-%{subver}.1* 228 %{_mandir}/man1/gimp-remote* 229 %{_mandir}/man1/gimptool* 230 %{_mandir}/man5/gimprc-%{subver}.5* 231 232 %files devel 233 %defattr (-, root, root) 234 %{_includedir}/gimp-%{subver_install}/ 235 %{_bindir}/gimptool-%{subver_install} 236 %{_libdir}/*.so 237 %{_libdir}/pkgconfig/*.pc 238 %dir %{_libdir}/gimp/%{subver_install}/modules 239 %{_datadir}/aclocal/gimp-2.0.m4 240 %{_datadir}/gtk-doc/html/ 241 %{_mandir}/man1/gimptool-%{subver_install}.1* 242 243 %changelog 244 * Fri Nov 3 2006 - laca@sun.com 245 - use %gtk_doc_option in configure so that it can be disabled using 246 --without-gtk-doc 247 * Tue Oct 17 2006 - matt.keenan@sun.com 248 - Created bugzilla : #362877, attached patch gimp-02-Xext.diff, 249 to get this upstream 250 * Tue Oct 17 2006 - damien.carbery@sun.com 251 - Add patch, 04-null-char, to remove a null char that is breaking the build. 252 Bugzilla #362832. 253 - Bump to 2.3.12. 254 * Fri Oct 13 2006 - damien.carbery@sun.com 255 - Delete .a and .la files. 256 * Thu Sep 28 2006 - damien.carbery@sun.com 257 - Bump to 2.3.11. Remove upstream patch, 03-hidden, and renumber rest. 258 * Mon Aug 14 2006 - damien.carbery@sun.com 259 - Bump to 2.3.10. 260 * Fri Jun 23 2006 - brian.cameron@sun.com 261 - Bump to 2.3.9. Set --enable-mmx=no when building on Solaris since 262 this compiler option doesn't work on Solaris 263 * Tue May 30 2006 - damien.carbery (at] sun.com 264 - Add patch, 04-hidden, for new G_GNUC_INTERNAL usage. 265 * Wed May 03 2006 - damien.carbery (at] sun.com 266 - Bump help version to 2.0.10. 267 * Tue Apr 25 2006 - damien.carbery (at] sun.com 268 - Add patch, 03-void-return, to fix build issues. Bugzilla: 339698. 269 * Mon Apr 24 2006 - damien.carbery (at] sun.com 270 - Bump to 2.3.8. 271 - Bump help version to 2.0.9. 272 * Tue Feb 21 2006 - damien.carbery (at] sun.com 273 - Bump to 2.3.7. 274 * Tue Jan 03 2006 - damien.carbery (at] sun.com 275 - Bump to 2.3.6. 276 * Fri Sep 30 2005 - brian.cameron (at] sun.com 277 - Bump to 2.3.4 278 * Tue Sep 20 2005 - laca (at] sun.com 279 - add patch Xext.diff: add -lXext to a Makefile.am 280 * Mon Aug 15 2005 - damien.carbery (at] sun.com 281 - Bump to 2.3.3. 282 * Fri Jun 10 2005 - matt.keenan (at] sun.com 283 - Bump to 2.2.7, reapply patches 284 * Tue Feb 01 2005 - laca (at] sun.com 285 - add a symlink called gimp to bindir that points to gimp-%subver, fixes 286 #6221126 287 * Fri Jan 21 2005 - damien.carbery (at] sun.com 288 - %ifos linux the PKG_CONFIG_PATH so Solaris one can be different. 289 * Sun Jan 16 2005 - damien.carbery (at] sun.com 290 - Set PKG_CONFIG_PATH to build with gimp-help tarball. 291 * Tue Jan 11 2005 - matt.keenan (at] sun.com 292 - #6199103 : Add gimp-help tarball 293 * Fri Nov 12 2004 - laca (at] sun.com 294 - Added --libdir and --bindir to configure opts so they can be redirected 295 on Solaris 296 * Tue Sep 14 2004 - yuriy.kuznetsov (at] sun.com 297 - Added gimp-03-g11n-potfiles.diff 298 * Wed Aug 25 2004 - laszlo.kovacs (at] sun.com 299 - changed header file permissions 300 * Wed Aug 18 2004 - brian.cameron (at] sun.com 301 - removed --disable-gtk-doc since it doesn't make sense to include both 302 this and --enable-gtk-doc. 303 * Fri Jul 16 2004 - niall.power@sun.com 304 - Finally bumped to 2.0.x series (2.0.2) 305 - packaging fixes for rpm4 and remove upstream patches 306 * Tue Jul 13 2004 - damien.carbery@sun.com 307 - Remove '-j $CPUS' from 'make' because of failures on Solaris and intermittent 308 failures on Linux. 309 * Thu Jul 08 2004 - damien.donlon@sun.com 310 - Updated l10n content to gimp-l10n-po-1.2.tar.bz2 311 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 312 - added "-j $CPUS" to make to speed up builds 313 * Fri May 21 2004 - brian.cameron@sun.com 314 - Added patch 4 to support building on x86 Solaris. 315 * Wed May 12 2004 - damien.donlon@sun.com 316 - Updated l10n content to gimp-l10n-po-1.1.tar.bz2 317 * Wed Apr 28 2004 - vijaykumar.patwari@wipro.com 318 - Remove unwanted keys from gimp.keys. 319 * Sun Apr 03 2004 - brian.cameron@sun.com 320 - Use #ifdef to set --disable-print for Solaris. 321 * Thu Apr 01 2004 - brian.cameron@sun.com 322 - replace tar jxf with the more solaris friendly 323 bzcat piped through tar. Now pass ACLOCAL_FLAGS into 324 aclocal. Added EXTRA_CONFIGURE_OPTIONS to allow Solaris 325 to pass in --disable-print. Fixed a few defattr lines. 326 * Mon Mar 29 2004 - damien.donlon@sun.com 327 - Adding gimp-l10n-po-1.0.tar.bz2 l10n content 328 * Fri Jan 09 2004 - <niall.power@sun.com> 329 - Patch configure.in to enable deprecated widgets 330 * Mon Oct 20 2003 - <ghee.teo@sun.com> 331 - Updated version of glib2 and gtk2 dependency to build for QS. 332 * Thu Aug 14 2003 - <laca@sun.com> 333 - remove *.a, *.la 334 * Tue Aug 11 2003 - niall.power@sun.com 335 - Move mime, .desktop and keys files into proper location 336 instead of just sym-linking them 337 * Mon Aug 10 2003 - glynn.foster@sun.com 338 - Bump tarball 339 * Thu Jul 17 2003 - glynn.foster@sun.com 340 - Correct menu entry 341 * Mon Jul 14 2003 - Niall.Power@sun.com 342 - initial spec file created 343