Changes of Revision 5
[-] | Changed | ffmpeg.spec |
x 1
2 -# norootforbuild 3 - 4 %define lib libffmpeg 5 -%define majoravcore 0 6 -%define libavcore libavcore 7 -%define libnameavcore %{libavcore}%{majoravcore} 8 %define majoravcodec 52 9 %define libavcodec libavcodec 10 %define libnameavcodec %{libavcodec}%{majoravcodec} 11
12 %define libswscale libswscale 13 %define libnameswscale %{libswscale}%{majorswscale} 14 %define lastrelease 0.6 15 -%define svnsnapshot 25702 16 +%define svnsnapshot 201103092102 17 18 %bcond_without avfilter 19 %bcond_without libvpx 20 %bcond_with libfaac 21 -%bcond_with libopenjpeg 22 +%bcond_without libopenjpeg 23 24 25 Name: ffmpeg 26 -Version: %{lastrelease}.%{svnsnapshot}svn 27 -Release: 9 28 -License: LGPL v2 or later and some code GPL v3 or later 29 +Version: %{lastrelease}.%{svnsnapshot}git 30 +Release: 10 31 +License: LGPL v2 or later and some code GPL v2 or later 32 Group: Productivity/Multimedia/Video/Editors and Convertors 33 Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder 34 Summary(de): Hyperschneller MPEG1/MPEG4/H263/RV Und AC3/MPEG Audio-Encoder 35 URL: http://ffmpeg.mplayerhq.hu 36 -Source0: ffmpeg-0.6.25702svn.tar.bz2 37 -Source1: ffmpeg-rpmlintrc 38 +Source0: ffmpeg-%{version}.tar.bz2 39 Patch0: ffmpeg_configure.diff 40 Patch1: ffmpeg_fix_return.diff 41 BuildRoot: %{_tmppath}/%{name}-buildroot 42
43 BuildRequires: libdc1394-devel 44 BuildRequires: libspeex-devel 45 %if %suse_version >= 1030 46 -BuildRequires: libschroedinger-devel 47 +BuildRequires: schroedinger-devel 48 BuildRequires: liboil-devel >= 0.3.15 49 BuildRequires: libdirac-devel >= 1.0.0 50 %endif 51 -%if 0%{?suse_version} < 1130 52 +%if %suse_version <= 1130 53 BuildRequires: libdc1394_control12-devel 54 -%else 55 -BuildRequires: libdc1394-devel 56 %endif 57 - 58 %if %{with libopenjpeg} 59 BuildRequires: libopenjpeg-devel 60 %endif 61
62 BuildRequires: libvpx-devel 63 %endif 64 %endif 65 -Requires: %{libnameavcore} = %{version}-%{release} 66 Requires: %{libnameavcodec} = %{version}-%{release} 67 Requires: %{libnameavdevice} = %{version}-%{release} 68 Requires: %{libnameavformat} = %{version}-%{release} 69 -Requires: %{libnameavfilter} = %{version}-%{release} 70 Requires: %{libnameavutil} = %{version}-%{release} 71 Requires: %{libnamepostproc} = %{version}-%{release} 72 Requires: %{libnameswscale} = %{version}-%{release} 73
74 Sound wird in einen MPEG audio layer 2 oder AC3 Stream geschrieben. 75 76 77 -%package -n %{libnameavcore} 78 -Group: System/Libraries 79 -Summary: FFmpeg %{libavcore} 80 -Provides: %{libavcore} = %{version}-%{release} 81 -Requires: %{libnameavutil} = %{version}-%{release} 82 - 83 -%description -n %{libnameavcore} 84 -ffmpeg %{libavcore} shared library 85 - 86 -%description -n %{libnameavcore} -l de 87 -ffmpeg %{libavcore} Bibliothek 88 - 89 - 90 %package -n %{libnameavcodec} 91 Group: System/Libraries 92 Summary: FFmpeg %{libavcodec} 93 Provides: %{libavcodec} = %{version}-%{release} 94 Provides: libffmpeg0 = %{version}-%{release} 95 Obsoletes: libffmpeg0 < %{version}-%{release} 96 -Requires: %{libnameavcore} = %{version}-%{release} 97 +Obsoletes: libavcore0 98 Requires: %{libnameavutil} = %{version}-%{release} 99 100 %description -n %{libnameavcodec} 101
102 Group: System/Libraries 103 Summary: FFmpeg %{libavdevice} 104 Provides: %{libavdevice} = %{version}-%{release} 105 -Requires: %{libnameavcore} = %{version}-%{release} 106 Requires: %{libnameavcodec} = %{version}-%{release} 107 Requires: %{libnameavformat} = %{version}-%{release} 108 Requires: %{libnameavutil} = %{version}-%{release} 109
110 Summary: FFmpeg %{libavformat} 111 Provides: %{libavformat} = %{version}-%{release} 112 Requires: %{libnameavcodec} = %{version}-%{release} 113 -Requires: %{libnameavcore} = %{version}-%{release} 114 Requires: %{libnameavutil} = %{version}-%{release} 115 116 %description -n %{libnameavformat} 117
118 Summary: FFmpeg %{libavutil} 119 Provides: %{libavfilter} = %{version}-%{release} 120 Requires: %{libnameavcodec} = %{version}-%{release} 121 -Requires: %{libnameavcore} = %{version}-%{release} 122 Requires: %{libnameavutil} = %{version}-%{release} 123 Requires: %{libnameswscale} = %{version}-%{release} 124 125
126 Group: Development/Libraries/C and C++ 127 Summary: Header files and static library for the ffmpeg library 128 Summary(de): Header Dateien und statische Bibliotheken für die ffmpeg Bibliothek 129 -Requires: %{libnameavcore} = %{version}-%{release} 130 Requires: %{libnameavcodec} = %{version}-%{release} 131 Requires: %{libnameavdevice} = %{version}-%{release} 132 Requires: %{libnameavformat} = %{version}-%{release} 133
134 Requires: liboil-devel >= 0.3.15 135 Requires: libdirac-devel >= 1.0.0 136 %endif 137 -%if %suse_version > 1020 && %suse_version < 1140 138 +%if %suse_version <= 1130 139 Requires: libdc1394_control12-devel 140 %endif 141 %if %{with libopenjpeg} 142
143 Installieren Sie libffmpeg-devel wenn Sie Anwendungen mit ffmpeg Support 144 compilieren wollen. 145 146 -%debug_package 147 - 148 149 %prep 150 %setup -q -n %{name} 151
152 %suse_update_libdir configure 153 #don't call ldconfig on install 154 #perl -pi -e 's/ldconfig \|\| true//' libavcodec/Makefile 155 +#remove date references so builds are reproducible (build-compare) 156 +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') 157 +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" cmdutils.c 158 +FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') 159 +sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" cmdutils.c 160 161 %build 162 +export SUSE_ASNEEDED=0 163 archflags="" 164 %ifarch x86_64 amd64 ia32e 165 archflags=" -fPIC" 166
167 sed -i -e "s/-fPIC -DPIC//g" libpostproc/Makefile 168 %endif 169 170 -CFLAGS="$RPM_OPT_FLAGS $archflags -I%{_includedir}/gsm" 171 +CFLAGS="${RPM_OPT_FLAGS} ${archflags} -I%{_includedir}/gsm" 172 +%if %{with libopenjpeg} 173 +CFLAGS="${CFLAGS} -I%{_includedir}/openjpeg" 174 +%endif 175 export archflags 176 export CFLAGS 177 -CPPFLAGS="$CFLAGS" 178 +CPPFLAGS="${CFLAGS}" 179 export CPPFLAGS 180 181 ./configure --shlibdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir} \ 182
183 --enable-libopenjpeg \ 184 %endif 185 --enable-libxvid --enable-postproc --enable-gpl \ 186 - --enable-x11grab --extra-cflags="$CFLAGS" \ 187 + --enable-x11grab --extra-cflags="${CFLAGS}" \ 188 --enable-debug --disable-stripping \ 189 %if %suse_version >= 1030 190 --enable-libschroedinger --enable-libdirac \ 191
192 %clean 193 [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} 194 195 -%post -n %{libnameavcore} -p /sbin/ldconfig 196 -%postun -n %{libnameavcore} -p /sbin/ldconfig 197 - 198 %post -n %{libnameavcodec} -p /sbin/ldconfig 199 %postun -n %{libnameavcodec} -p /sbin/ldconfig 200 201 |
||
[+] | Changed | ffmpeg_configure.diff ^ |
@@ -1,6 +1,6 @@ ---- configure.orig 2010-09-28 23:31:55.000000000 +0200 -+++ configure 2010-10-03 17:37:20.605547484 +0200 -@@ -2640,11 +2640,11 @@ +--- configure.orig 2011-02-28 20:16:15.000000000 +0100 ++++ configure 2011-03-09 20:58:42.286516569 +0100 +@@ -2693,11 +2693,11 @@ $nogas "GNU assembler not found, install gas-preprocessor" fi @@ -14,9 +14,9 @@ -fi +#fi - # Solaris has nanosleep in -lrt, OpenSolaris no longer needs that - check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; } -@@ -3309,7 +3309,7 @@ + if enabled network; then + check_type "sys/types.h sys/socket.h" socklen_t +@@ -3370,7 +3370,7 @@ Conflicts: Libs: -L\${libdir} -l${shortname} $(enabled shared || echo $libs) Libs.private: $(enabled shared && echo $libs) @@ -25,7 +25,7 @@ EOF cat <<EOF > $name/$name-uninstalled.pc prefix= -@@ -3323,7 +3323,7 @@ +@@ -3384,7 +3384,7 @@ Requires: $requires Conflicts: Libs: \${libdir}/${LIBPREF}${shortname}${LIBSUF} $libs | ||
[+] | Changed | ffmpeg_fix_return.diff ^ |
@@ -1,6 +1,6 @@ diff -ur ffmpeg.orig/libswscale/x86/yuv2rgb_template.c ffmpeg/libswscale/x86/yuv2rgb_template.c ---- ffmpeg.orig/libswscale/x86/yuv2rgb_template.c 2010-05-30 18:50:31.000000000 +0200 -+++ ffmpeg/libswscale/x86/yuv2rgb_template.c 2010-10-03 14:02:16.226730841 +0200 +--- ffmpeg.orig/libswscale/x86/yuv2rgb_template.c 2011-01-23 22:13:55.000000000 +0100 ++++ ffmpeg/libswscale/x86/yuv2rgb_template.c 2011-03-09 20:56:00.394764911 +0100 @@ -407,6 +407,7 @@ YUV2RGB_OPERANDS_ALPHA YUV2RGB_ENDFUNC | ||
Added | ffmpeg-0.6.201103092102git.tar.bz2 ^ | |
Deleted | ffmpeg-0.6.25702svn.tar.bz2 ^ | |
[+] | Deleted | ffmpeg-rpmlintrc ^ |
@@ -1 +0,0 @@ -addFilter("shlib-fixed-dependency") |