Changes of Revision 58
[-] | Changed | ffmpeg.spec |
x 1
2 # norootforbuild 3 4 %define name ffmpeg 5 -%define version 0.4.9.16240svn 6 -%define release 20081219.pm.2021 7 +%define version 0.5 8 +%define release 15 9 %define major 0 10 %define lib libffmpeg 11 %define libname %{lib}%{major} 12
13 Group: Productivity/Multimedia/Video/Editors and Convertors 14 Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder 15 Summary(de): Hyperschneller MPEG1/MPEG4/H263/RV Und AC3/MPEG Audio-Encoder 16 -URL: http://ffmpeg.sourceforge.net 17 +URL: http://ffmpeg.mplayerhq.hu 18 19 -Source0: ffmpeg-0.4.9.16240svn.tar.bz2 20 +Source0: ffmpeg-0.5.tar.bz2 21 22 Patch0: ffmpeg_configure.diff 23 BuildRoot: %{_tmppath}/%{name}-buildroot 24
25 Requires: %{libnameavformat} = %{version}-%{release} 26 Requires: %{libnameavutil} = %{version}-%{release} 27 Requires: %{libnameswscale} = %{version}-%{release} 28 -%if 0%{?suse_version} >= 930 29 +%if %suse_version >= 930 30 BuildRequires: libdca-devel 31 BuildRequires: libdca0 32 %endif 33 BuildRequires: yasm >= 0.7.1 34 -%if 0%{?suse_version} >= 1010 || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 35 +%if %suse_version >= 1010 36 BuildRequires: libgsm 37 BuildRequires: libgsm-devel 38 %endif 39
40 BuildRequires: freetype2-devel 41 BuildRequires: SDL-devel 42 BuildRequires: slang-devel 43 -%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version} 44 -BuildRequires: xorg-x11-proto-devel xorg-x11-xtrans-devel 45 -%endif 46 -%if 0%{?suse_version} >= 920 47 +%if %suse_version >= 920 48 BuildRequires: xorg-x11-devel 49 -%endif 50 -%if 0%{?suse_version} > 0 && 0%{?suse_version} < 920 51 +%else 52 BuildRequires: XFree86-devel 53 %endif 54 BuildRequires: zlib-devel 55 -BuildRequires: libfaad0 >= 2.6 56 -BuildRequires: libfaad-devel >= 2.6 57 -BuildRequires: libfaac-devel >= 1.26 58 +BuildRequires: libfaad2 >= 2.7 59 +BuildRequires: libfaad-devel >= 2.7 60 +BuildRequires: libfaac-devel >= 1.28 61 BuildRequires: libx264-devel 62 BuildRequires: libxvidcore-devel 63 BuildRequires: libmp4v2-devel 64
65 #BuildRequires: liba52-devel 66 BuildRequires: libdc1394 67 BuildRequires: libdc1394-devel 68 -%if 0%{?suse_version} >= 1030 69 +BuildRequires: speex-devel 70 +%if %suse_version >= 1030 71 BuildRequires: libschroedinger-devel >= 1.0.5 72 BuildRequires: liboil-devel >= 0.3.15 73 BuildRequires: libdirac-devel >= 1.0.0 74 %endif 75 -#%if 0%{?suse_version} >= 1100 76 +#%if %suse_version >= 1100 77 #BuildRequires: libnut-devel 78 #%endif 79 -%if 0%{?suse_version} > 1020 80 +%if %suse_version > 1020 81 BuildRequires: libdc1394_control12-devel 82 %endif 83 #BuildRequires: G.729-devel 84 - 85 -%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} 86 -BuildRequires: texi2html 87 -%endif 88 - 89 +BuildRequires: nvidia-vdpau-devel 90 91 %description 92 ffmpeg is a hyper fast realtime audio/video encoder, a streaming server 93
94 95 %package -n %{libname} 96 Group: System/Libraries 97 -Summary: Metapackage for ffmpeg shared libraries 98 +Summary: metapackage for ffmpeg shared libraries 99 Summary(de): Metapaket für die ffmpeg Bibliotheken 100 Requires: %{libnameavcodec} = %{version}-%{release} 101 Requires: %{libnameavdevice} = %{version}-%{release} 102
103 104 %package -n %{libnameavcodec} 105 Group: System/Libraries 106 -Summary: FFmpeg %{libavcodec} 107 +Summary: ffmpeg %{libavcodec} 108 Provides: %{libavcodec} = %{version}-%{release} 109 110 %description -n %{libnameavcodec} 111
112 113 %package -n %{libnameavdevice} 114 Group: System/Libraries 115 -Summary: FFmpeg %{libavdevice} 116 +Summary: ffmpeg %{libavdevice} 117 Provides: %{libavdevice} = %{version}-%{release} 118 119 %description -n %{libnameavdevice} 120
121 122 %package -n %{libnameavformat} 123 Group: System/Libraries 124 -Summary: FFmpeg %{libavformat} 125 +Summary: ffmpeg %{libavformat} 126 Provides: %{libavformat} = %{version}-%{release} 127 128 %description -n %{libnameavformat} 129
130 131 %package -n %{libnameavutil} 132 Group: System/Libraries 133 -Summary: FFmpeg %{libavutil} 134 +Summary: ffmpeg %{libavutil} 135 Provides: %{libavutil} = %{version}-%{release} 136 137 %description -n %{libnameavutil} 138
139 140 %package -n %{libnamepostproc} 141 Group: System/Libraries 142 -Summary: FFmpeg %{libpostproc} 143 +Summary: ffmpeg %{libpostproc} 144 Provides: %{libpostproc} = %{version}-%{release} 145 146 %description -n %{libnamepostproc} 147
148 149 %package -n %{libnameswscale} 150 Group: System/Libraries 151 -Summary: FFmpeg %{libswscale} 152 +Summary: ffmpeg %{libswscale} 153 Provides: %{libswscale} = %{version}-%{release} 154 155 %description -n %{libnameswscale} 156
157 Requires: libamrwb-devel 158 #Requires: liba52-devel 159 Requires: libjack-devel 160 -%if 0%{?suse_version} > 930 161 +Requires: speex-devel 162 +%if %suse_version > 930 163 Requires: libdca-devel 164 %endif 165 -%if 0%{?suse_version} >= 1010 166 +%if %suse_version >= 1010 167 Requires: libgsm-devel 168 %endif 169 Requires: libdc1394 170 Requires: libdc1394-devel 171 -%if 0%{?suse_version} >= 1030 172 +%if %suse_version >= 1030 173 Requires: libschroedinger-devel >= 1.0.5 174 Requires: liboil-devel >= 0.3.15 175 +Requires: libdirac0 176 Requires: libdirac-devel >= 1.0.0 177 %endif 178 -#%if 0%{?suse_version} >= 1100 179 +#%if %suse_version >= 1100 180 #Requires: libnut-devel 181 #%endif 182 -%if 0%{?suse_version} > 1020 183 +%if %suse_version > 1020 184 Requires: libdc1394_control12-devel 185 %endif 186 +Requires: nvidia-vdpau-devel 187 Provides: %{libname}-devel = %{version}-%{release} 188 %ifarch x86_64 amd64 ia32e 189 Provides: libavcodec.so()(64bit) 190
191 %debug_package 192 193 %prep 194 -%setup -q -n %{name} 195 +%setup -q -n %{name}-%{version} 196 %patch0 197 -%if 0%{?suse_version} 198 + 199 %suse_update_libdir configure 200 -%endif 201 |
||
[+] | Changed | ffmpeg_configure.diff ^ |
@@ -1,6 +1,6 @@ ---- configure.orig 2008-06-15 21:30:34.000000000 +0200 -+++ configure 2008-06-15 21:38:50.000000000 +0200 -@@ -1590,11 +1590,11 @@ +--- 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 @@ -16,30 +16,50 @@ check_func fork check_func gethrtime -@@ -1838,10 +1838,10 @@ - optimizations="small" - elif enabled optimizations; then - if $cc -v 2>&1 | grep -q xlc; then -- add_cflags "-O5" -+# add_cflags "-O5" - add_ldflags "-O5" +@@ -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" +- 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 -O3 ++# fi ++#fi ++add_cflags '${CFLAGS}' check_cflags -fno-math-errno -@@ -2206,7 +2206,7 @@ + check_cflags -fno-signed-zeros + +@@ -2545,7 +2546,7 @@ Conflicts: Libs: -L\${libdir} -l${shortname} $(disabled shared && echo $libs) Libs.private: $(enabled shared && echo $libs) -Cflags: -I\${includedir} +Cflags: -I/usr/include -I/usr/include/$name EOF - cat <<EOF > $name-uninstalled.pc + cat <<EOF > $name/$name-uninstalled.pc prefix= -@@ -2220,7 +2220,7 @@ +@@ -2559,7 +2560,7 @@ Requires: $requires Conflicts: Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs | ||
Added | ffmpeg-0.5-0.pm.3.src.rpm ^ | |
Changed | ffmpeg-0.5.tar.bz2 ^ |