OBS User unknown 2008-07-11 02:32:08 +00:00 committed by Git OBS Bridge
commit 5525d61709
9 changed files with 263 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a21af6398a20a2459dccce8072cb95dbff3681cf09c05a8310a74e5318e682d
size 1968753

3
gimp-gap-2.4.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:905dfcfd6ba78f8b25b8e0dc068a75cca3e1effc998fe50b8a7f4b65746cc653
size 4701609

37
gimp-gap-patch-source.sh Normal file
View File

@ -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"

51
gimp-gap-patched.patch Normal file
View File

@ -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 \

5
gimp-gap.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Jun 6 11:09:06 CEST 2008 - sbrabec@suse.cz
- New SuSE package, version 2.4.0.

134
gimp-gap.spec Normal file
View File

@ -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 <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.

7
pre_checkin.sh Normal file
View File

@ -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

0
ready Normal file
View File