Changes of Revision 2
[-] | Changed | ffmpeg.spec |
x 1
2 # norootforbuild 3 4 -%define name ffmpeg 5 -%define version 0.5 6 -%define release 15 7 %define major 0 8 %define lib libffmpeg 9 %define libname %{lib}%{major} 10
11 %define majoravformat 52 12 %define libavformat libavformat 13 %define libnameavformat %{libavformat}%{majoravformat} 14 -%define majoravutil 49 15 +%define majoravutil 50 16 %define libavutil libavutil 17 %define libnameavutil %{libavutil}%{majoravutil} 18 %define majorpostproc 51 19
20 %define majorswscale 0 21 %define libswscale libswscale 22 %define libnameswscale %{libswscale}%{majorswscale} 23 +%define lastrelease 0.5 24 +%define svnsnapshot 22965 25 26 -Name: %{name} 27 -Version: %{version} 28 -Release: %{release} 29 +Name: ffmpeg 30 +Version: %{lastrelease}.%{svnsnapshot}svn 31 +Release: 3 32 License: LGPL v2 or later and some code GPL v2 or later 33 Group: Productivity/Multimedia/Video/Editors and Convertors 34 Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder 35 Summary(de): Hyperschneller MPEG1/MPEG4/H263/RV Und AC3/MPEG Audio-Encoder 36 URL: http://ffmpeg.mplayerhq.hu 37 - 38 -Source0: ffmpeg-0.5.tar.bz2 39 - 40 +Source0: ffmpeg-%{version}.tar.bz2 41 Patch0: ffmpeg_configure.diff 42 +Patch1: ffmpeg_fix_return.diff 43 BuildRoot: %{_tmppath}/%{name}-buildroot 44 -Prefix: %{_prefix} 45 Requires: %{libnameavcodec} = %{version}-%{release} 46 Requires: %{libnameavdevice} = %{version}-%{release} 47 Requires: %{libnameavformat} = %{version}-%{release} 48 Requires: %{libnameavutil} = %{version}-%{release} 49 Requires: %{libnameswscale} = %{version}-%{release} 50 -%if 0%{?suse_version} >= 930 51 BuildRequires: libdca-devel 52 BuildRequires: libdca0 53 -%endif 54 BuildRequires: yasm >= 0.7.1 55 -%if 0%{?suse_version} >= 1010 || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 56 BuildRequires: libgsm 57 BuildRequires: libgsm-devel 58 -%endif 59 BuildRequires: imlib2-devel 60 BuildRequires: libmp3lame-devel 61 BuildRequires: libogg-devel 62 BuildRequires: libvorbis-devel 63 -BuildRequires: libtheora-devel >= 1.0.final 64 +BuildRequires: libtheora-devel >= 1.1 65 BuildRequires: ncurses-devel 66 BuildRequires: libjack-devel 67 BuildRequires: alsa-devel 68 BuildRequires: freetype2-devel 69 BuildRequires: SDL-devel 70 BuildRequires: slang-devel 71 -%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 72 -BuildRequires: xorg-x11-proto-devel xorg-x11-xtrans-devel 73 -%endif 74 -%if 0%{?suse_version} >= 920 75 BuildRequires: xorg-x11-devel 76 -%endif 77 -%if 0%{?suse_version} > 0 && 0%{?suse_version} < 920 78 -BuildRequires: XFree86-devel 79 -%endif 80 BuildRequires: zlib-devel 81 BuildRequires: libfaad2 >= 2.7 82 BuildRequires: libfaad-devel >= 2.7 83 BuildRequires: libfaac-devel >= 1.28 84 -BuildRequires: libx264-devel 85 +BuildRequires: libx264-devel >= 0.0svn20100122 86 BuildRequires: libxvidcore-devel 87 BuildRequires: libmp4v2-devel 88 BuildRequires: texinfo 89 -BuildRequires: libamrnb-devel 90 -BuildRequires: libamrwb-devel 91 +BuildRequires: libopencore-amr-devel 92 #BuildRequires: liba52-devel 93 BuildRequires: libdc1394 94 BuildRequires: libdc1394-devel 95
96 #%if 0%{?suse_version} >= 1100 97 #BuildRequires: libnut-devel 98 #%endif 99 -%if 0%{?suse_version} > 1020 100 BuildRequires: libdc1394_control12-devel 101 -%endif 102 #BuildRequires: G.729-devel 103 -BuildRequires: nvidia-vdpau-devel 104 - 105 -%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} 106 -BuildRequires: texi2html 107 -%endif 108 +#BuildRequires: libopenjpeg-devel 109 +BuildRequires: libvdpau-devel 110 111 %description 112 ffmpeg is a hyper fast realtime audio/video encoder, a streaming server 113
114 115 %package -n %{libname} 116 Group: System/Libraries 117 -Summary: metapackage for ffmpeg shared libraries 118 +Summary: Metapackage for ffmpeg shared libraries 119 Summary(de): Metapaket für die ffmpeg Bibliotheken 120 Requires: %{libnameavcodec} = %{version}-%{release} 121 Requires: %{libnameavdevice} = %{version}-%{release} 122
123 Requires: %{libnameswscale} = %{version}-%{release} 124 125 %description -n %{libname} 126 -metapackage for ffmpeg shared libraries 127 +Metapackage for ffmpeg shared libraries. 128 +For compatibility reasons only. 129 130 %description -n %{libname} -l de 131 -Metapaket für die ffmpeg Bibliotheken 132 +Metapaket für die ffmpeg Bibliotheken. 133 +Das Paket existiert nur noch aus Kompatibilitätsgründen. 134 135 %package -n %{libnameavcodec} 136 Group: System/Libraries 137 -Summary: ffmpeg %{libavcodec} 138 +Summary: Ffmpeg %{libavcodec} 139 Provides: %{libavcodec} = %{version}-%{release} 140 141 %description -n %{libnameavcodec} 142
143 144 %package -n %{libnameavdevice} 145 Group: System/Libraries 146 -Summary: ffmpeg %{libavdevice} 147 +Summary: Ffmpeg %{libavdevice} 148 Provides: %{libavdevice} = %{version}-%{release} 149 150 %description -n %{libnameavdevice} 151
152 153 %package -n %{libnameavformat} 154 Group: System/Libraries 155 -Summary: ffmpeg %{libavformat} 156 +Summary: Ffmpeg %{libavformat} 157 Provides: %{libavformat} = %{version}-%{release} 158 159 %description -n %{libnameavformat} 160
161 162 %package -n %{libnameavutil} 163 Group: System/Libraries 164 -Summary: ffmpeg %{libavutil} 165 +Summary: Ffmpeg %{libavutil} 166 Provides: %{libavutil} = %{version}-%{release} 167 168 %description -n %{libnameavutil} 169
170 171 %package -n %{libnamepostproc} 172 Group: System/Libraries 173 -Summary: ffmpeg %{libpostproc} 174 +Summary: Ffmpeg %{libpostproc} 175 Provides: %{libpostproc} = %{version}-%{release} 176 177 %description -n %{libnamepostproc} 178
179 180 %package -n %{libnameswscale} 181 Group: System/Libraries 182 -Summary: ffmpeg %{libswscale} 183 +Summary: Ffmpeg %{libswscale} 184 Provides: %{libswscale} = %{version}-%{release} 185 186 %description -n %{libnameswscale} 187
188 Requires: libmp3lame-devel 189 Requires: libogg-devel 190 Requires: libvorbis-devel 191 -Requires: libtheora-devel >= 1.0.final 192 +Requires: libtheora-devel >= 1.1 193 Requires: alsa-devel 194 Requires: slang-devel 195 Requires: zlib-devel 196
197 Requires: libfaac-devel 198 Requires: libxvidcore-devel 199 Requires: libmp4v2-devel 200 -Requires: libx264-devel 201 |
||
[+] | Changed | ffmpeg_configure.diff ^ |
@@ -1,8 +1,8 @@ ---- configure.orig 2009-02-22 01:18:34.000000000 +0100 -+++ configure 2009-02-22 01:30:09.000000000 +0100 -@@ -1894,11 +1894,11 @@ - # --- - # check availability of some header files +--- configure.orig 2010-01-28 06:54:50.000000000 +0100 ++++ configure 2010-01-28 19:54:29.742794343 +0100 +@@ -2423,11 +2423,11 @@ + + fi -if check_func dlopen; then - ldl= @@ -14,52 +14,18 @@ -fi +#fi - check_func fork - check_func gethrtime -@@ -2137,19 +2137,20 @@ - check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUILD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\$(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil' - check_ldflags -Wl,-Bsymbolic - --if enabled small; then -- check_cflags -Os # not all compilers support -Os -- optimizations="small" --elif enabled optimizations; then -- if enabled xlc; then -- add_cflags -O5 -- add_ldflags -O5 -- elif enabled ccc; then -- add_cflags -fast -- else -- add_cflags -O3 -- fi --fi -+#if enabled small; then -+# check_cflags -Os # not all compilers support -Os -+# optimizations="small" -+#elif enabled optimizations; then -+# if enabled xlc; then -+# add_cflags -O5 -+# add_ldflags -O5 -+# elif enabled ccc; then -+# add_cflags -fast -+# else -+# add_cflags -O3 -+# fi -+#fi -+add_cflags '${CFLAGS}' - check_cflags -fno-math-errno - check_cflags -fno-signed-zeros - -@@ -2545,7 +2546,7 @@ + # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that + check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; } +@@ -3039,7 +3039,7 @@ Conflicts: - Libs: -L\${libdir} -l${shortname} $(disabled shared && echo $libs) + Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs) Libs.private: $(enabled shared && echo $libs) -Cflags: -I\${includedir} +Cflags: -I/usr/include -I/usr/include/$name EOF cat <<EOF > $name/$name-uninstalled.pc prefix= -@@ -2559,7 +2560,7 @@ +@@ -3053,7 +3053,7 @@ Requires: $requires Conflicts: Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs | ||
[+] | Added | ffmpeg_fix_return.diff ^ |
@@ -0,0 +1,17 @@ +diff -ur ffmpeg.orig/libswscale/x86/yuv2rgb_template.c ffmpeg/libswscale/x86/yuv2rgb_template.c +--- ffmpeg.orig/libswscale/x86/yuv2rgb_template.c 2010-01-15 19:54:58.000000000 +0100 ++++ ffmpeg/libswscale/x86/yuv2rgb_template.c 2010-03-23 21:35:31.506502288 +0100 +@@ -525,6 +525,7 @@ + YUV2RGB_ENDLOOP(4) + YUV2RGB_OPERANDS_ALPHA + #endif ++ return 0; + } + + static inline int RENAME(yuv420_bgr32)(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, +@@ -561,4 +562,5 @@ + YUV2RGB_ENDLOOP(4) + YUV2RGB_OPERANDS_ALPHA + #endif ++ return 0; + } | ||
Deleted | ffmpeg-0.5-0.pm.3.src.rpm ^ | |
Added | ffmpeg-0.5.22965svn.tar.bz2 ^ | |
Deleted | ffmpeg-0.5.tar.bz2 ^ |