2008-07-11 04:32:08 +02:00
|
|
|
#
|
2009-06-12 20:27:26 +02:00
|
|
|
# spec file for package gimp-gap (Version 2.6.0)
|
2008-07-11 04:32:08 +02:00
|
|
|
#
|
2009-02-11 02:01:40 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: gimp-gap
|
2009-06-12 20:27:26 +02:00
|
|
|
Version: 2.6.0
|
2009-08-28 22:16:32 +02:00
|
|
|
Release: 2
|
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.
|
2009-08-28 22:16:32 +02:00
|
|
|
BuildRequires: gimp-devel >= 2.6.0 intltool 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/
|
|
|
|
License: GPL v2 only
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
Requires: %{name}-lang = %{version}
|
|
|
|
Summary: GIMP Animation Package
|
|
|
|
%if 0%{?BUILD_ORIG}
|
2009-06-12 20:27:26 +02:00
|
|
|
Source: ftp://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
|
|
|
|
Patch: %{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
|
2008-07-11 04:32:08 +02:00
|
|
|
Source1: %{name}-patch-source.sh
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-28 22:16:32 +02:00
|
|
|
%if %{?gimp_api_version}0
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wolfgang Hofer <hof@gimp.org>
|
|
|
|
|
|
|
|
%if 0%{?BUILD_ORIG}
|
|
|
|
%if 0%{?BUILD_ORIG_ADDON}
|
|
|
|
|
|
|
|
%package orig
|
|
|
|
Summary: GIMP Animation Package
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
License: GPL v2 only
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Wolfgang Hofer <hof@gimp.org>
|
|
|
|
|
|
|
|
%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}
|
|
|
|
%patch
|
2009-06-12 20:27:26 +02:00
|
|
|
%else
|
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
|
|
|
|
sed -i -e "s,sr@Latn,sr@latin," 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
|
2008-07-11 04:32:08 +02:00
|
|
|
%{_libdir}/gimp/2.0/plug-ins/*
|
|
|
|
%{_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
|