Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:beranger5ca
gimp-2.3.14
gimp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gimp.spec of Package gimp-2.3.14
#### options: # Use the following --with/--without <option> switches to control how the # package will be built: # # modular_x: modular X deps # lcms: lcms support # python: python support # mp: multi processor support # static: build static libraries # print: build the print plugin (if you don't build it externally) # convenience: install convenience symlinks %if 0%{?fedora}%{?rhel} == 0 || 0%{?fedora} >= 5 || 0%{?rhel} >= 5 %define _enable_modularX 0%{!?_without_modular_x:1} %define _enable_lcms 0%{!?_without_lcms:1} %else %define _enable_modularX 0%{?_with_modular_x:1} %define _enable_lcms 0%{?_with_lcms:1} %endif %define _enable_python 0%{!?_without_python:1} %define _enable_mp 0%{!?_without_mp:1} %define _enable_static 0%{!?_without_static:1} %define _enable_print 0%{?_with_print:1} %define _enable_convenience %{!?_without_convenience:1} # # Summary: GNU Image Manipulation Program Name: gimp %define version 2.3.14 %define binver 2.3 %define gimp_lang_ver 20 %define interfacever 2.0 %define age 0 %define minorver 314 %define api_version 2.0 %define abi_version 2.3 Version: %{version} Release: 2.0.7%{?dist} Epoch: 2 License: GPL, LGPL Group: Applications/Multimedia URL: http://www.gimp.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-root Obsoletes: gimp2 gimp-beta <= %{version} Obsoletes: gimp2-devel gimp-beta-devel <= %{version} Obsoletes: gimp-perl < 2:2.0 BuildRequires: glib2-devel >= 2.4.8 BuildRequires: gtk2-devel >= 2.4.14 BuildRequires: pango-devel >= 1.6.0 BuildRequires: fontconfig-devel >= 2.2.0 BuildRequires: gtkhtml2-devel BuildRequires: python-devel BuildRequires: pygtk2-devel BuildRequires: librsvg2-devel BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: libpng-devel BuildRequires: libmng-devel BuildRequires: libexif-devel %if %_enable_modularX BuildRequires: libX11-devel BuildRequires: libXmu-devel # these are req's for libXmu but not yet required by libXmu-devel BuildRequires: libXt-devel %else BuildRequires: xorg-x11-devel %endif BuildRequires: gimp-print-devel >= 4.2.0 BuildRequires: automake >= 1.7 BuildRequires: autoconf >= 2.54 BuildRequires: libtool >= 1.5 BuildRequires: sed BuildRequires: libwmf-devel >= 0.2.8 BuildRequires: intltool BuildRequires: gettext BuildRequires: findutils BuildRequires: perl %if %_enable_lcms BuildRequires: lcms-devel %endif Requires: desktop-file-utils >= 0.9 Requires: glib2 >= 2.4.8 Requires: gtk2 >= 2.4.14 Requires: pango >= 1.6.0 Requires: fontconfig >= 2.2.0 Requires: gimp-print >= 4.2.0 Requires(post): /usr/bin/update-desktop-database Requires(post): hicolor-icon-theme Requires(postun): /usr/bin/update-desktop-database Requires(postun): hicolor-icon-theme Source0: ftp://ftp.gimp.org/pub/gimp/v%{binver}/gimp-%{version}.tar.bz2 Source1: gimp-plugin-mgr.in Patch2: gimp-2.0.5-sunras-overflow.patch Patch3: gimp-2.3.10-www.patch Patch4: gimp-2.3.10-fixname.patch Patch5: gimp-2.3.10-CVE-2006-4519.patch Patch6: gimp-2.3.10-CVE-2007-2949.patch Patch7: gimp-2.3.10-CVE-2007-3741.patch %description GIMP (GNU Image Manipulation Program) is a powerful image composition and editing program, which can be extremely useful for creating logos and other graphics for webpages. GIMP has many of the tools and filters you would expect to find in similar commercial offerings, and some interesting extras as well. GIMP provides a large image manipulation toolbox, including channel operations and layers, effects, sub-pixel imaging and anti-aliasing, and conversions, all with multi-level undo. %package libs Summary: GIMP libraries Group: System Environment/Libraries %description libs The gimp-libs package contains shared libraries needed for the GNU Image Manipulation Program (GIMP). %package devel Summary: GIMP plugin and extension development kit Group: Applications/Multimedia Requires: %{name}-libs = %{epoch}:%{version}-%{release} Requires: gtk2-devel Requires: glib2-devel Requires: pkgconfig Obsoletes: gimp2-devel gimp-beta-devel <= %{version} %description devel The gimp-devel package contains the static libraries and header files for writing GNU Image Manipulation Program (GIMP) plug-ins and extensions. %prep cat << EOF Build options: modular X: %_enable_modularX LCMS support: %_enable_lcms Python support: %_enable_python MP support: %_enable_mp build static libs: %_enable_static build print plugin: %_enable_print include convenience symlinks: %_enable_convenience EOF %setup -q -n gimp-%{version} %patch2 -p1 -b .sunras-overflow %patch3 -p1 -b .www %patch4 -p1 -b .fixname %patch5 -p1 -b .CVE-2006-4519 %patch6 -p1 -b .CVE-2007-2949 %patch7 -p1 -b .CVE-2007-3741 %build libtoolize --copy --force intltoolize --automake --copy --force aclocal -I m4macros #perl -pi -e 's/require +XML::Parser/;/g;' aclocal.m4 automake autoconf LIBAA="disable"; export LIBAA if [ ! -f configure ]; then ./autogen.sh --quiet $MYARCH_FLAGS --prefix=%{_prefix} fi CFLAGS="%optflags -fomit-frame-pointer" \ %configure \ --disable-perl \ %if %_enable_python --enable-python \ %else --disable-python \ %endif %if %_enable_mp --enable-mp \ %else --disable-mp \ %endif %if %_enable_print --with-print \ %else --without-print \ %endif %if %_enable_lcms --with-lcms \ %else --without-lcms \ %endif --enable-gimp-console \ --with-script-fu \ --enable-static make %{?_smp_mflags} # convenience stuff for external plugins (e.g. xsane) sed -e 's|@GIMPTOOL@|%{_bindir}/gimptool-%{interfacever}|g' < %{SOURCE1} > gimp-plugin-mgr %install rm -rf %{buildroot} # makeinstall macro won't work here - libexec is overriden make DESTDIR=%{buildroot} install %ifos linux # remove .la files find %buildroot -name \*.la -exec %__rm -f {} \; %endif # # Plugins and modules change often (grab the executeable ones) # echo "%defattr (-, root, root)" > gimp-plugin-files find %{buildroot}%{_libdir}/gimp/%{interfacever} -type f | sed "s@^%{buildroot}@@g" | egrep -v 'modules/.*\.a$|modules/.*\.la$' >>gimp-plugin-files # .pyc and .pyo files don't exist yet grep "\.py$" gimp-plugin-files > gimp-plugin-files-py for file in $(cat gimp-plugin-files-py); do for newfile in ${file}c ${file}o; do fgrep -q -x "$newfile" gimp-plugin-files || echo "$newfile" done done >> gimp-plugin-files # # Auto detect the lang files. # %find_lang gimp%{gimp_lang_ver} %find_lang gimp%{gimp_lang_ver}-std-plug-ins %find_lang gimp%{gimp_lang_ver}-script-fu %find_lang gimp%{gimp_lang_ver}-libgimp %find_lang gimp%{gimp_lang_ver}-tips %find_lang gimp%{gimp_lang_ver}-python cat gimp%{gimp_lang_ver}.lang gimp%{gimp_lang_ver}-std-plug-ins.lang gimp%{gimp_lang_ver}-script-fu.lang gimp%{gimp_lang_ver}-libgimp.lang gimp%{gimp_lang_ver}-tips.lang gimp%{gimp_lang_ver}-python.lang > gimp-all.lang # # Build the master filelists generated from the above mess. # cat gimp-plugin-files gimp-all.lang > gimp.files %if %_enable_convenience # install convenience symlinks ln -snf gimp-%{binver} %{buildroot}%{_bindir}/gimp ln -snf gimp-%{binver}.1 %{buildroot}%{_mandir}/man1/gimp.1 ln -snf gimp-console-%{binver} %{buildroot}/%{_bindir}/gimp-console ln -snf gimp-console-%{binver}.1 %{buildroot}/%{_mandir}/man1/gimp-console.1 ln -snf gimp-remote-%{binver} %{buildroot}%{_bindir}/gimp-remote ln -snf gimp-remote-%{binver}.1 %{buildroot}%{_mandir}/man1/gimp-remote.1 ln -snf gimptool-%{interfacever} %{buildroot}%{_bindir}/gimptool ln -snf gimptool-%{interfacever}.1 %{buildroot}%{_mandir}/man1/gimptool.1 ln -snf gimprc-%{binver}.5 %{buildroot}/%{_mandir}/man5/gimprc.5 %endif # convenience stuff for external plugins (e.g. xsane) mkdir -p %{buildroot}%{_sysconfdir}/gimp/plugins.d mkdir -p %{buildroot}%{_sbindir} install -m 0755 gimp-plugin-mgr %{buildroot}%{_sbindir}/gimp-plugin-mgr %clean rm -rf %{buildroot} %pre # First, remove old symlinks which are possibly in an old location (before a # major version update) if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then %{_sbindir}/gimp-plugin-mgr --uninstall '*' || : fi %post /sbin/ldconfig /usr/bin/update-desktop-database %{_datadir}/applications touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor fi # Then re-add the symlinks %{_sbindir}/gimp-plugin-mgr --install '*' || : %preun # Only delete symlinks when uninstalling if [ "$1" = "0" ]; then %{_sbindir}/gimp-plugin-mgr --uninstall '*' || : fi %postun if [ "$1" = "0" ]; then /usr/bin/update-desktop-database %{_datadir}/applications || : fi touch --no-create %{_datadir}/icons/hicolor if [ -x /usr/bin/gtk-update-icon-cache ]; then gtk-update-icon-cache -q %{_datadir}/icons/hicolor || : fi %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files -f gimp.files %defattr(-, root, root, 0755) %doc AUTHORS COPYING ChangeLog NEWS README %doc docs/*.xcf* %{_datadir}/applications/*.desktop %{_datadir}/application-registry/*.applications %{_datadir}/mime-info/*.keys %dir %{_datadir}/gimp %dir %{_datadir}/gimp/%{interfacever} %{_datadir}/gimp/%{interfacever}/tips/ #%{_datadir}/gimp/%{interfacever}/misc/ %{_datadir}/gimp/%{interfacever}/menus/ %dir %{_libdir}/gimp %dir %{_libdir}/gimp/%{interfacever} %dir %{_libdir}/gimp/%{interfacever}/environ #%dir %{_libdir}/gimp/%{interfacever}/fonts %dir %{_libdir}/gimp/%{interfacever}/modules %dir %{_libdir}/gimp/%{interfacever}/plug-ins %dir %{_libdir}/gimp/%{interfacever}/python #%dir %{_libdir}/gimp/%{interfacever}/tool-plug-ins %{_datadir}/gimp/%{interfacever}/brushes/ %{_datadir}/gimp/%{interfacever}/fractalexplorer/ %{_datadir}/gimp/%{interfacever}/gfig/ %{_datadir}/gimp/%{interfacever}/gflare/ %{_datadir}/gimp/%{interfacever}/gimpressionist/ %{_datadir}/gimp/%{interfacever}/gradients/ # %{_datadir}/gimp/%{interfacever}/help/ %{_datadir}/gimp/%{interfacever}/images/ %{_datadir}/gimp/%{interfacever}/palettes/ %{_datadir}/gimp/%{interfacever}/patterns/ %{_datadir}/gimp/%{interfacever}/scripts/ %{_datadir}/gimp/%{interfacever}/themes/ %dir %{_sysconfdir}/gimp %dir %{_sysconfdir}/gimp/plugins.d %dir %{_sysconfdir}/gimp/%{interfacever} %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/controllerrc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/gimprc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/gtkrc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/unitrc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/ps-menurc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/sessionrc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/templaterc %config(noreplace) %{_sysconfdir}/gimp/%{interfacever}/menurc %{_bindir}/gimp-%{binver} %{_bindir}/gimp-remote-%{binver} %{_bindir}/gimptool-%{interfacever} %{_bindir}/gimp-console-%{binver} %{_sbindir}/gimp-plugin-mgr #%{_bindir}/embedxpm #%{_bindir}/escputil-%{interfacever} %if %_enable_convenience %{_bindir}/gimp %{_bindir}/gimp-remote %{_bindir}/gimptool %{_bindir}/gimp-console %endif %{_mandir}/man1/gimp-%{binver}.1* %{_mandir}/man1/gimp-remote-%{binver}.1* %{_mandir}/man1/gimptool-%{interfacever}.1* %{_mandir}/man1/gimp-console-%{binver}.1* %{_mandir}/man5/gimprc-%{binver}.5* %if %_enable_convenience %{_mandir}/man1/gimp.1* %{_mandir}/man1/gimp-remote.1* %{_mandir}/man1/gimptool.1* %{_mandir}/man1/gimp-console.1* %{_mandir}/man5/gimprc.5* %endif %{_datadir}/icons/hicolor/*/apps/gimp.png %{_datadir}/icons/hicolor/scalable/apps/gimp.svg %files libs %defattr(-, root, root, 0755) %{_libdir}/libgimp-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimp-%{interfacever}.so.%{age} %{_libdir}/libgimpbase-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpbase-%{interfacever}.so.%{age} %{_libdir}/libgimpcolor-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpcolor-%{interfacever}.so.%{age} %{_libdir}/libgimpconfig-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpconfig-%{interfacever}.so.%{age} %{_libdir}/libgimpmath-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpmath-%{interfacever}.so.%{age} %{_libdir}/libgimpmodule-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpmodule-%{interfacever}.so.%{age} %{_libdir}/libgimpthumb-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpthumb-%{interfacever}.so.%{age} %{_libdir}/libgimpui-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpui-%{interfacever}.so.%{age} %{_libdir}/libgimpwidgets-%{interfacever}.so.%{age}.%{minorver}.* %{_libdir}/libgimpwidgets-%{interfacever}.so.%{age} %files devel %defattr (-, root, root, 0755) %doc HACKING README.i18n %doc %{_datadir}/gtk-doc/* %{_libdir}/*.so %{_libdir}/*.a %dir %{_libdir}/gimp %dir %{_libdir}/gimp/%{interfacever} %dir %{_libdir}/gimp/%{interfacever}/modules %{_libdir}/gimp/%{interfacever}/modules/*.a %ifnos linux %{_libdir}/*.la %{_libdir}/gimp/%{interfacever}/modules/*.la %endif %{_datadir}/aclocal/*.m4 %{_includedir}/gimp-%{interfacever} %{_libdir}/pkgconfig/* %changelog * Mon Jun 8 2009 Radu-Cristian Fotescu <info [AT] beranger [DOT] org> - Initial release under this form
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor