commit 5525d61709834edcaad5a5af090473db3daa4fc33a2aefa198c1588f80085edf Author: OBS User unknown Date: Fri Jul 11 02:32:08 2008 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gimp-gap?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gimp-gap-2.4.0-patched.tar.bz2 b/gimp-gap-2.4.0-patched.tar.bz2 new file mode 100644 index 0000000..cfe32a1 --- /dev/null +++ b/gimp-gap-2.4.0-patched.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a21af6398a20a2459dccce8072cb95dbff3681cf09c05a8310a74e5318e682d +size 1968753 diff --git a/gimp-gap-2.4.0.tar.bz2 b/gimp-gap-2.4.0.tar.bz2 new file mode 100644 index 0000000..47563ec --- /dev/null +++ b/gimp-gap-2.4.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:905dfcfd6ba78f8b25b8e0dc068a75cca3e1effc998fe50b8a7f4b65746cc653 +size 4701609 diff --git a/gimp-gap-patch-source.sh b/gimp-gap-patch-source.sh new file mode 100644 index 0000000..3f8d90e --- /dev/null +++ b/gimp-gap-patch-source.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +REMOVE_OBJECTS=(\ + extern_libs vid_enc_avi vid_enc_ffmpeg libgapvidapi/gap_vid_api_ffmpeg.c\ + libgapvidapi/gap_vid_api_mpeg3.c libgapvidapi/gap_vid_api_mpeg3toc.c ) + +set -o errexit + +CMDNAME=${0##*/} +SOURCEDIR=${0%$CMDNAME} + +BASENAME=${1%.tar.bz2} + +trap "rm -rf \"$BASENAME-patched.tar\" \"$BASENAME-patched.tar.bz2\"" ERR + +for (( N=0 ; N<${#REMOVE_OBJECTS[@]} ; N++ )) ; do + REMOVE_OBJECTS[N]="$BASENAME/${REMOVE_OBJECTS[N]}" +done + +cd "$SOURCEDIR" >/dev/null + +if ! test -f "$BASENAME.tar.bz2" ; then + exit 0 +fi + +if test -f "$BASENAME-patched.tar.bz2" ; then + if test "$BASENAME.tar.bz2" -ot "$BASENAME-patched.tar.bz2" ; then + if test $CMDNAME -ot "$BASENAME-patched.tar.bz2" ; then + exit 0 + fi + fi +fi + +cp -a "$BASENAME.tar.bz2" "$BASENAME-patched.tar.bz2" +bunzip2 "$BASENAME-patched.tar.bz2" +tar --delete -f "$BASENAME-patched.tar" "${REMOVE_OBJECTS[@]}" +bzip2 "$BASENAME-patched.tar" diff --git a/gimp-gap-patched.patch b/gimp-gap-patched.patch new file mode 100644 index 0000000..9ef94fd --- /dev/null +++ b/gimp-gap-patched.patch @@ -0,0 +1,51 @@ +--- Makefile.am ++++ Makefile.am +@@ -15,17 +15,13 @@ + if GAP_VIDEOAPI_SUPPORT + LIBGAPVIDUTIL=libgapvidutil + VID_COMMON=vid_common +-VID_ENC_FFMPEG=vid_enc_ffmpeg + VID_ENC_SINGLE=vid_enc_single +-VID_ENC_AVI=vid_enc_avi + endif + + +-SUBDIRS = extern_libs images $(LIBWAVCLIENT) $(LIBGAPVIDAPI) gap po docs \ ++SUBDIRS = images $(LIBWAVCLIENT) $(LIBGAPVIDAPI) gap po docs \ + $(LIBGAPVIDUTIL) \ + $(VID_COMMON) \ +- $(VID_ENC_AVI) \ +- $(VID_ENC_FFMPEG) \ + $(VID_ENC_SINGLE) + + EXTRA_DIST = \ +--- configure.in ++++ configure.in +@@ -722,15 +722,12 @@ + + AC_OUTPUT([ + Makefile +-extern_libs/Makefile + images/Makefile + gap/Makefile + libwavplayclient/Makefile + libgapvidapi/Makefile + libgapvidutil/Makefile + vid_common/Makefile +-vid_enc_avi/Makefile +-vid_enc_ffmpeg/Makefile + vid_enc_single/Makefile + po/Makefile.in + docs/Makefile +--- libgapvidapi/Makefile.am ++++ libgapvidapi/Makefile.am +@@ -24,9 +24,6 @@ + # .c sourcefiles in gap_vid_api.c (except example.c) + EXTRA_DIST = \ + gap_vid_api_gimp.c \ +- gap_vid_api_ffmpeg.c \ +- gap_vid_api_mpeg3.c \ +- gap_vid_api_mpeg3toc.c \ + gap_vid_api_quicktime.c \ + gap_vid_api_util.c \ + gap_vid_api_vidindex.c \ diff --git a/gimp-gap.changes b/gimp-gap.changes new file mode 100644 index 0000000..03f4151 --- /dev/null +++ b/gimp-gap.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jun 6 11:09:06 CEST 2008 - sbrabec@suse.cz + +- New SuSE package, version 2.4.0. + diff --git a/gimp-gap.spec b/gimp-gap.spec new file mode 100644 index 0000000..42808ed --- /dev/null +++ b/gimp-gap.spec @@ -0,0 +1,134 @@ +# +# 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 + +%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 + +%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. diff --git a/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..17f3398 --- /dev/null +++ b/pre_checkin.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gimp-gap*.tar.bz2 ; do + case $i in *patched*) continue ;; esac + test -f ${i//.tar./-patched.tar.} && continue + bash gimp-gap-patch-source.sh $i +done diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4