File gimp-gap.spec of Package gimp-gap

# spec file for package gimp-gap
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           gimp-gap
Version:        2.6.0
Release:        0
# 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.
BuildRequires:  automake
BuildRequires:  gimp-devel >= 2.6.0
BuildRequires:  intltool
BuildRequires:  libjpeg-devel
BuildRequires:  translation-update-upstream
%if 0%{?BUILD_ORIG}
Provides:       %{name}-orig = %{version}
Obsoletes:      %{name}-orig < %{version}-%{release}
Provides:       patched_build
Conflicts:      %{name}-orig
Requires:       %{name}-lang = %{version}
Summary:        GIMP Animation Package
License:        GPL-2.0
Group:          Productivity/Multimedia/Video/Editors and Convertors
%if 0%{?BUILD_ORIG}
# WARNING: This is not a comment, but the real command to repack souce:
#%(bash %{_sourcedir}/%{name} %{name}-%{version}.tar.bz2)
Source:         %{name}-%{version}-patched.tar.bz2
Patch:          %{name}-patched.patch
# PATCH-FIX-OPENSUSE gimp-gap-no-strict-aliasing.patch -- Disables strict aliasing for part of the code.
Patch1:         %{name}-no-strict-aliasing.patch
# PATCH-FIX-UPSTREAM gimp-gap-warnings.patch bgo585343 -- Fix of serious warnings.
Patch2:         %{name}-warnings.patch
# PATCH-FIX-UPSTREAM gimp-gap-warnings-orig-addon.patch bgo585343 -- Fix of serious warnings.
Patch3:         %{name}-warnings-orig-addon.patch
# PATCH-FIX-UPSTREAM gimp-gap-link-lm.patch bgo#660443 -- Link to -lm where needed
Patch4:         %{name}-link-lm.patch
# PATCH-FIX-UPSTREAM gimp-gap-gimp28.patch -- Fix build with gimp 2.8. Patch not upstreamed, as there are a bunch of commits addressing the same.
Patch5:         gimp-gap-gimp28.patch
Source1:        %{name}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %{?gimp_api_version:1}0
Requires:       gimp(abi) = %{gimp_abi_version}
Requires:       gimp(api) = %{gimp_api_version}
%requires_eq gimp

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}

%package orig
Summary:        GIMP Animation Package
Group:          Productivity/Multimedia/Video/Editors and Convertors
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.


%setup -q
chmod -x ChangeLog
%if ! 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG}
%patch5 -p1
sed -i -e "s,sr@Latn,sr@latin," po/LINGUAS
mv po/sr@Latn.po po/sr@latin.po

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
#export LDFLAGS="-fPIC"
# First cimpilation of ffmpeg may fail on missing documentation:
make %{?jobs:-j%jobs} STRIP=/bin/true  || :
make %{?jobs:-j%jobs} STRIP=/bin/true

%find_lang gimp20-gap
%if 0%{?BUILD_ORIG}
rm -f $RPM_BUILD_ROOT%{_libdir}/gimp-gap-2.6/*.a

%if 0%{?BUILD_ORIG}

%files orig


%dir %{_libdir}/gimp
%dir %{_libdir}/gimp/2.0
%dir %{_libdir}/gimp/2.0/plug-ins
%dir %{_datadir}/gimp
%dir %{_datadir}/gimp/2.0
%dir %{_datadir}/gimp/2.0/scripts

%files lang -f gimp20-gap.lang

openSUSE Build Service is sponsored by