rpms/xvidcore/F-14 xvidcore-noexec-stack.patch, 1.1, 1.2 xvidcore.spec, 1.6, 1.7
by Dominik Mierzejewski
Author: rathann
Update of /cvs/free/rpms/xvidcore/F-14
In directory se02.es.rpmfusion.net:/tmp/cvs-serv32251
Modified Files:
xvidcore-noexec-stack.patch xvidcore.spec
Log Message:
* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.2.2-2
- fix noexec stack issue on i686 (bug #1560)
- drop non-standard CFLAGS addition
xvidcore-noexec-stack.patch:
build/generic/configure | 2 +-
build/generic/configure.in | 2 +-
src/bitstream/x86_asm/cbp_mmx.asm | 6 +-----
src/bitstream/x86_asm/cbp_sse2.asm | 6 +-----
src/dct/x86_asm/fdct_mmx_ffmpeg.asm | 5 +----
src/dct/x86_asm/fdct_mmx_skal.asm | 5 +----
src/dct/x86_asm/fdct_sse2_skal.asm | 5 +----
src/dct/x86_asm/idct_3dne.asm | 6 +-----
src/dct/x86_asm/idct_mmx.asm | 6 +-----
src/dct/x86_asm/idct_sse2_dmitry.asm | 6 +-----
src/image/x86_asm/colorspace_rgb_mmx.asm | 6 +-----
src/image/x86_asm/colorspace_yuv_mmx.asm | 5 +----
src/image/x86_asm/colorspace_yuyv_mmx.asm | 5 +----
src/image/x86_asm/deintl_sse.asm | 5 +----
src/image/x86_asm/gmc_mmx.asm | 5 +----
src/image/x86_asm/interpolate8x8_3dn.asm | 6 +-----
src/image/x86_asm/interpolate8x8_3dne.asm | 6 +-----
src/image/x86_asm/interpolate8x8_mmx.asm | 6 +-----
src/image/x86_asm/interpolate8x8_xmm.asm | 6 +-----
src/image/x86_asm/postprocessing_mmx.asm | 5 +----
src/image/x86_asm/postprocessing_sse2.asm | 5 +----
src/image/x86_asm/qpel_mmx.asm | 5 +----
src/image/x86_asm/reduced_mmx.asm | 6 +-----
src/motion/x86_asm/sad_3dn.asm | 6 +-----
src/motion/x86_asm/sad_3dne.asm | 6 +-----
src/motion/x86_asm/sad_mmx.asm | 6 +-----
src/motion/x86_asm/sad_sse2.asm | 6 +-----
src/motion/x86_asm/sad_xmm.asm | 6 +-----
src/nasm.inc | 9 +++++++++
src/plugins/x86_asm/plugin_ssim-a.asm | 4 +---
src/quant/x86_asm/quantize_h263_3dne.asm | 5 +----
src/quant/x86_asm/quantize_h263_mmx.asm | 6 +-----
src/quant/x86_asm/quantize_mpeg_mmx.asm | 6 +-----
src/quant/x86_asm/quantize_mpeg_xmm.asm | 6 +-----
src/utils/x86_asm/cpuid.asm | 5 +----
src/utils/x86_asm/interlacing_mmx.asm | 6 +-----
src/utils/x86_asm/mem_transfer_3dne.asm | 6 +-----
src/utils/x86_asm/mem_transfer_mmx.asm | 6 +-----
38 files changed, 46 insertions(+), 163 deletions(-)
Index: xvidcore-noexec-stack.patch
===================================================================
RCS file: /cvs/free/rpms/xvidcore/F-14/xvidcore-noexec-stack.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xvidcore-noexec-stack.patch 12 Dec 2010 02:35:23 -0000 1.1
+++ xvidcore-noexec-stack.patch 10 Jan 2011 20:10:38 -0000 1.2
@@ -1,3 +1,27 @@
+diff -up xvidcore/build/generic/configure.in.noexec xvidcore/build/generic/configure.in
+--- xvidcore/build/generic/configure.in.noexec 2010-12-31 11:53:22.000000000 +0100
++++ xvidcore/build/generic/configure.in 2011-01-10 20:13:36.000000000 +0100
+@@ -271,7 +271,7 @@ case "$target_os" in
+ AC_MSG_RESULT([ok])
+ STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)"
+ SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR).\$(API_MINOR)"
+- SPECIFIC_LDFLAGS="-Wl,-soname,libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -shared -Wl,--version-script=libxvidcore.ld -lc -lm"
++ SPECIFIC_LDFLAGS="-Wl,-soname,libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -shared -Wl,--version-script=libxvidcore.ld,-z,noexecstack -lc -lm"
+ SPECIFIC_CFLAGS="-fPIC"
+ ;;
+ *bsd*|irix*)
+diff -up xvidcore/build/generic/configure.noexec xvidcore/build/generic/configure
+--- xvidcore/build/generic/configure.noexec 2010-12-31 11:53:22.000000000 +0100
++++ xvidcore/build/generic/configure 2011-01-10 20:13:49.000000000 +0100
+@@ -3851,7 +3851,7 @@ case "$target_os" in
+ echo "${ECHO_T}ok" >&6
+ STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)"
+ SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR).\$(API_MINOR)"
+- SPECIFIC_LDFLAGS="-Wl,-soname,libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -shared -Wl,--version-script=libxvidcore.ld -lc -lm"
++ SPECIFIC_LDFLAGS="-Wl,-soname,libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR) -shared -Wl,--version-script=libxvidcore.ld,-z,noexecstack -lc -lm"
+ SPECIFIC_CFLAGS="-fPIC"
+ ;;
+ *bsd*|irix*)
diff -up xvidcore/src/bitstream/x86_asm/cbp_mmx.asm.noexec-stack xvidcore/src/bitstream/x86_asm/cbp_mmx.asm
--- xvidcore/src/bitstream/x86_asm/cbp_mmx.asm.noexec-stack 2009-05-28 10:42:37.000000000 +0200
+++ xvidcore/src/bitstream/x86_asm/cbp_mmx.asm 2010-12-12 03:21:50.000000000 +0100
Index: xvidcore.spec
===================================================================
RCS file: /cvs/free/rpms/xvidcore/F-14/xvidcore.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- xvidcore.spec 12 Dec 2010 02:35:23 -0000 1.6
+++ xvidcore.spec 10 Jan 2011 20:10:38 -0000 1.7
@@ -1,6 +1,6 @@
Name: xvidcore
Version: 1.2.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MPEG-4 Simple and Advanced Simple Profile codec
Group: System Environment/Libraries
@@ -44,7 +44,6 @@
%build
cd build/generic
-export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
%configure
make %{?_smp_mflags}
cd -
@@ -83,6 +82,10 @@
%changelog
+* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.2.2-2
+- fix noexec stack issue on i686 (bug #1560)
+- drop non-standard CFLAGS addition
+
* Sat Dec 11 2010 Dominik Mierzejewski <rpm at greysector.net> - 1.2.2-1
- 1.2.2
- rebase noexec-stack patch
13 years, 10 months
rpms/xvidcore/devel .cvsignore, 1.5, 1.6 sources, 1.5, 1.6 xvidcore.spec, 1.6, 1.7
by Dominik Mierzejewski
Author: rathann
Update of /cvs/free/rpms/xvidcore/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv28922
Modified Files:
.cvsignore sources xvidcore.spec
Log Message:
* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.3.0-0.1.rc1
- 1.3.0-rc1
- drop upstreamed noexec stack patch
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/xvidcore/devel/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- .cvsignore 12 Dec 2010 02:36:07 -0000 1.5
+++ .cvsignore 10 Jan 2011 19:17:08 -0000 1.6
@@ -1 +1 @@
-xvidcore-1.2.2.tar.bz2
+xvidcore-1.3.0-rc1.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/free/rpms/xvidcore/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- sources 12 Dec 2010 02:36:07 -0000 1.5
+++ sources 10 Jan 2011 19:17:08 -0000 1.6
@@ -1 +1 @@
-6a3473a12c8a1fa7bdc2b5cb829fab58 xvidcore-1.2.2.tar.bz2
+ab447a893e6dbfa556a7eb7043979d96 xvidcore-1.3.0-rc1.tar.bz2
Index: xvidcore.spec
===================================================================
RCS file: /cvs/free/rpms/xvidcore/devel/xvidcore.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- xvidcore.spec 12 Dec 2010 02:36:07 -0000 1.6
+++ xvidcore.spec 10 Jan 2011 19:17:08 -0000 1.7
@@ -1,13 +1,14 @@
+%global pre -rc1
+
Name: xvidcore
-Version: 1.2.2
-Release: 1%{?dist}
+Version: 1.3.0
+Release: 0.1.rc1%{?dist}
Summary: MPEG-4 Simple and Advanced Simple Profile codec
Group: System Environment/Libraries
License: GPLv2+
URL: http://www.xvid.org/
-Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2
-Patch0: xvidcore-noexec-stack.patch
+Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}%{pre}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%ifarch %{ix86} x86_64
@@ -35,7 +36,6 @@
%prep
%setup -q -n %{name}
-%patch0 -p1 -z .noexec-stack
chmod -x examples/*.pl
f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f
# Yes, we want to see the build output.
@@ -83,6 +83,10 @@
%changelog
+* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.3.0-0.1.rc1
+- 1.3.0-rc1
+- drop upstreamed noexec stack patch
+
* Sat Dec 11 2010 Dominik Mierzejewski <rpm at greysector.net> - 1.2.2-1
- 1.2.2
- rebase noexec-stack patch
13 years, 10 months
rpms/mplayer/devel mplayer-ffmpeg.patch, NONE, 1.1 mplayer-libvorbis.patch, NONE, 1.1 .cvsignore, 1.20, 1.21 mplayer-config.patch, 1.3, 1.4 mplayer-nodvdcss.patch, 1.8, 1.9 mplayer-snapshot.sh, 1.6, 1.7 mplayer.spec, 1.33, 1.34 sources, 1.21, 1.22
by Dominik Mierzejewski
Author: rathann
Update of /cvs/free/rpms/mplayer/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv26952
Modified Files:
.cvsignore mplayer-config.patch mplayer-nodvdcss.patch
mplayer-snapshot.sh mplayer.spec sources
Added Files:
mplayer-ffmpeg.patch mplayer-libvorbis.patch
Log Message:
* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.120.20110110svn
- 20110110 snapshot
- enabled BluRay, bzip2, libgsm, rtmp support
- DGA support is now a build-time option
- build against system FFmpeg (experimental!)
(drop direct opencore-amr and schroedinger linking)
mplayer-ffmpeg.patch:
Makefile | 2
configure | 5 +-
ffmpeg/libavformat/riff.h | 41 ++++++++++++++++++
ffmpeg/libavutil/aes.h | 47 +++++++++++++++++++++
ffmpeg/libavutil/sha.h | 56 +++++++++++++++++++++++++
ffmpeg/libavutil/x86_cpu.h | 98 +++++++++++++++++++++++++++++++++++++++++++++
libmpcodecs/vf_pp.c | 2
7 files changed, 247 insertions(+), 4 deletions(-)
--- NEW FILE mplayer-ffmpeg.patch ---
diff -up mplayer-export-2011-01-10/configure.ffmpeg mplayer-export-2011-01-10/configure
--- mplayer-export-2011-01-10/configure.ffmpeg 2011-01-10 19:04:02.000000000 +0100
+++ mplayer-export-2011-01-10/configure 2011-01-10 19:05:23.000000000 +0100
@@ -6866,7 +6866,8 @@ elif test "$ffmpeg_so" = auto ; then
inc_ffmpeg=$($_pkg_config --cflags libpostproc libswscale libavformat libavcodec libavutil libavcore)
_ld_tmp=$($_pkg_config --libs libpostproc libswscale libavformat libavcodec libavutil libavcore)
header_check libavcore/avcore.h $inc_ffmpeg $_ld_tmp &&
- extra_ldflags="$extra_ldflags $_ld_tmp" && ffmpeg_so=yes && ffmpeg=yes
+ extra_ldflags="$extra_ldflags $_ld_tmp" && ffmpeg_so=yes && ffmpeg=yes &&
+ extra_cflags="$extra_cflags $inc_ffmpeg"
elif header_check libavcore/avcore.h -lpostproc -lswscale -lavformat -lavcodec -lavutil -lavcore $_ld_lm ; then
extra_ldflags="$extra_ldflags -lpostproc -lswscale -lavformat -lavcodec -lavutil -lavcore"
ffmpeg_so=yes
@@ -7553,7 +7554,7 @@ if test "$_gui" = yes ; then
# Required libraries
if test "$ffmpeg" != yes ||
- ! echo $libavdecoders | grep -q PNG_DECODER ; then
+ ! objdump -T $_libdir/libavcodec.so | grep -q png_decoder ; then
die "The GUI requires libavcodec with PNG support (needs zlib)."
fi
test "$_freetype" = no && test "$_bitmap_font" = no &&
diff -up mplayer-export-2011-01-10/ffmpeg/libavformat/riff.h.ffmpeg mplayer-export-2011-01-10/ffmpeg/libavformat/riff.h
--- mplayer-export-2011-01-10/ffmpeg/libavformat/riff.h.ffmpeg 2011-01-10 19:04:02.000000000 +0100
+++ mplayer-export-2011-01-10/ffmpeg/libavformat/riff.h 2011-01-10 19:05:57.000000000 +0100
@@ -0,0 +1,41 @@
+/*
+ * RIFF codec tags
+ * copyright (c) 2000 Fabrice Bellard
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+/**
+ * @file
+ * internal header for RIFF based (de)muxers
+ * do NOT include this in end user applications
+ */
+
+#ifndef AVFORMAT_RIFF_H
+#define AVFORMAT_RIFF_H
+
+#include "libavcodec/avcodec.h"
+
+typedef struct AVCodecTag {
+ enum CodecID id;
+ unsigned int tag;
+} AVCodecTag;
+
+extern const AVCodecTag ff_codec_bmp_tags[];
+extern const AVCodecTag ff_codec_wav_tags[];
+
+#endif /* AVFORMAT_RIFF_H */
diff -up mplayer-export-2011-01-10/ffmpeg/libavutil/aes.h.ffmpeg mplayer-export-2011-01-10/ffmpeg/libavutil/aes.h
--- mplayer-export-2011-01-10/ffmpeg/libavutil/aes.h.ffmpeg 2011-01-10 19:04:02.000000000 +0100
+++ mplayer-export-2011-01-10/ffmpeg/libavutil/aes.h 2011-01-10 19:04:02.000000000 +0100
@@ -0,0 +1,47 @@
+/*
+ * copyright (c) 2007 Michael Niedermayer <michaelni(a)gmx.at>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVUTIL_AES_H
+#define AVUTIL_AES_H
+
+#include <stdint.h>
+
+extern const int av_aes_size;
+
+struct AVAES;
+
+/**
+ * Initialize an AVAES context.
+ * @param key_bits 128, 192 or 256
+ * @param decrypt 0 for encryption, 1 for decryption
+ */
+int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt);
+
+/**
+ * Encrypt or decrypt a buffer using a previously initialized context.
+ * @param count number of 16 byte blocks
+ * @param dst destination array, can be equal to src
+ * @param src source array, can be equal to dst
+ * @param iv initialization vector for CBC mode, if NULL then ECB will be used
+ * @param decrypt 0 for encryption, 1 for decryption
+ */
+void av_aes_crypt(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
+
+#endif /* AVUTIL_AES_H */
diff -up mplayer-export-2011-01-10/ffmpeg/libavutil/sha.h.ffmpeg mplayer-export-2011-01-10/ffmpeg/libavutil/sha.h
--- mplayer-export-2011-01-10/ffmpeg/libavutil/sha.h.ffmpeg 2011-01-10 19:04:02.000000000 +0100
+++ mplayer-export-2011-01-10/ffmpeg/libavutil/sha.h 2011-01-10 19:04:02.000000000 +0100
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2007 Michael Niedermayer <michaelni(a)gmx.at>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVUTIL_SHA_H
+#define AVUTIL_SHA_H
+
+#include <stdint.h>
+
+extern const int av_sha_size;
+
+struct AVSHA;
+
+/**
+ * Initialize SHA-1 or SHA-2 hashing.
+ *
+ * @param context pointer to the function context (of size av_sha_size)
+ * @param bits number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits)
+ * @return zero if initialization succeeded, -1 otherwise
+ */
+int av_sha_init(struct AVSHA* context, int bits);
+
+/**
+ * Update hash value.
+ *
+ * @param context hash function context
+ * @param data input data to update hash with
+ * @param len input data length
+ */
+void av_sha_update(struct AVSHA* context, const uint8_t* data, unsigned int len);
+
+/**
+ * Finish hashing and output digest value.
+ *
+ * @param context hash function context
+ * @param digest buffer where output digest value is stored
+ */
+void av_sha_final(struct AVSHA* context, uint8_t *digest);
+
+#endif /* AVUTIL_SHA_H */
diff -up mplayer-export-2011-01-10/ffmpeg/libavutil/x86_cpu.h.ffmpeg mplayer-export-2011-01-10/ffmpeg/libavutil/x86_cpu.h
--- mplayer-export-2011-01-10/ffmpeg/libavutil/x86_cpu.h.ffmpeg 2011-01-10 19:04:02.000000000 +0100
+++ mplayer-export-2011-01-10/ffmpeg/libavutil/x86_cpu.h 2011-01-10 19:04:02.000000000 +0100
@@ -0,0 +1,98 @@
+/*
+ * copyright (c) 2006 Michael Niedermayer <michaelni(a)gmx.at>
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVUTIL_X86_CPU_H
+#define AVUTIL_X86_CPU_H
+
+#include <stdint.h>
+#include "config.h"
+
+#if ARCH_X86_64
+# define OPSIZE "q"
+# define REG_a "rax"
+# define REG_b "rbx"
+# define REG_c "rcx"
+# define REG_d "rdx"
+# define REG_D "rdi"
+# define REG_S "rsi"
+# define PTR_SIZE "8"
+typedef int64_t x86_reg;
+
+# define REG_SP "rsp"
+# define REG_BP "rbp"
+# define REGBP rbp
+# define REGa rax
+# define REGb rbx
+# define REGc rcx
+# define REGd rdx
+# define REGSP rsp
+
+#elif ARCH_X86_32
+
+# define OPSIZE "l"
+# define REG_a "eax"
+# define REG_b "ebx"
+# define REG_c "ecx"
+# define REG_d "edx"
+# define REG_D "edi"
+# define REG_S "esi"
+# define PTR_SIZE "4"
+typedef int32_t x86_reg;
+
+# define REG_SP "esp"
+# define REG_BP "ebp"
+# define REGBP ebp
+# define REGa eax
+# define REGb ebx
+# define REGc ecx
+# define REGd edx
+# define REGSP esp
+#else
+typedef int x86_reg;
+#endif
+
+#define HAVE_7REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE))
+#define HAVE_6REGS (ARCH_X86_64 || (HAVE_EBX_AVAILABLE || HAVE_EBP_AVAILABLE))
+
+#if ARCH_X86_64 && defined(PIC)
+# define BROKEN_RELOCATIONS 1
+#endif
+
+/*
+ * If gcc is not set to support sse (-msse) it will not accept xmm registers
+ * in the clobber list for inline asm. XMM_CLOBBERS takes a list of xmm
+ * registers to be marked as clobbered and evaluates to nothing if they are
+ * not supported, or to the list itself if they are supported. Since a clobber
+ * list may not be empty, XMM_CLOBBERS_ONLY should be used if the xmm
+ * registers are the only in the clobber list.
+ * For example a list with "eax" and "xmm0" as clobbers should become:
+ * : XMM_CLOBBERS("xmm0",) "eax"
+ * and a list with only "xmm0" should become:
+ * XMM_CLOBBERS_ONLY("xmm0")
+ */
+#if HAVE_XMM_CLOBBERS
+# define XMM_CLOBBERS(...) __VA_ARGS__
+# define XMM_CLOBBERS_ONLY(...) : __VA_ARGS__
+#else
+# define XMM_CLOBBERS(...)
+# define XMM_CLOBBERS_ONLY(...)
+#endif
+
+#endif /* AVUTIL_X86_CPU_H */
diff -up mplayer-export-2011-01-10/libmpcodecs/vf_pp.c.ffmpeg mplayer-export-2011-01-10/libmpcodecs/vf_pp.c
--- mplayer-export-2011-01-10/libmpcodecs/vf_pp.c.ffmpeg 2010-09-13 20:19:25.000000000 +0200
+++ mplayer-export-2011-01-10/libmpcodecs/vf_pp.c 2011-01-10 19:04:02.000000000 +0100
@@ -34,10 +34,10 @@
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
-#include "libavutil/internal.h"
#include "libpostproc/postprocess.h"
#ifdef CONFIG_FFMPEG_A
+#include "libavutil/internal.h"
#define EMU_OLD
#include "libpostproc/postprocess_internal.h"
#endif
diff -up mplayer-export-2011-01-10/Makefile.ffmpeg mplayer-export-2011-01-10/Makefile
--- mplayer-export-2011-01-10/Makefile.ffmpeg 2011-01-10 19:04:02.000000000 +0100
+++ mplayer-export-2011-01-10/Makefile 2011-01-10 19:04:02.000000000 +0100
@@ -810,7 +810,7 @@ mencoder$(EXESUF) mplayer$(EXESUF):
$(CC) -o $@ $^ $(EXTRALIBS)
codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
- $(HOST_CC) -O -DCODECS2HTML -I. -Iffmpeg -o $@ $<
+ $(HOST_CC) -O -DCODECS2HTML -I. -Iffmpeg $(CFLAGS) -o $@ $<
codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
./$^ > $@
mplayer-libvorbis.patch:
configure | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
--- NEW FILE mplayer-libvorbis.patch ---
diff -up mplayer-export-2010-12-04/configure.libvorbis mplayer-export-2010-12-04/configure
--- mplayer-export-2010-12-04/configure.libvorbis 2010-12-05 00:14:13.000000000 +0100
+++ mplayer-export-2010-12-04/configure 2010-12-05 00:16:53.000000000 +0100
@@ -659,6 +659,7 @@ _tremor=auto
_tremor_internal=yes
_tremor_low=no
_libvorbis=auto
+_libvorbisenc=auto
_speex=auto
_libgsm=auto
_theora=auto
@@ -6315,7 +6316,7 @@ if test "$_toolamedir" ; then
fi
echores "$_toolame"
-echocheck "OggVorbis support"
+echocheck "OggVorbis decoding support"
if test "$_tremor_internal" = yes; then
_libvorbis=no
elif test "$_tremor" = auto; then
@@ -6328,6 +6329,7 @@ if test "$_libvorbis" = auto; then
fi
if test "$_tremor_internal" = yes ; then
_vorbis=yes
+ def_libvorbis='#define CONFIG_LIBVORBIS 0'
def_vorbis='#define CONFIG_OGGVORBIS 1'
def_tremor='#define CONFIG_TREMOR 1'
codecmodules="tremor(internal) $codecmodules"
@@ -6338,6 +6340,7 @@ if test "$_tremor_internal" = yes ; then
fi
elif test "$_tremor" = yes ; then
_vorbis=yes
+ def_libvorbis='#define CONFIG_LIBVORBIS 0'
def_vorbis='#define CONFIG_OGGVORBIS 1'
def_tremor='#define CONFIG_TREMOR 1'
codecmodules="tremor(external) $codecmodules"
@@ -6345,17 +6348,32 @@ elif test "$_tremor" = yes ; then
extra_ldflags="$extra_ldflags -logg -lvorbisidec"
elif test "$_libvorbis" = yes ; then
_vorbis=yes
+ def_libvorbis='#define CONFIG_LIBVORBIS 1'
def_vorbis='#define CONFIG_OGGVORBIS 1'
codecmodules="libvorbis $codecmodules"
res_comment="libvorbis"
extra_ldflags="$extra_ldflags -lvorbis -logg"
- libavencoders="$libavencoders LIBVORBIS_ENCODER"
else
_vorbis=no
nocodecmodules="libvorbis $nocodecmodules"
fi
echores "$_vorbis"
+echocheck "OggVorbis encoding support"
+if test "$_libvorbisenc" = auto; then
+ _libvorbisenc=no
+ statement_check vorbis/vorbisenc.h 'vorbis_encode_init(NULL, 0, 0, 0, 0, 0)' -lvorbisenc -lvorbis -logg $_ld_lm && _libvorbisenc=yes
+fi
+if test "$_libvorbisenc" = yes ; then
+ _vorbisenc=yes
+ res_comment="libvorbisenc"
+ extra_ldflags="$extra_ldflags -lvorbisenc -lvorbis -logg"
+ libavencoders="$libavencoders LIBVORBIS_ENCODER"
+else
+ _vorbisenc=no
+fi
+echores "$_vorbisenc"
+
echocheck "libspeex (version >= 1.1 required)"
if test "$_speex" = auto ; then
_speex=no
@@ -8725,7 +8743,7 @@ $def_yasm
#define CONFIG_FFSERVER 0
#define CONFIG_GPL 1
#define CONFIG_GRAY 0
-#define CONFIG_LIBVORBIS 0
+$def_libvorbis
#define CONFIG_POWERPC_PERF 0
#define CONFIG_SHARED 0
#define CONFIG_SMALL 0
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/.cvsignore,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- .cvsignore 6 Jul 2010 18:08:21 -0000 1.20
+++ .cvsignore 10 Jan 2011 18:48:43 -0000 1.21
@@ -1,2 +1,2 @@
Blue-1.7.tar.bz2
-mplayer-export-2010-07-03.tar.bz2
+mplayer-export-2011-01-10.tar.bz2
mplayer-config.patch:
example.conf | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
Index: mplayer-config.patch
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/mplayer-config.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mplayer-config.patch 30 Oct 2009 01:10:22 -0000 1.3
+++ mplayer-config.patch 10 Jan 2011 18:48:43 -0000 1.4
@@ -1,16 +1,16 @@
-diff -up mplayer-export-2009-10-29/etc/example.conf.config mplayer-export-2009-10-29/etc/example.conf
---- mplayer-export-2009-10-29/etc/example.conf.config 2008-02-08 19:33:39.000000000 +0100
-+++ mplayer-export-2009-10-29/etc/example.conf 2009-10-29 23:54:30.000000000 +0100
+diff -up mplayer-export-2011-01-10/etc/example.conf.config mplayer-export-2011-01-10/etc/example.conf
+--- mplayer-export-2011-01-10/etc/example.conf.config 2011-01-05 15:55:45.000000000 +0100
++++ mplayer-export-2011-01-10/etc/example.conf 2011-01-10 19:46:06.000000000 +0100
@@ -1,7 +1,7 @@
#
# MPlayer configuration file
#
-# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
+# Configuration files are read system-wide from /etc/mplayer/mplayer.conf
- # and per user from ~/.mplayer/config, where per-user settings override
+ # and per-user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
-@@ -71,7 +71,7 @@
+@@ -74,7 +74,7 @@
##################
# Specify default audio driver (see -ao help for a list).
@@ -19,7 +19,7 @@
# Use SDL audio driver with the esd subdriver by default.
#ao = sdl:esd
-@@ -95,7 +95,7 @@
+@@ -114,7 +114,7 @@
#framedrop = yes
# Specify your preferred skin here (skins are searched for in
@@ -28,7 +28,7 @@
#skin = Abyss
# Resample the font alphamap.
-@@ -105,6 +105,15 @@
+@@ -124,6 +124,15 @@
# 10 bold black outline
#ffactor = 0.75
@@ -44,7 +44,7 @@
# cache settings
#
# Use 8MB input cache by default.
-@@ -122,6 +131,12 @@
+@@ -141,6 +150,11 @@
# DVD: Play English audio tracks if available.
#alang = en
@@ -53,7 +53,6 @@
+
+# Inhibit (a XScrnSaver compatible) screensaver while playing a movie
+stop-xscreensaver = yes
-+
- ###################
- # DVDNAV Settings #
- ###################
+
+ ############
+ # Profiles #
mplayer-nodvdcss.patch:
Makefile | 7 -------
configure | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
Index: mplayer-nodvdcss.patch
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/mplayer-nodvdcss.patch,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- mplayer-nodvdcss.patch 3 Jul 2010 17:06:10 -0000 1.8
+++ mplayer-nodvdcss.patch 10 Jan 2011 18:48:43 -0000 1.9
@@ -1,7 +1,7 @@
-diff -up mplayer-export-2010-07-03/configure.nodvdcss mplayer-export-2010-07-03/configure
---- mplayer-export-2010-07-03/configure.nodvdcss 2010-07-02 18:52:32.000000000 +0200
-+++ mplayer-export-2010-07-03/configure 2010-07-03 18:00:01.000000000 +0200
-@@ -677,7 +677,7 @@ _dvdnavconfig=dvdnav-config
+diff -up mplayer-export-2011-01-10/configure.nodvdcss mplayer-export-2011-01-10/configure
+--- mplayer-export-2011-01-10/configure.nodvdcss 2011-01-06 13:42:59.000000000 +0100
++++ mplayer-export-2011-01-10/configure 2011-01-10 19:02:59.000000000 +0100
+@@ -689,7 +689,7 @@ _dvdnavconfig=dvdnav-config
_dvdreadconfig=dvdread-config
_dvdread=auto
_dvdread_internal=auto
@@ -10,10 +10,10 @@
_xanim=auto
_real=auto
_live=auto
-diff -up mplayer-export-2010-07-03/Makefile.nodvdcss mplayer-export-2010-07-03/Makefile
---- mplayer-export-2010-07-03/Makefile.nodvdcss 2010-07-03 18:00:01.000000000 +0200
-+++ mplayer-export-2010-07-03/Makefile 2010-07-03 18:00:26.000000000 +0200
-@@ -146,11 +146,6 @@ SRCS_COMMON-$(LIBDCA) +=
+diff -up mplayer-export-2011-01-10/Makefile.nodvdcss mplayer-export-2011-01-10/Makefile
+--- mplayer-export-2011-01-10/Makefile.nodvdcss 2011-01-10 19:02:59.000000000 +0100
++++ mplayer-export-2011-01-10/Makefile 2011-01-10 19:03:25.000000000 +0100
+@@ -111,11 +111,6 @@ SRCS_COMMON-$(LIBDCA) +=
SRCS_COMMON-$(LIBDV) += libmpcodecs/ad_libdv.c \
libmpcodecs/vd_libdv.c \
libmpdemux/demux_rawdv.c
@@ -25,19 +25,19 @@
SRCS_COMMON-$(LIBMAD) += libmpcodecs/ad_libmad.c
-@@ -764,7 +759,6 @@ DIRS = . \
- libavutil/sh4 \
- libavutil/tomi \
- libavutil/x86 \
+@@ -742,7 +737,6 @@ DIRS = . \
+ libaf \
+ libao2 \
+ libass \
- libdvdcss \
libdvdnav \
libdvdnav/vm \
libdvdread4 \
-@@ -887,7 +881,6 @@ $(call ADDSUFFIXES,.d .o,mpcommon osdep/
+@@ -858,7 +852,6 @@ osdep/mplayer-rc.o: osdep/mplayer.exe.ma
gui/%: CFLAGS += -Wno-strict-prototypes
--libdvdcss/%: CFLAGS := -Ilibdvdcss -D__USE_UNIX98 -D_GNU_SOURCE -DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS) $(CFLAGS)
- libdvdnav/%: CFLAGS := -Ilibdvdnav -D__USE_UNIX98 -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\" $(CFLAGS)
- libdvdread4/%: CFLAGS := -Ilibdvdread4 -D__USE_UNIX98 -D_GNU_SOURCE $(CFLAGS_LIBDVDCSS_DVDREAD) $(CFLAGS)
- libfaad2/%: CFLAGS := -Ilibfaad2 -D_GNU_SOURCE -DHAVE_CONFIG_H $(CFLAGS_FAAD_FIXED) $(CFLAGS)
+-libdvdcss/%: CFLAGS := -Ilibdvdcss -D_GNU_SOURCE -DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS) $(CFLAGS)
+ libdvdnav/%: CFLAGS := -Ilibdvdnav -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\" $(CFLAGS)
+ libdvdread4/%: CFLAGS := -Ilibdvdread4 -D_GNU_SOURCE $(CFLAGS_LIBDVDCSS_DVDREAD) $(CFLAGS)
+
Index: mplayer-snapshot.sh
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/mplayer-snapshot.sh,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mplayer-snapshot.sh 30 Oct 2009 01:10:22 -0000 1.6
+++ mplayer-snapshot.sh 10 Jan 2011 18:48:43 -0000 1.7
@@ -13,19 +13,16 @@
unset CDPATH
pwd=$(pwd)
svn=$(date +%Y-%m-%d)
+#svn=2010-12-05
dirname=mplayer-export-$svn
mplayer_rev={$svn}
+#mplayer_rev=HEAD
cd "$tmp"
-svn checkout -r ${mplayer_rev} svn://svn.mplayerhq.hu/mplayer/trunk $dirname
+svn checkout --ignore-externals -r ${mplayer_rev} svn://svn.mplayerhq.hu/mplayer/trunk $dirname
cd $dirname
-rm -rf libdvdcss
-for dir in libav* libdvd* libpostproc ; do
- cd $dir
- svn update -r ${mplayer_rev}
- cd ..
-done
+rm -rf libdvdcss libswscale
svn_revision=`LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
sed -i -e 's/\(SVN-r[0-9]* \)/\1rpmfusion /' -e "s/UNKNOWN/SVN-r$svn_revision/" version.sh
Index: mplayer.spec
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/mplayer.spec,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- mplayer.spec 6 Jul 2010 18:08:30 -0000 1.33
+++ mplayer.spec 10 Jan 2011 18:48:43 -0000 1.34
@@ -1,12 +1,12 @@
%define codecdir %{_libdir}/codecs
-%define pre 20100703svn
+%define pre 20110110svn
%define svn 1
-%define svnbuild 2010-07-03
+%define svnbuild 2011-01-10
%define faad2min 1:2.6.1
Name: mplayer
Version: 1.0
-Release: 0.119.%{pre}%{?dist}
+Release: 0.120.%{pre}%{?dist}
Summary: Movie player playing most video formats and DVDs
Group: Applications/Multimedia
@@ -27,21 +27,26 @@
Patch2: %{name}-config.patch
Patch8: %{name}-manlinks.patch
Patch14: %{name}-nodvdcss.patch
+Patch17: %{name}-libvorbis.patch
+Patch18: %{name}-ffmpeg.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel
BuildRequires: a52dec-devel
BuildRequires: aalib-devel
+BuildRequires: bzip2-devel
BuildRequires: alsa-lib-devel
BuildRequires: cdparanoia-devel
BuildRequires: desktop-file-utils
BuildRequires: em8300-devel
BuildRequires: enca-devel
BuildRequires: faad2-devel >= %{faad2min}
+BuildRequires: ffmpeg-devel
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel >= 2.0.9
BuildRequires: fribidi-devel
BuildRequires: giflib-devel
+BuildRequires: gsm-devel
BuildRequires: gtk2-devel
BuildRequires: ladspa-devel
BuildRequires: lame-devel
@@ -50,8 +55,9 @@
BuildRequires: libXScrnSaver-devel
BuildRequires: libXv-devel
BuildRequires: libXvMC-devel
-BuildRequires: libXxf86dga-devel
BuildRequires: libXxf86vm-devel
+BuildRequires: libass-devel >= 0.9.10
+BuildRequires: libbluray-devel
BuildRequires: libcaca-devel
BuildRequires: libdca-devel
BuildRequires: libdv-devel
@@ -59,6 +65,7 @@
BuildRequires: libjpeg-devel
BuildRequires: libmpcdec-devel
BuildRequires: libmpeg2-devel
+BuildRequires: librtmp-devel
BuildRequires: libtheora-devel
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
@@ -67,14 +74,13 @@
BuildRequires: live555-devel
BuildRequires: lzo-devel >= 2
BuildRequires: pulseaudio-lib-devel
-BuildRequires: schroedinger-devel
BuildRequires: speex-devel >= 1.1
BuildRequires: twolame-devel
BuildRequires: x264-devel >= 0.0.0-0.28
BuildRequires: xvidcore-devel >= 0.9.2
BuildRequires: yasm
%{?_with_arts:BuildRequires: arts-devel}
-%{!?_without_amr:BuildRequires: opencore-amr-devel}
+%{?_with_dga:BuildRequires: libXxf86dga-devel}
%{?_with_directfb:BuildRequires: directfb-devel}
%{?_with_esound:BuildRequires: esound-devel}
%{?_with_faac:BuildRequires: faac-devel}
@@ -114,6 +120,7 @@
--with jack: Enable JACK support
--with arts: Enable aRts support
--with esound: Enable EsounD support
+--with dga: Enable DGA support
--with directfb:Enable DirectFB support
--with svgalib: Enable SVGAlib support
--with nemesi: Enable libnemesi RTSP support
@@ -185,13 +192,10 @@
%{!?_with_nemesi:--disable-nemesi} \\\
%{!?_with_samba:--disable-smb} \\\
\\\
- --disable-faac-lavc \\\
- --disable-mp3lame-lavc \\\
- --disable-x264-lavc \\\
+ --disable-ffmpeg_a \\\
\\\
%{?_without_amr:--disable-libopencore_amrnb --disable-libopencore_amrwb} \\\
%{!?_with_faac:--disable-faac} \\\
- --disable-faad-internal \\\
%{!?_with_libmad:--disable-mad} \\\
--disable-libmpeg2-internal \\\
--disable-tremor-internal \\\
@@ -199,6 +203,7 @@
%{?_with_xmms:--with-xmmslibdir=%{_libdir}} \\\
\\\
--disable-bitmap-font \\\
+ %{!?_with_dga:--disable-dga1 --disable-dga2} \\\
--%{?_with_directfb:enable}%{!?_with_directfb:disable}-directfb \\\
%{!?_with_svgalib:--disable-svga} \\\
--disable-termcap \\\
@@ -220,6 +225,8 @@
%patch2 -p1 -b .config
%patch8 -p1 -b .manlinks
%patch14 -p1 -b .nodvdcss
+%patch17 -p1 -b .libvorbis
+%patch18 -p1 -b .ffmpeg
doconv() {
iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
@@ -236,12 +243,12 @@
pushd GUI
%{mp_configure}--enable-gui --disable-mencoder
-%{__make} %{?_smp_mflags}
+%{__make} V=1 %{?_smp_mflags}
popd
%{mp_configure}
-%{__make} %{?_smp_mflags}
+%{__make} V=1 %{?_smp_mflags}
%if %{svn}
# build HTML documentation from XML files
@@ -392,6 +399,13 @@
%{_datadir}/mplayer/*.fp
%changelog
+* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.120.20110110svn
+- 20110110 snapshot
+- enabled BluRay, bzip2, libgsm, rtmp support
+- DGA support is now a build-time option
+- build against system FFmpeg (experimental!)
+ (drop direct opencore-amr and schroedinger linking)
+
* Sat Jul 03 2010 Dominik Mierzejewski <rpm at greysector.net> - 1.0-0.119.20100703svn
- rebuild against latest x264
Index: sources
===================================================================
RCS file: /cvs/free/rpms/mplayer/devel/sources,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- sources 6 Jul 2010 18:08:21 -0000 1.21
+++ sources 10 Jan 2011 18:48:43 -0000 1.22
@@ -1,2 +1,2 @@
e4e2020d11b681aac898103b3ba723c4 Blue-1.7.tar.bz2
-6169cad296bd67c399fd3dc18cca71aa mplayer-export-2010-07-03.tar.bz2
+d1c8316979ec850a8b345a08775739e7 mplayer-export-2011-01-10.tar.bz2
13 years, 10 months
rpms/ffmpeg/devel .cvsignore, 1.17, 1.18 ffmpeg-snapshot.sh, 1.6, 1.7 ffmpeg.spec, 1.34, 1.35 sources, 1.17, 1.18
by Dominik Mierzejewski
Author: rathann
Update of /cvs/free/rpms/ffmpeg/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv11240
Modified Files:
.cvsignore ffmpeg-snapshot.sh ffmpeg.spec sources
Log Message:
* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 0.6.1-1.20110110svn
- 20110110 snapshot
- bump version to post-0.6.1 to allow stable 0.6.1 update in older branches
- drop --with amr->opencore_amr indirection
- add qt-faststart tool (bug #1259)
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/ffmpeg/devel/.cvsignore,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- .cvsignore 4 Jul 2010 22:19:26 -0000 1.17
+++ .cvsignore 10 Jan 2011 14:49:29 -0000 1.18
@@ -1 +1 @@
-ffmpeg-20100704.tar.bz2
+ffmpeg-20110110.tar.bz2
Index: ffmpeg-snapshot.sh
===================================================================
RCS file: /cvs/free/rpms/ffmpeg/devel/ffmpeg-snapshot.sh,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ffmpeg-snapshot.sh 16 Jan 2010 17:20:07 -0000 1.6
+++ ffmpeg-snapshot.sh 10 Jan 2011 14:49:29 -0000 1.7
@@ -22,9 +22,6 @@
pushd libswscale
svn update -r $svn libswscale
popd
-./version.sh . version.h
-find . -type d -name .svn -print0 | xargs -0r rm -rf
-sed -i -e '/^\.PHONY: version\.h$/d' Makefile
cd ..
tar jcf "$pwd"/ffmpeg-$date.tar.bz2 ffmpeg-$date
cd - >/dev/null
Index: ffmpeg.spec
===================================================================
RCS file: /cvs/free/rpms/ffmpeg/devel/ffmpeg.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ffmpeg.spec 21 Jul 2010 17:03:57 -0000 1.34
+++ ffmpeg.spec 10 Jan 2011 14:49:29 -0000 1.35
@@ -1,15 +1,12 @@
# TODO: add make test to %%check section
-%global svn 20100704
-%{?_with_amr:
-%global _with_opencore_amr 1
-}
+%global svn 20110110
Summary: Digital VCR and streaming server
Name: ffmpeg
-Version: 0.6
-Release: 4.%{svn}svn%{?dist}
-%if 0%{?_with_opencore_amr:1}
+Version: 0.6.1
+Release: 1.%{svn}svn%{?dist}
+%if 0%{?_with_amr:1}
License: GPLv3+
%else
License: GPLv2+
@@ -32,11 +29,12 @@
BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel
BuildRequires: libvpx-devel >= 0.9.1
-%{?_with_opencore_amr:BuildRequires: opencore-amr-devel}
+%{?_with_amr:BuildRequires: opencore-amr-devel}
BuildRequires: openjpeg-devel
BuildRequires: schroedinger-devel
BuildRequires: SDL-devel
BuildRequires: speex-devel
+BuildRequires: subversion
BuildRequires: texi2html
BuildRequires: x264-devel >= 0.0.0-0.28
BuildRequires: xvidcore-devel
@@ -86,7 +84,7 @@
--arch=%{_target_cpu} \\\
--extra-cflags="$RPM_OPT_FLAGS" \\\
--extra-version=rpmfusion \\\
- %{?_with_opencore_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \\\
+ %{?_with_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \\\
--enable-bzlib \\\
--enable-libdc1394 \\\
--enable-libdirac \\\
@@ -104,7 +102,6 @@
--enable-libxvid \\\
--enable-x11grab \\\
--enable-avfilter \\\
- --enable-avfilter-lavf \\\
--enable-postproc \\\
--enable-pthreads \\\
--disable-static \\\
@@ -152,6 +149,7 @@
make %{?_smp_mflags}
make documentation
+make alltools
popd
%if 0%{!?ffmpegsuffix:1}
@@ -175,6 +173,7 @@
rm -rf $RPM_BUILD_ROOT
pushd generic
make install DESTDIR=$RPM_BUILD_ROOT
+install -pm755 tools/qt-faststart $RPM_BUILD_ROOT%{_bindir}
popd
%if 0%{!?ffmpegsuffix:1}
pushd simd
@@ -200,6 +199,7 @@
%{_bindir}/ffplay
%{_bindir}/ffprobe
%{_bindir}/ffserver
+%{_bindir}/qt-faststart
%{_mandir}/man1/ffmpeg.1*
%{_mandir}/man1/ffplay.1*
%{_mandir}/man1/ffprobe.1*
@@ -230,6 +230,12 @@
%changelog
+* Mon Jan 10 2011 Dominik Mierzejewski <rpm at greysector.net> - 0.6.1-1.20110110svn
+- 20110110 snapshot
+- bump version to post-0.6.1 to allow stable 0.6.1 update in older branches
+- drop --with amr->opencore_amr indirection
+- add qt-faststart tool (bug #1259)
+
* Wed Jul 21 2010 Nicolas Chauvet <kwizart(a)gmail.com> - 0.6-4.20100704svn
- Enable libva
- Restore compatibility --with amr
Index: sources
===================================================================
RCS file: /cvs/free/rpms/ffmpeg/devel/sources,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- sources 4 Jul 2010 22:19:26 -0000 1.17
+++ sources 10 Jan 2011 14:49:29 -0000 1.18
@@ -1 +1 @@
-9e4119c9252be7e4528c7fb702228701 ffmpeg-20100704.tar.bz2
+fccd69057e331c2541bb024b1e92e864 ffmpeg-20110110.tar.bz2
13 years, 10 months
rpms/x264/devel .cvsignore, 1.14, 1.15 sources, 1.14, 1.15 x264.spec, 1.21, 1.22
by Dominik Mierzejewski
Author: rathann
Update of /cvs/free/rpms/x264/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv3816
Modified Files:
.cvsignore sources x264.spec
Log Message:
* Mon Jan 10 2011 Dominik Mierzejewski <rpm(a)greysector.net> 0.0.0-0.29.20110110
- 20110110 snapshot (ABI bump)
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/x264/devel/.cvsignore,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- .cvsignore 6 Jul 2010 17:36:13 -0000 1.14
+++ .cvsignore 10 Jan 2011 12:54:19 -0000 1.15
@@ -1 +1 @@
-x264-20100706.tar.bz2
+x264-20110110.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/free/rpms/x264/devel/sources,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- sources 6 Jul 2010 17:36:13 -0000 1.14
+++ sources 10 Jan 2011 12:54:19 -0000 1.15
@@ -1 +1 @@
-ea9eae8863f2a8c4728f39f666ae7c7a x264-20100706.tar.bz2
+f34cfcf47656cb6bfe7052a113b0db8d x264-20110110.tar.bz2
Index: x264.spec
===================================================================
RCS file: /cvs/free/rpms/x264/devel/x264.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- x264.spec 6 Jul 2010 17:36:13 -0000 1.21
+++ x264.spec 10 Jan 2011 12:54:19 -0000 1.22
@@ -1,10 +1,9 @@
-%global snapshot 20100706
-%global git d058f37
+%global snapshot 20110110
Summary: H264/AVC video streams encoder
Name: x264
Version: 0.0.0
-Release: 0.28.%{snapshot}git%{git}%{?dist}
+Release: 0.29.%{snapshot}%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://developers.videolan.org/x264.html
@@ -57,9 +56,7 @@
--bindir=%{_bindir} \\\
--includedir=%{_includedir} \\\
--extra-cflags="$RPM_OPT_FLAGS" \\\
- %{!?_without_gpac:--enable-mp4-output} \\\
%{?_with_visualize:--enable-visualize} \\\
- --enable-pthread \\\
--enable-debug \\\
--enable-shared \\\
--enable-pic
@@ -132,6 +129,7 @@
%defattr(644, root, root, 0755)
%doc doc/*
%{_includedir}/x264.h
+%{_includedir}/x264_config.h
%{_libdir}/libx264.so
%{_libdir}/pkgconfig/%{name}.pc
%ifarch i686
@@ -139,6 +137,9 @@
%endif
%changelog
+* Mon Jan 10 2011 Dominik Mierzejewski <rpm(a)greysector.net> 0.0.0-0.29.20110110
+- 20110110 snapshot (ABI bump)
+
* Tue Jul 06 2010 Dominik Mierzejewski <rpm(a)greysector.net> 0.0.0-0.28.20100706gitd058f37
- 20100706 snapshot (ABI bump)
- drop old Obsoletes:
13 years, 10 months
rpms/get_iplayer/F-13 .cvsignore, 1.4, 1.5 get_iplayer.spec, 1.4, 1.5 sources, 1.4, 1.5
by David Woodhouse
Author: dwmw2
Update of /cvs/free/rpms/get_iplayer/F-13
In directory se02.es.rpmfusion.net:/tmp/cvs-serv19960
Modified Files:
.cvsignore get_iplayer.spec sources
Log Message:
2.79
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/F-13/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore 28 May 2010 16:46:27 -0000 1.4
+++ .cvsignore 9 Jan 2011 16:44:24 -0000 1.5
@@ -1 +1 @@
-get_iplayer-2.78.tar.gz
+get_iplayer-2.79.tar.gz
Index: get_iplayer.spec
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/F-13/get_iplayer.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- get_iplayer.spec 28 May 2010 16:46:27 -0000 1.4
+++ get_iplayer.spec 9 Jan 2011 16:44:24 -0000 1.5
@@ -1,5 +1,5 @@
Name: get_iplayer
-Version: 2.78
+Version: 2.79
Release: 1%{?dist}
Summary: Lists, Records and Streams BBC iPlayer TV and Radio programmes
@@ -51,6 +51,9 @@
%doc README.txt
%changelog
+* Sun Jan 09 2011 David Woodhouse <dwmw2(a)infradead.org> 2.79-1
+- Update to 2.79
+
* Fri May 28 2010 David Woodhouse <dwmw2(a)infradead.org> 2.78-1
- Update to 2.78 (proper fix for Akamai).
Index: sources
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/F-13/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources 28 May 2010 16:46:27 -0000 1.4
+++ sources 9 Jan 2011 16:44:24 -0000 1.5
@@ -1 +1 @@
-387670912f2c821f834b1c5b562a65ab get_iplayer-2.78.tar.gz
+80daf5a222dc99b2893e4daeebf355ac get_iplayer-2.79.tar.gz
13 years, 10 months
rpms/get_iplayer/F-14 .cvsignore, 1.4, 1.5 get_iplayer.spec, 1.5, 1.6 sources, 1.4, 1.5
by David Woodhouse
Author: dwmw2
Update of /cvs/free/rpms/get_iplayer/F-14
In directory se02.es.rpmfusion.net:/tmp/cvs-serv19842
Modified Files:
.cvsignore get_iplayer.spec sources
Log Message:
2.79
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/F-14/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore 28 May 2010 14:45:27 -0000 1.4
+++ .cvsignore 9 Jan 2011 16:44:03 -0000 1.5
@@ -1 +1 @@
-get_iplayer-2.78.tar.gz
+get_iplayer-2.79.tar.gz
Index: get_iplayer.spec
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/F-14/get_iplayer.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- get_iplayer.spec 28 May 2010 14:45:27 -0000 1.5
+++ get_iplayer.spec 9 Jan 2011 16:44:03 -0000 1.6
@@ -1,5 +1,5 @@
Name: get_iplayer
-Version: 2.78
+Version: 2.79
Release: 1%{?dist}
Summary: Lists, Records and Streams BBC iPlayer TV and Radio programmes
@@ -51,6 +51,9 @@
%doc README.txt
%changelog
+* Sun Jan 09 2011 David Woodhouse <dwmw2(a)infradead.org> 2.79-1
+- Update to 2.79
+
* Fri May 28 2010 David Woodhouse <dwmw2(a)infradead.org> 2.78-1
- Update to 2.78 (proper fix for Akamai).
Index: sources
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/F-14/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources 28 May 2010 14:45:27 -0000 1.4
+++ sources 9 Jan 2011 16:44:03 -0000 1.5
@@ -1 +1 @@
-387670912f2c821f834b1c5b562a65ab get_iplayer-2.78.tar.gz
+80daf5a222dc99b2893e4daeebf355ac get_iplayer-2.79.tar.gz
13 years, 10 months
rpms/get_iplayer/devel .cvsignore, 1.4, 1.5 get_iplayer.spec, 1.5, 1.6 sources, 1.4, 1.5
by David Woodhouse
Author: dwmw2
Update of /cvs/free/rpms/get_iplayer/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18304
Modified Files:
.cvsignore get_iplayer.spec sources
Log Message:
2.79
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/devel/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- .cvsignore 28 May 2010 14:45:27 -0000 1.4
+++ .cvsignore 9 Jan 2011 16:24:10 -0000 1.5
@@ -1 +1 @@
-get_iplayer-2.78.tar.gz
+get_iplayer-2.79.tar.gz
Index: get_iplayer.spec
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/devel/get_iplayer.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- get_iplayer.spec 28 May 2010 14:45:27 -0000 1.5
+++ get_iplayer.spec 9 Jan 2011 16:24:10 -0000 1.6
@@ -1,5 +1,5 @@
Name: get_iplayer
-Version: 2.78
+Version: 2.79
Release: 1%{?dist}
Summary: Lists, Records and Streams BBC iPlayer TV and Radio programmes
@@ -51,6 +51,9 @@
%doc README.txt
%changelog
+* Sun Jan 09 2011 David Woodhouse <dwmw2(a)infradead.org> 2.79-1
+- Update to 2.79
+
* Fri May 28 2010 David Woodhouse <dwmw2(a)infradead.org> 2.78-1
- Update to 2.78 (proper fix for Akamai).
Index: sources
===================================================================
RCS file: /cvs/free/rpms/get_iplayer/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources 28 May 2010 14:45:27 -0000 1.4
+++ sources 9 Jan 2011 16:24:10 -0000 1.5
@@ -1 +1 @@
-387670912f2c821f834b1c5b562a65ab get_iplayer-2.78.tar.gz
+80daf5a222dc99b2893e4daeebf355ac get_iplayer-2.79.tar.gz
13 years, 10 months
rpms/wolf3d-shareware/F-13 extract.c, NONE, 1.1 wolf3d-shareware.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by jwrdegoede
Author: jwrdegoede
Update of /cvs/nonfree/rpms/wolf3d-shareware/F-13
In directory se02.es.rpmfusion.net:/tmp/cvs-serv4673
Modified Files:
.cvsignore sources
Added Files:
extract.c wolf3d-shareware.spec
Log Message:
* Mon Dec 27 2010 Hans de Goede <hdegoede(a)redhat.com> 1.4-1
- Initial rpmfusion package
--- NEW FILE extract.c ---
/* utility to extract the .SHR installer data files of early ID software
shareware games
Copyright (C) 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <libdynamite.h>
struct cookie_s {
char *in_buffer;
int in_buffer_remaining;
int in_buffer_index;
int in_buffer_size;
FILE* out_file;
};
size_t reader(void* buffer, size_t size, void* cookie)
{
struct cookie_s *c = cookie;
if (size > c->in_buffer_remaining)
size = c->in_buffer_remaining;
memcpy (buffer, c->in_buffer + c->in_buffer_index, size);
c->in_buffer_index += size;
c->in_buffer_remaining -= size;
return size;
}
size_t writer(void* buffer, size_t size, void* cookie)
{
struct cookie_s *c = cookie;
return fwrite(buffer, 1, size, c->out_file);
}
int main(int argc, char *argv[])
{
struct cookie_s cookie;
FILE *in_file;
char filename[16];
unsigned char buf[4];
int i, compressed_size;
if (argc != 2) {
fprintf(stderr, "%s: Usage: %s <filename.CHR> %d\n", argv[0], argv[0], argc);
return 1;
}
in_file = fopen(argv[1], "r");
if (!in_file) {
fprintf(stderr, "error opening: %s", argv[1]);
perror(NULL);
return 1;
}
/* skip first 0x3A bytes header */
if (fseek(in_file, 0x3A, SEEK_CUR)) {
perror("error skipping initial file header");
return 1;
}
cookie.in_buffer = malloc(65536);
if (!cookie.in_buffer) {
fprintf(stderr, "Error: out of memory\n");
return 1;
}
cookie.in_buffer_size = 65536;
while (1)
{
/* get the name of the file */
if (fread(filename, 1, sizeof(filename), in_file) != sizeof(filename)) {
if (feof(in_file)) {
free(cookie.in_buffer);
fclose(in_file);
return 0; /* done */
}
perror("error getting output filename from file");
return 1;
}
/* verify the filename and convert to lower case */
for (i = 0 ; i < sizeof(filename); i++) {
if (filename[i] == 0)
break; /* done */
if (!isprint(filename[i])) {
fprintf(stderr, "error invalid output filename\n");
return 1;
}
filename[i] = tolower(filename[i]);
}
if (i == sizeof(filename)) {
fprintf(stderr, "error too long output filename\n");
return 1;
}
/* seek to compressed size */
if (fseek(in_file, 0x88 - sizeof(filename), SEEK_CUR)) {
perror("error skipping file header before file size");
return 1;
}
if (fread(buf, 1, 4, in_file) != 4) {
perror("error reading file size");
return 1;
}
compressed_size = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
if (compressed_size > cookie.in_buffer_size) {
cookie.in_buffer = realloc(cookie.in_buffer, compressed_size);
if (!cookie.in_buffer) {
fprintf(stderr, "Error: out of memory\n");
return 1;
}
cookie.in_buffer_size = compressed_size;
}
/* seek to begin of compressed data */
if (fseek(in_file, 0x1C, SEEK_CUR)) {
perror("error skipping file header before file size");
return 1;
}
/* read compressed data */
if (fread(cookie.in_buffer, 1, compressed_size, in_file) !=
compressed_size) {
perror("error reading compressed data");
return 1;
}
cookie.in_buffer_index = 0;
cookie.in_buffer_remaining = compressed_size;
cookie.out_file = fopen(filename, "w");
if (!cookie.out_file) {
fprintf(stderr, "Error creating: %s for writing", filename);
perror(NULL);
return 1;
}
printf("decompressing: %s, compressed size: %d\n", filename,
compressed_size);
if ((i = dynamite_explode(reader, writer, &cookie))) {
fprintf(stderr, "Error: %d while decompressing\n", i);
return i;
}
fclose(cookie.out_file);
}
/* never reached */
return 0;
}
--- NEW FILE wolf3d-shareware.spec ---
Name: wolf3d-shareware
Version: 1.4
Release: 1%{?dist}
Summary: Wolfenstein 3D shareware Episode
Group: Amusements/Games
License: Shareware
URL: http://www.3drealms.com/wolf3d/index.html
Source0: ftp://ftp.3drealms.com/share/1wolf14.zip
Source1: extract.c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: dynamite-devel
Requires: wolf4sdl-shareware
%description
This package contains the shareware Episode of id Software's classic
first-person shooter Wolfenstein 3D.
%prep
%setup -q -c
%build
gcc -o extract %{SOURCE1} -ldynamite
./extract W3DSW14.SHR
iconv -f CP850 -t UTF-8 vendor.doc > tmp
cat tmp | sed 's|\r||g' > vendor.doc
touch -r W3DSW14.SHR vendor.doc *.wl1
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/wolf3d/shareware
install -p -m 644 *.wl1 $RPM_BUILD_ROOT%{_datadir}/wolf3d/shareware
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc vendor.doc
%{_datadir}/wolf3d
%changelog
* Mon Dec 27 2010 Hans de Goede <hdegoede(a)redhat.com> 1.4-1
- Initial rpmfusion package
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/wolf3d-shareware/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 9 Jan 2011 12:09:18 -0000 1.1
+++ .cvsignore 9 Jan 2011 12:55:45 -0000 1.2
@@ -0,0 +1 @@
+1wolf14.zip
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/wolf3d-shareware/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 9 Jan 2011 12:09:18 -0000 1.1
+++ sources 9 Jan 2011 12:55:45 -0000 1.2
@@ -0,0 +1 @@
+a29432cd4a5184d552d8e5da8f80a531 1wolf14.zip
13 years, 10 months
rpms/wolf3d-shareware/F-14 extract.c, NONE, 1.1 wolf3d-shareware.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
by jwrdegoede
Author: jwrdegoede
Update of /cvs/nonfree/rpms/wolf3d-shareware/F-14
In directory se02.es.rpmfusion.net:/tmp/cvs-serv4551
Modified Files:
.cvsignore sources
Added Files:
extract.c wolf3d-shareware.spec
Log Message:
* Mon Dec 27 2010 Hans de Goede <hdegoede(a)redhat.com> 1.4-1
- Initial rpmfusion package
--- NEW FILE extract.c ---
/* utility to extract the .SHR installer data files of early ID software
shareware games
Copyright (C) 2007 Hans de Goede <j.w.r.degoede(a)hhs.nl>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <libdynamite.h>
struct cookie_s {
char *in_buffer;
int in_buffer_remaining;
int in_buffer_index;
int in_buffer_size;
FILE* out_file;
};
size_t reader(void* buffer, size_t size, void* cookie)
{
struct cookie_s *c = cookie;
if (size > c->in_buffer_remaining)
size = c->in_buffer_remaining;
memcpy (buffer, c->in_buffer + c->in_buffer_index, size);
c->in_buffer_index += size;
c->in_buffer_remaining -= size;
return size;
}
size_t writer(void* buffer, size_t size, void* cookie)
{
struct cookie_s *c = cookie;
return fwrite(buffer, 1, size, c->out_file);
}
int main(int argc, char *argv[])
{
struct cookie_s cookie;
FILE *in_file;
char filename[16];
unsigned char buf[4];
int i, compressed_size;
if (argc != 2) {
fprintf(stderr, "%s: Usage: %s <filename.CHR> %d\n", argv[0], argv[0], argc);
return 1;
}
in_file = fopen(argv[1], "r");
if (!in_file) {
fprintf(stderr, "error opening: %s", argv[1]);
perror(NULL);
return 1;
}
/* skip first 0x3A bytes header */
if (fseek(in_file, 0x3A, SEEK_CUR)) {
perror("error skipping initial file header");
return 1;
}
cookie.in_buffer = malloc(65536);
if (!cookie.in_buffer) {
fprintf(stderr, "Error: out of memory\n");
return 1;
}
cookie.in_buffer_size = 65536;
while (1)
{
/* get the name of the file */
if (fread(filename, 1, sizeof(filename), in_file) != sizeof(filename)) {
if (feof(in_file)) {
free(cookie.in_buffer);
fclose(in_file);
return 0; /* done */
}
perror("error getting output filename from file");
return 1;
}
/* verify the filename and convert to lower case */
for (i = 0 ; i < sizeof(filename); i++) {
if (filename[i] == 0)
break; /* done */
if (!isprint(filename[i])) {
fprintf(stderr, "error invalid output filename\n");
return 1;
}
filename[i] = tolower(filename[i]);
}
if (i == sizeof(filename)) {
fprintf(stderr, "error too long output filename\n");
return 1;
}
/* seek to compressed size */
if (fseek(in_file, 0x88 - sizeof(filename), SEEK_CUR)) {
perror("error skipping file header before file size");
return 1;
}
if (fread(buf, 1, 4, in_file) != 4) {
perror("error reading file size");
return 1;
}
compressed_size = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
if (compressed_size > cookie.in_buffer_size) {
cookie.in_buffer = realloc(cookie.in_buffer, compressed_size);
if (!cookie.in_buffer) {
fprintf(stderr, "Error: out of memory\n");
return 1;
}
cookie.in_buffer_size = compressed_size;
}
/* seek to begin of compressed data */
if (fseek(in_file, 0x1C, SEEK_CUR)) {
perror("error skipping file header before file size");
return 1;
}
/* read compressed data */
if (fread(cookie.in_buffer, 1, compressed_size, in_file) !=
compressed_size) {
perror("error reading compressed data");
return 1;
}
cookie.in_buffer_index = 0;
cookie.in_buffer_remaining = compressed_size;
cookie.out_file = fopen(filename, "w");
if (!cookie.out_file) {
fprintf(stderr, "Error creating: %s for writing", filename);
perror(NULL);
return 1;
}
printf("decompressing: %s, compressed size: %d\n", filename,
compressed_size);
if ((i = dynamite_explode(reader, writer, &cookie))) {
fprintf(stderr, "Error: %d while decompressing\n", i);
return i;
}
fclose(cookie.out_file);
}
/* never reached */
return 0;
}
--- NEW FILE wolf3d-shareware.spec ---
Name: wolf3d-shareware
Version: 1.4
Release: 1%{?dist}
Summary: Wolfenstein 3D shareware Episode
Group: Amusements/Games
License: Shareware
URL: http://www.3drealms.com/wolf3d/index.html
Source0: ftp://ftp.3drealms.com/share/1wolf14.zip
Source1: extract.c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: dynamite-devel
Requires: wolf4sdl-shareware
%description
This package contains the shareware Episode of id Software's classic
first-person shooter Wolfenstein 3D.
%prep
%setup -q -c
%build
gcc -o extract %{SOURCE1} -ldynamite
./extract W3DSW14.SHR
iconv -f CP850 -t UTF-8 vendor.doc > tmp
cat tmp | sed 's|\r||g' > vendor.doc
touch -r W3DSW14.SHR vendor.doc *.wl1
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/wolf3d/shareware
install -p -m 644 *.wl1 $RPM_BUILD_ROOT%{_datadir}/wolf3d/shareware
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc vendor.doc
%{_datadir}/wolf3d
%changelog
* Mon Dec 27 2010 Hans de Goede <hdegoede(a)redhat.com> 1.4-1
- Initial rpmfusion package
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/wolf3d-shareware/F-14/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 9 Jan 2011 12:09:18 -0000 1.1
+++ .cvsignore 9 Jan 2011 12:55:26 -0000 1.2
@@ -0,0 +1 @@
+1wolf14.zip
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/wolf3d-shareware/F-14/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 9 Jan 2011 12:09:18 -0000 1.1
+++ sources 9 Jan 2011 12:55:26 -0000 1.2
@@ -0,0 +1 @@
+a29432cd4a5184d552d8e5da8f80a531 1wolf14.zip
13 years, 10 months