2008-07-11 04:32:08 +02:00
#
2011-10-02 10:03:30 +02:00
# spec file for package gimp-gap
2008-07-11 04:32:08 +02:00
#
2012-06-10 20:16:09 +02:00
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
2008-07-11 04:32:08 +02:00
#
2008-10-16 01:25:55 +02:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2008-07-11 04:32:08 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : gimp-gap
2009-06-12 20:27:26 +02:00
Version : 2.6.0
2012-01-05 19:11:08 +01:00
Release : 0
2008-07-11 04:32:08 +02:00
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
# Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to name original code as -orig.
2012-01-05 19:11:08 +01:00
BuildRequires : automake
BuildRequires : gimp-devel >= 2.6.0
BuildRequires : intltool
BuildRequires : libjpeg-devel
2008-07-11 04:32:08 +02:00
%if 0%{?BUILD_ORIG}
%if ! 0%{?BUILD_ORIG_ADDON}
Provides : %{name} -orig = %{version}
Obsoletes : %{name} -orig < %{version} -%{release}
%endif
%else
Provides : patched_build
Conflicts : %{name} -orig
%endif
Url : http://www.gimp.org/
Requires : %{name} -lang = %{version}
Summary : GIMP Animation Package
2012-01-05 19:11:08 +01:00
License : GPL-2.0
Group : Productivity/Multimedia/Video/Editors and Convertors
2008-07-11 04:32:08 +02:00
%if 0%{?BUILD_ORIG}
2023-11-08 22:17:36 +01:00
Source : https://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/%{name} -%{version} .tar.bz2
2008-07-11 04:32:08 +02:00
%else
# WARNING: This is not a comment, but the real command to repack souce:
#%(bash %{_sourcedir}/%{name}-patch-source.sh %{name}-%{version}.tar.bz2)
Source : %{name} -%{version} -patched.tar.bz2
%endif
2023-11-08 22:17:36 +01:00
Patch0 : %{name} -patched.patch
2009-06-12 20:27:26 +02:00
# PATCH-FIX-OPENSUSE gimp-gap-no-strict-aliasing.patch sbrabec@suse.cz -- Disables strict aliasing for part of the code.
Patch1 : %{name} -no-strict-aliasing.patch
# PATCH-FIX-UPSTREAM gimp-gap-warnings.patch bgo585343 sbrabec@suse.cz -- Fix of serious warnings.
Patch2 : %{name} -warnings.patch
# PATCH-FIX-UPSTREAM gimp-gap-warnings-orig-addon.patch bgo585343 sbrabec@suse.cz -- Fix of serious warnings.
Patch3 : %{name} -warnings-orig-addon.patch
2011-10-02 10:03:30 +02:00
# PATCH-FIX-UPSTREAM gimp-gap-link-lm.patch bgo#660443 idoenmez@suse.de -- Link to -lm where needed
Patch4 : %{name} -link-lm.patch
2012-06-10 20:16:09 +02:00
# PATCH-FIX-UPSTREAM gimp-gap-gimp28.patch dimstar@opensuse.org -- Fix build with gimp 2.8. Patch not upstreamed, as there are a bunch of commits addressing the same.
Patch5 : gimp-gap-gimp28.patch
2008-07-11 04:32:08 +02:00
Source1 : %{name} -patch-source.sh
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2009-09-03 23:41:18 +02:00
%if %{?gimp_api_version:1}0
2009-08-28 22:16:32 +02:00
Requires : gimp(abi) = %{gimp_abi_version}
Requires : gimp(api) = %{gimp_api_version}
%else
%requires_eq gimp
%endif
2008-07-11 04:32:08 +02:00
%description
The GIMP-GAP (GIMP Animation Package) is a collection of Plug-Ins to
extend the GIMP with capabilities to edit and create animations as
sequences of single frames.
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}
%package orig
Summary : GIMP Animation Package
2012-06-10 20:16:09 +02:00
Group : Productivity/Multimedia/Video/Editors and Convertors
2008-07-11 04:32:08 +02:00
Provides : %{name} = %{version} -%{release}
Obsoletes : %{name} < %{version} -%{release}
%description orig
The GIMP-GAP (GIMP Animation Package) is a collection of Plug-Ins to
extend the GIMP with capabilities to edit and create animations as
sequences of single frames.
%endif
%endif
%lang_package
%prep
%setup -q
2009-06-12 20:27:26 +02:00
chmod -x ChangeLog
2008-07-11 04:32:08 +02:00
%if ! 0%{?BUILD_ORIG}
2023-11-08 22:17:36 +01:00
%patch0
2009-10-27 16:25:27 +01:00
%endif
%if 0%{?BUILD_ORIG}
2008-10-16 01:25:55 +02:00
%patch1
2009-06-12 20:27:26 +02:00
%endif
2008-11-03 12:07:17 +01:00
%patch2
2009-06-12 20:27:26 +02:00
%if 0%{?BUILD_ORIG}
%patch3
%endif
2011-10-02 10:03:30 +02:00
%patch4
2012-06-10 20:16:09 +02:00
%patch5 -p1
2009-06-12 20:27:26 +02:00
sed -i -e " s , s r @ L a t n , s r @ l a t i n , " po/LINGUAS
2009-02-11 02:01:40 +01:00
mv po/sr@Latn.po po/sr@latin.po
2008-07-11 04:32:08 +02:00
%build
autoreconf -f -i
%if 0%{?BUILD_ORIG}
# FIXME: Ugly work-around of:
#...ld: bitstream.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
#bitstream.o: could not read symbols: Bad value
2009-06-12 20:27:26 +02:00
#export CFLAGS="-fPIC -DPIC $RPM_OPT_FLAGS"
#export LDFLAGS="-fPIC"
2008-07-11 04:32:08 +02:00
%configure
%else
%configure \
--disable-libavformat
%endif
2009-06-12 20:27:26 +02:00
# First cimpilation of ffmpeg may fail on missing documentation:
make %{?jobs:-j%jobs} STRIP=/bin/true || :
make %{?jobs:-j%jobs} STRIP=/bin/true
2008-07-11 04:32:08 +02:00
%install
%makeinstall
%find_lang gimp20-gap
%if 0%{?BUILD_ORIG}
2009-06-12 20:27:26 +02:00
rm -f $RPM_BUILD_ROOT %{_libdir} /gimp-gap-2.6/*.a
2008-07-11 04:32:08 +02:00
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}
%files orig
%else
%files
%endif
%else
%files
%endif
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog* NEWS README
2009-06-12 20:27:26 +02:00
%{_libdir} /gimp-gap-2.6
2010-12-29 00:03:47 +01:00
%dir %{_libdir} /gimp
%dir %{_libdir} /gimp/2.0
%dir %{_libdir} /gimp/2.0/plug-ins
2008-07-11 04:32:08 +02:00
%{_libdir} /gimp/2.0/plug-ins/*
2010-12-29 00:03:47 +01:00
%dir %{_datadir} /gimp
%dir %{_datadir} /gimp/2.0
%dir %{_datadir} /gimp/2.0/scripts
2008-07-11 04:32:08 +02:00
%{_datadir} /gimp/2.0/scripts/*.scm
%files lang -f gimp20-gap.lang
2008-10-16 01:25:55 +02:00
2008-07-11 04:32:08 +02:00
%changelog