gimp/gimp.spec

571 lines
20 KiB
RPMSpec
Raw Permalink Normal View History

# GIMP specfile for openmamba
#
# TIP: also check for gimp-help package updates when upgrading gimp
#
%define majversion %(echo %version | cut -d. -f 1-2)
%define api_version 2.0
%define enable_python 1
%define libname libgimp
Name: gimp
Epoch: 1
Version: 2.10.28
Release: 1mamba
Summary: The GNU Image Manipulation Program
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.gimp.org/
Source0: http://download.gimp.org/pub/gimp/v%{majversion}/gimp-%{version}.tar.bz2
Patch0: %{name}-2.4.0-desktop_file.patch
Patch1: %{name}-2.2.13-gimprc-default_browser.patch
# patch to avoid the problem with BABL version 0.1.0 and major
Patch2: %{name}-2.6.6-BABL.patch
Patch3: %{name}-2.6.6-GEGL.patch
Patch4: %{name}-2.7.4-fix_ld_missing_libm.patch
Patch5: gimp-2.8.10-freetype-2.5.2.patch
License: GPL
## AUTOBUILDREQ-BEGIN
#libdl.so.2()(64bit): /usr/lib64/libdl.so: file not owned by any package
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXcursor-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libXmu-devel
BuildRequires: libXpm-devel
BuildRequires: libXt-devel
BuildRequires: libaa-devel
BuildRequires: libalsa-devel
BuildRequires: libatk-devel
BuildRequires: libbabl-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libgegl-devel
BuildRequires: libgexiv2-devel
BuildRequires: libglib-devel
BuildRequires: libgs-devel
BuildRequires: libgtk2-devel
BuildRequires: libgudev-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libimath-devel
BuildRequires: libjpeg-devel
BuildRequires: libjson-c-devel
BuildRequires: libjson-glib-devel
BuildRequires: liblcms2-devel
BuildRequires: liblzma-devel
BuildRequires: libmng-devel
BuildRequires: libmypaint-devel
BuildRequires: libopenexr-devel
BuildRequires: libopenjpeg-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libpoppler-glib-devel
BuildRequires: librsvg-devel
BuildRequires: libsoup-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libunwind-devel
BuildRequires: libwebkit-gtk-devel
BuildRequires: libwebp-devel
BuildRequires: libwmf-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libmypaint-devel >= 1.6.1-1mamba
BuildRequires: bash
BuildRequires: coreutils
BuildRequires: ldconfig
BuildRequires: gettext-devel
BuildRequires: pkgconfig
BuildRequires: libgsf-devel
BuildRequires: libcroco-devel
BuildRequires: libgail-devel
BuildRequires: perl
# build requirements for gimp-help
BuildRequires: libxslt-devel
BuildRequires: ImageMagick
%if %{enable_python}
# build requirement needed to build python extension
BuildRequires: pygtk-devel
BuildRequires: libpython-devel
BuildRequires: pycairo-py27-devel
%endif
BuildRequires: /usr/bin/xmllint
BuildRequires: /usr/bin/xsltproc
BuildRequires: libbabl-devel
BuildRequires: libjasper-devel
BuildRequires: intltool >= 0.40.1
BuildRequires: mypaint-brushes1
Requires: mypaint-brushes1
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
Requires: python-gimp = %{?epoch:%epoch:}%{version}-%{release}
#Requires: gimp-print >= 4.2.5
Requires: libtiff >= 3.5.7
Requires: dbus-tools
Requires: iso-codes
Requires: graphviz
#====================================================
# warning FIXME: "reverse" hardcoded to FALSE.
# warning FIXME: make interpolated transformations work on layers without alpha
# warning FIXME: use GParamSpecString::ensure_non_null and chain up once we depend on glib 2.12.12 or newer
# warning FIXME: need container of dirty images
#====================================================
%description
GIMP is an acronym for GNU Image Manipulation Program.
It is a freely distributed piece of software suitable for such tasks as photo retouching, image composition and image authoring.
It is an extremely capable piece of software with many capabilities.
It can be used as a simple paint program, a expert quality photo retouching program, an online batch processing system, a mass production image renderer, a image format converter, etc.
GIMP is extremely expandedable and extensible.
It is designed to be augmented with plugins and extensions to do just about anything.
The advanced scripting interface allows everything from the simplest task to the most complex image manipulation procedures to be easily scripted.
%package console
Summary: GIMP libraries
Group: Applications/Graphics
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
%description console
GIMP is an acronym for GNU Image Manipulation Program.
It is a freely distributed piece of software suitable for such tasks as photo retouching, image composition and image authoring.
It is an extremely capable piece of software with many capabilities.
It can be used as a simple paint program, a expert quality photo retouching program, an online batch processing system, a mass production image renderer, a image format converter, etc.
This package contains a console-only binary which does not link GTK+ at all.
%package -n %{libname}
Summary: GIMP libraries
Group: System/Libraries
License: LGPL
%description -n %{libname}
This is the library that provides core GIMP functionality.
It enable other programs to use GIMP's features but is mainly intended to be used by the GIMP and its "external" plugins.
%package -n %{libname}-devel
Summary: Static libraries and headers for %{name}
Group: Development/Libraries
Obsoletes: gimp-devel < 1:2.10.28
Provides: gimp-devel
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
%description -n %{libname}-devel
GIMP is an acronym for GNU Image Manipulation Program.
It is a freely distributed piece of software suitable for such tasks as photo retouching, image composition and image authoring.
It is an extremely capable piece of software with many capabilities.
It can be used as a simple paint program, a expert quality photo retouching program, an online batch processing system, a mass production image renderer, a image format converter, etc.
GIMP is extremely expandedable and extensible.
It is designed to be augmented with plugins and extensions to do just about anything.
The advanced scripting interface allows everything from the simplest task to the most complex image manipulation procedures to be easily scripted.
This package contains static libraries and header files need for development.
%package -n %{libname}-apidocs
Summary: GIMP library API documentation
Group: Documentation
Requires: gtk-doc
%description -n %{libname}-apidocs
GIMP library API documentation.
%package -n python-%{name}
Summary: GIMP python extension
Group: System/Libraries/Python
Provides: %{name}-python = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pygtk
%description -n python-%{name}
This package contains the python modules for GIMP, which act as a wrapper to libgimp allowing the writing of plug-ins for Gimp.
This is similar to script-fu, except that you can use the full set of Python extension modules from the plug-in, and you write plug-in in python instead of in scheme.
%debug_package
%prep
%setup -q
#%patch2
#%patch3 -p1
%patch4 -p1
#%patch5 -p1
%build
export CFLAGS="%{optflags} -ffast-math"
%ifarch arm
export LDFLAGS="-lm"
%endif
%configure \
--enable-gimp-console \
--with-bug-report-url=https://openmamba.org/ \
%if %enable_python
--enable-python=yes \
PYTHON=python%{python_version} \
%else
--enable-python=no \
%endif
--enable-gtk-doc \
# --enable-gimp-remote \
%make FIXXREF_OPTIONS="--module \$(DOC_MODULE)"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name} --all-name
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/gimp-%{majversion}
%{_bindir}/gimp
%{_bindir}/gimp-test-clipboard-*
%dir %{_datadir}/gimp
%{_datadir}/gimp/*
%{_datadir}/metainfo/gimp-data-extras.metainfo.xml
%{_datadir}/metainfo/org.gimp.GIMP.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/gimp.png
%dir %{_sysconfdir}/gimp
%{_sysconfdir}/gimp/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%files console
%defattr(-,root,root)
%{_bindir}/gimp-console
%{_bindir}/gimp-console-%{majversion}
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libgimp-*.so.*
%{_libdir}/libgimpconfig-*.so.*
%{_libdir}/libgimpthumb-*.so.*
%{_libdir}/libgimpbase-*.so.*
%{_libdir}/libgimpcolor-*.so.*
%{_libdir}/libgimpmath-*.so.*
%{_libdir}/libgimpmodule-*.so.*
%{_libdir}/libgimpui-*.so.*
%{_libdir}/libgimpwidgets-*.so.*
%{_libexecdir}/gimp-debug-tool-*
%dir %{_libdir}/gimp/%{api_version}
%dir %{_libdir}/gimp/%{api_version}/environ
%{_libdir}/gimp/%{api_version}/environ/default.env
%{_libdir}/gimp/%{api_version}/interpreters/*
%{_libdir}/gimp/%{api_version}/modules
%{_libdir}/gimp/%{api_version}/plug-ins
%doc AUTHORS COPYING
%files -n %{libname}-devel
%defattr(-,root,root)
%{_bindir}/gimptool-2.0
%{_datadir}/aclocal/*
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%dir %{_includedir}/gimp-%{api_version}
%{_includedir}/gimp-%{api_version}/*
%doc ChangeLog HACKING NEWS README README.i18n
%files -n %{libname}-apidocs
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/libgimp/
%{_datadir}/gtk-doc/html/libgimpbase/
%{_datadir}/gtk-doc/html/libgimpcolor/
%{_datadir}/gtk-doc/html/libgimpconfig/
%{_datadir}/gtk-doc/html/libgimpmath/
%{_datadir}/gtk-doc/html/libgimpmodule/
%{_datadir}/gtk-doc/html/libgimpthumb/
%{_datadir}/gtk-doc/html/libgimpwidgets/
%if %{enable_python}
%files -n python-%{name}
%defattr(-,root,root)
%{_libdir}/gimp/%{api_version}/environ/pygimp.env
%{_libdir}/gimp/%{api_version}/python
#%{_libdir}/gimp/%{api_version}/plug-ins/*.py
%endif
%changelog
* Wed Sep 29 2021 Automatic Build System <autodist@mambasoft.it> 2.10.28-1mamba
- automatic version update by autodist
* Sun Aug 29 2021 Automatic Build System <autodist@mambasoft.it> 2.10.24-1mamba
- automatic version update by autodist
* Tue Feb 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.22-3mamba
- require graphviz
* Fri Jan 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.22-2mamba
- python-gimp: removed requirements for python 2.6
* Thu Oct 08 2020 Automatic Build System <autodist@mambasoft.it> 2.10.22-1mamba
- automatic version update by autodist
* Mon Sep 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.20-2mamba
- rebuilt by autoport with build requirements: libmypaint-devel>=1.6.1-1mamba
* Sat Jun 13 2020 Automatic Build System <autodist@mambasoft.it> 2.10.20-1mamba
- automatic version update by autodist
* Sat Mar 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.18-3mamba
- rebuilt by autoport with build requirements: libmypaint-devel>=1.5.1-1mamba
* Sat Mar 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.18-2mamba
- rebuilt with debug package
* Tue Feb 25 2020 Automatic Build System <autodist@mambasoft.it> 2.10.18-1mamba
- automatic version update by autodist
* Wed Feb 19 2020 Automatic Build System <autodist@mambasoft.it> 2.10.16-1mamba
- automatic version update by autodist
* Wed Nov 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.14-2mamba
- require python-gimp and iso-codes
* Wed Nov 06 2019 Automatic Build System <autodist@mambasoft.it> 2.10.14-1mamba
- automatic version update by autodist
* Sat Jul 06 2019 Automatic Build System <autodist@mambasoft.it> 2.10.12-1mamba
- automatic version update by autodist
* Mon Apr 08 2019 Automatic Build System <autodist@mambasoft.it> 2.10.10-1mamba
- automatic version update by autodist
* Mon Mar 25 2019 Automatic Build System <autodist@mambasoft.it> 2.10.8-1mamba
- automatic version update by autodist
* Mon Oct 08 2018 Automatic Build System <autodist@mambasoft.it> 2.10.6-1mamba
- automatic version update by autodist
* Fri Jun 16 2017 Automatic Build System <autodist@mambasoft.it> 2.8.22-1mamba
- automatic version update by autodist
* Mon Mar 06 2017 Automatic Build System <autodist@mambasoft.it> 2.8.20-1mamba
- automatic version update by autodist
* Wed Oct 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.18-1mamba
- update to 2.8.18
* Sun Nov 29 2015 Automatic Build System <autodist@mambasoft.it> 2.8.16-1mamba
- automatic version update by autodist
* Fri Sep 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.14-1mamba
- update to 2.8.14
* Mon Jan 13 2014 Automatic Build System <autodist@mambasoft.it> 2.8.10-1mamba
- automatic version update by autodist
* Mon Nov 04 2013 Automatic Build System <autodist@mambasoft.it> 2.8.8-1mamba
- automatic version update by autodist
* Wed Jun 26 2013 Automatic Build System <autodist@mambasoft.it> 2.8.6-1mamba
- automatic version update by autodist
* Wed Feb 06 2013 Automatic Build System <autodist@mambasoft.it> 2.8.4-1mamba
- automatic version update by autodist
* Fri Aug 24 2012 Automatic Build System <autodist@mambasoft.it> 2.8.2-1mamba
- automatic version update by autodist
* Thu May 03 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.8.0-1mamba
- update to 2.8.0
* Thu Jan 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.4-1mamba
- update to 2.7.4
* Tue Aug 23 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.7.3-1mamba
- update to 2.7.3
* Fri Nov 12 2010 Automatic Build System <autodist@mambasoft.it> 2.6.11-2mamba
- automatic rebuild by autodist
* Mon Oct 04 2010 Automatic Build System <autodist@mambasoft.it> 2.6.11-1mamba
- automatic update to 2.6.11 by autodist
* Thu Jul 08 2010 Automatic Build System <autodist@mambasoft.it> 2.6.10-1mamba
- automatic update to 2.6.10 by autodist
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.9-2mamba
- rebuilt against libpng 1.4
* Wed Jun 23 2010 Automatic Build System <autodist@mambasoft.it> 2.6.9-1mamba
- automatic update to 2.6.9 by autodist
* Fri Jun 04 2010 Automatic Build System <autodist@mambasoft.it> 2.6.8-2mamba
- automatic rebuild by autodist
* Sun Dec 27 2009 Automatic Build System <autodist@mambasoft.it> 2.6.8-1mamba
- automatic update to 2.6.8 by autodist
* Fri Aug 14 2009 Automatic Build System <autodist@mambasoft.it> 2.6.7-1mamba
- automatic update to 2.6.7 by autodist
* Thu Aug 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.6-3mamba
- added the same patch as below for GEGL 0.1.0
* Tue Aug 04 2009 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.6.6-2mamba
- Added a patch to avoid error with BABL version major of 0.0.22
* Mon Mar 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.6-1mamba
- automatic update to 2.6.6 by autodist
* Mon Feb 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.5-1mamba
- automatic update to 2.6.5 by autodist
* Fri Jan 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.4-1mamba
- automatic update to 2.6.4 by autodist
* Sat Nov 22 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.3-1mamba
- automatic update to 2.6.3 by autodist
* Fri Oct 31 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-1mamba
- automatic update to 2.6.2 by autodist
* Thu Oct 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-1mamba
- automatic update to 2.6.1 by autodist
* Sat Aug 23 2008 gil <puntogil@libero.it> 2.4.7-1mamba
- update to 2.4.7
- pygtk2 replaced with pygtk
* Wed Jun 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.6-1mamba
- update to 2.4.6
* Thu Mar 27 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.5-1mamba
- update to 2.4.5
- removed requirement for gimp-print
* Mon Dec 17 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.3-2mamba
- added requirement for dbus-tools
* Sun Dec 16 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.3-1mamba
- update to 2.4.3
- gimp help moved to gimp-help stand-alone package
* Wed Nov 21 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.2-1mamba
- update to 2.4.2
- gimp-help update to version 2.0.13
* Wed Oct 31 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.1-1mamba
- update to 2.4.1
* Wed Oct 24 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
- update to 2.4.0
* Tue Jun 05 2007 Aleph0 <aleph0@openmamba.org> 2.2.15-1mamba
- update to 2.2.15
- gimp-help updated to version 2.0.12
* Wed Jan 17 2007 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.13-2qilnx
- new subpackage apidocs with API documentation
* Wed Jan 10 2007 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.13-1qilnx
- update to version 2.2.13 by autospec
- created help packages for Italian, Korean, Norwegian, and Russian languages
- added some missing build requirements
- updated build requirements for Xorg
- use firefox instead of mozilla to display help pages
- use %%py_requires to set up requirements for python extensions subpackage
* Fri Jul 07 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.12-1qilnx
- update to version 2.2.12 by autospec
* Wed May 10 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.11-1qilnx
- update to version 2.2.11 by autospec
- gimp-help updated to version 2-0.10
* Fri Mar 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.10-2qilnx
- new packages libgimp, libgimp-devel (was gimp-devel), gimp-console
- new package python-gimp (python bindings for gimp)
- compiled with the fast-math gcc option
* Tue Jan 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.10-1qilnx
- update to version 2.2.10 by autospec
* Fri Dec 23 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.9-4qilnx
- patched desktop file to add mimefile support
* Tue Dec 13 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.2.9-3qilnx
- added --enable-gimp-console option for the configure
* Mon Nov 28 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.2.9-2qilnx
- modified desktop file adding mimefile
* Fri Oct 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.2.9-1qilnx
- update to version 2.2.9 by autospec
- specfile fixes/cleanups
- added some missing build requirements
* Wed Jun 29 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.2.8-1qilnx
- update to version 2.2.8 by autospec
* Wed May 11 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.7-1qilnx
- update to version 2.2.7 by autospec
* Mon Apr 18 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.6-1qilnx
- update to version 2.2.6 by autospec
* Mon Jan 17 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2-1qilnx
- update to version 2.2.2 by autospec
- added documentation/help packages
* Wed Dec 29 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-1qilnx
- update to version 2.2.1 by autospec
* Fri Nov 26 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.6-1qilnx
- update to version 2.0.6 by autospec
* Wed Oct 13 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.5-2qilnx
- changed kde menu entry name to a more comprehensible one
* Sun Sep 26 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.5-1qilnx
- update to version 2.0.5 by autospec
* Thu Sep 09 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.4-1qilnx
- new version build
- added *.so missing symlinks
- moved gimptool in devel package
* Mon Jul 19 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-1qilnx
- new version build
* Mon Jun 21 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1qilnx
- new version build
* Fri Apr 16 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1qilnx
- new version build
* Wed Mar 24 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1qilnx
- new version build
* Tue Jan 20 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0pre2-1qilnx
- new version rebuild
- added kde menu icon
* Wed Jan 07 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0pre1-1qilnx
- new version rebuild
* Tue Dec 30 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.23-1qilnx
- new version rebuild
* Mon Sep 22 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.5-1qilnx
- first build for gimp