SHA256
1
0
forked from pool/gimp-gap
gimp-gap/gimp-gap.spec

157 lines
4.2 KiB
RPMSpec

#
# spec file for package gimp-gap (Version 2.4.0)
#
# Copyright (c) 2009 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: gimp-gap
Version: 2.4.0
Release: 54
# 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: gimp-devel intltool libjpeg-devel
%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: gimp-2.0
Requires: %{name}-lang = %{version}
Summary: GIMP Animation Package
%if 0%{?BUILD_ORIG}
Source: ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.4/gap/%{name}-%{version}.tar.bz2
%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
Patch1: %{name}-no-gimp_proc_view_new.patch
# Patch %{name}-no-gimp_proc_view_new.patch makes it binary incompatible with 2.4
Requires: gimp-2.0 >= 2.6.0
Patch2: gimp-gap-portability.patch
Source1: %{name}-patch-source.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
%if ! 0%{?BUILD_ORIG}
%patch
%endif
%patch1
%patch2
sed -i -e "s,sr@Latn,sr@latin," configure.in
mv po/sr@Latn.po po/sr@latin.po
%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
export CFLAGS="-fPIC -DPIC $RPM_OPT_FLAGS"
export LDFLAGS="-fPIC"
%configure
%else
%configure\
--disable-libavformat
%endif
make %{?jobs:-j%jobs}
%install
%makeinstall
%find_lang gimp20-gap
%if 0%{?BUILD_ORIG}
rm $RPM_BUILD_ROOT%{_libdir}/gimp-gap-2.4/*.a
%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
%{_libdir}/gimp-gap-2.4
%{_libdir}/gimp/2.0/plug-ins/*
%{_datadir}/gimp/2.0/scripts/*.scm
%files lang -f gimp20-gap.lang
%changelog
* Wed Feb 11 2009 ro@suse.de
- use sr@latin instead of sr@Latn
* Thu Oct 30 2008 sbrabec@suse.cz
- gcc portability warning fix (bnc#439279).
* Wed Oct 15 2008 sbrabec@suse.cz
- Removed copy of gimp_proc_view_new() available in gimp-2.6.
* Fri Jun 06 2008 sbrabec@suse.cz
- New SuSE package, version 2.4.0.