135 lines
3.2 KiB
RPMSpec
135 lines
3.2 KiB
RPMSpec
|
#
|
||
|
# spec file for package gimp-gap (Version 2.4.0)
|
||
|
#
|
||
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
# This file and all modifications and additions to the pristine
|
||
|
# package are under the same license as the package itself.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
# norootforbuild
|
||
|
|
||
|
|
||
|
Name: gimp-gap
|
||
|
Version: 2.4.0
|
||
|
Release: 2
|
||
|
# 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
|
||
|
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
|
||
|
|
||
|
%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
|
||
|
* Fri Jun 06 2008 sbrabec@suse.cz
|
||
|
- New SuSE package, version 2.4.0.
|