[5297] | 1 | #TODO: Build with openjpeg, opencore-amr, vo-amrwbenc |
---|
[1258] | 2 | #TODO: add make test to %%check section |
---|
[615] | 3 | |
---|
[1258] | 4 | #% define svndate 20100625 |
---|
[3126] | 5 | %define with_faac 1 |
---|
[1258] | 6 | %define with_vaapi 1 |
---|
[1306] | 7 | %define with_libvpx 1 |
---|
[1258] | 8 | |
---|
[5396] | 9 | #% define enable_avconv 1 |
---|
| 10 | |
---|
[5297] | 11 | %define use_prebuilt_man 1 |
---|
| 12 | |
---|
[6325] | 13 | %global major_version 0.11 |
---|
| 14 | |
---|
[615] | 15 | Summary: Digital VCR and streaming server |
---|
[1258] | 16 | Name: ffmpeg |
---|
[6325] | 17 | Version: %{major_version}.1 |
---|
[5297] | 18 | Release: 1%{?svndate:.%svndate}%{?_dist_release} |
---|
[1373] | 19 | Source: http://ffmpeg.org/releases/%{name}-%{?svndate:%svndate}%{!?svndate:%version}.tar.bz2 |
---|
[615] | 20 | |
---|
| 21 | # pre-built man files |
---|
[6241] | 22 | #$ tar Jcvf ~/rpm/SOURCES/ffmpeg/ffmpeg-0.10-doc.tar.xz ffmpeg-0.10/doc/*.html ffmpeg-0.10/doc/*.pod ffmpeg-0.10/doc/*.1 |
---|
| 23 | %{?use_prebuilt_man:Source90: ffmpeg-%{version}-doc.tar.xz} |
---|
[615] | 24 | |
---|
[5297] | 25 | %if 0%{?_with_amr:1} |
---|
| 26 | License: GPLv3+ |
---|
| 27 | %else |
---|
| 28 | License: GPLv2+ |
---|
| 29 | %endif |
---|
[615] | 30 | Group: Applications/Multimedia |
---|
| 31 | URL: http://ffmpeg.org/ |
---|
| 32 | |
---|
| 33 | BuildRequires: bzip2-devel |
---|
[5297] | 34 | BuildRequires: celt-devel |
---|
[1258] | 35 | ##BuildRequires: dirac-devel |
---|
[5297] | 36 | BuildRequires: freetype2-devel |
---|
[615] | 37 | BuildRequires: gsm-devel |
---|
| 38 | BuildRequires: imlib2-devel |
---|
| 39 | BuildRequires: libdc1394-devel |
---|
[5297] | 40 | BuildRequires: libogg-devel |
---|
[6241] | 41 | BuildRequires: libass-devel |
---|
| 42 | %{!?_without_cdio:BuildRequires: libcdio-devel} |
---|
| 43 | #libcrystalhd is currently broken |
---|
| 44 | %{?_with_crystalhd:BuildRequires: libcrystalhd-devel} |
---|
[615] | 45 | BuildRequires: libraw1394-devel |
---|
[3126] | 46 | BuildRequires: librtmp-devel >= 2.3 |
---|
[615] | 47 | BuildRequires: libtheora-devel |
---|
[3126] | 48 | %{?with_vaapi:BuildRequires:libva-devel >= 0.31.0} |
---|
[615] | 49 | BuildRequires: libvdpau-devel |
---|
| 50 | BuildRequires: libvorbis-devel |
---|
[5297] | 51 | %{?with_libvpx:BuildRequires: libvpx-devel >= 0.9.6} |
---|
[6241] | 52 | BuildRequires: libXvMC-devel |
---|
[5297] | 53 | %{?_with_opencore_amr:BuildRequires: opencore-amr-devel vo-amrwbenc-devel} |
---|
[6241] | 54 | %{!?_without_openal:BuildRequires: openal-soft-devel} |
---|
| 55 | %{?_with_opencv:BuildRequires: opencv-devel} |
---|
| 56 | %{?_with_openjpeg:BuildRequires: openjpeg-devel} |
---|
[3126] | 57 | ##BuildRequires: schroedinger-devel |
---|
[615] | 58 | BuildRequires: SDL-devel |
---|
| 59 | BuildRequires: speex-devel |
---|
[5297] | 60 | %{!?use_prebuilt_man:BuildRequires: texi2html} |
---|
[615] | 61 | BuildRequires: zlib-devel |
---|
| 62 | BuildRequires: yasm |
---|
| 63 | # *-devel packages provided by other self-build-* should only be listed |
---|
| 64 | # in self-build-%{name}.spec as PreReq. |
---|
[3126] | 65 | #BuildRequires: a52dec-devel |
---|
| 66 | #BuildRequires: faac-devel |
---|
| 67 | #BuildRequires: lame-devel |
---|
| 68 | #BuildRequires: libdca-devel |
---|
[5396] | 69 | #BuildRequires: x264-devel >= 0.0.0-18.20111216 |
---|
[3126] | 70 | #BuildRequires: xvidcore-devel |
---|
[615] | 71 | |
---|
[1258] | 72 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 73 | |
---|
[615] | 74 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 75 | |
---|
[6325] | 76 | Obsoletes: ffmpeg < %{major_version}, ffmpeg-libs < %{major_version}, ffmpeg-devel < %{major_version} |
---|
[6241] | 77 | |
---|
[615] | 78 | %description |
---|
| 79 | FFMpeg is a complete and free Internet live audio and video |
---|
| 80 | broadcasting solution for Linux/Unix. It also includes a digital |
---|
| 81 | VCR. It can encode in real time in many formats including MPEG1 audio |
---|
| 82 | and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
---|
| 83 | |
---|
| 84 | %package libs |
---|
| 85 | Summary: Libraries for %{name} |
---|
| 86 | Group: System Environment/Libraries |
---|
| 87 | |
---|
| 88 | %description libs |
---|
| 89 | FFMpeg is a complete and free Internet live audio and video |
---|
| 90 | broadcasting solution for Linux/Unix. It also includes a digital |
---|
| 91 | VCR. It can encode in real time in many formats including MPEG1 audio |
---|
| 92 | and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
---|
| 93 | |
---|
| 94 | This package contains the libraries for %{name}. |
---|
| 95 | |
---|
| 96 | %package devel |
---|
| 97 | Summary: Development package for %{name} |
---|
| 98 | Group: Development/Libraries |
---|
| 99 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 100 | Requires: pkgconfig |
---|
| 101 | |
---|
| 102 | %description devel |
---|
| 103 | FFMpeg is a complete and free Internet live audio and video |
---|
| 104 | broadcasting solution for Linux/Unix. It also includes a digital |
---|
| 105 | VCR. It can encode in real time in many formats including MPEG1 audio |
---|
| 106 | and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
---|
| 107 | |
---|
| 108 | This package contains development files for %{name}. |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | %prep |
---|
[1258] | 112 | %setup -q -n %{name}-%{?svndate:%svndate}%{!?svndate:%version} |
---|
[6241] | 113 | %{?use_prebuilt_man:tar -C .. -xf %{SOURCE90}} |
---|
[615] | 114 | |
---|
| 115 | %build |
---|
| 116 | %ifarch ppc |
---|
| 117 | # compile with -mlongcall on ppc/ppc64 (rf804) |
---|
| 118 | export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mlongcall" |
---|
| 119 | %endif |
---|
| 120 | |
---|
| 121 | ./configure \ |
---|
| 122 | --prefix=%{_prefix} \ |
---|
| 123 | --incdir=%{_includedir}/%{name} \ |
---|
| 124 | --shlibdir=%{_libdir} \ |
---|
| 125 | --libdir=%{_libdir} \ |
---|
| 126 | --mandir=%{_mandir} \ |
---|
| 127 | --arch=%{_target_cpu} \ |
---|
| 128 | %ifarch %{ix86} |
---|
| 129 | --cpu=%{_target_cpu} \ |
---|
| 130 | %endif |
---|
| 131 | %ifarch ppc |
---|
| 132 | --cpu=g3 \ |
---|
[3126] | 133 | --enable-pic \ |
---|
[615] | 134 | %endif |
---|
| 135 | --enable-runtime-cpudetect \ |
---|
| 136 | --extra-cflags="$RPM_OPT_FLAGS" \ |
---|
[5297] | 137 | %{?_with_opencore_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3} \ |
---|
[615] | 138 | --enable-bzlib \ |
---|
[6241] | 139 | %{!?_with_crystalhd:--disable-crystalhd} \ |
---|
[3126] | 140 | --enable-zlib \ |
---|
[6241] | 141 | %{?_with_frei0r:--enable-frei0r} \ |
---|
| 142 | --enable-gnutls \ |
---|
| 143 | --enable-libass \ |
---|
| 144 | %{!?_without_cdio:--enable-libcdio} \ |
---|
[5297] | 145 | --enable-libcelt \ |
---|
[615] | 146 | --enable-libdc1394 \ |
---|
[3126] | 147 | %{?_with_libdirac:--enable-libdirac} \ |
---|
| 148 | %{?with_faac:--enable-libfaac --enable-nonfree} \ |
---|
[5297] | 149 | --enable-libfreetype \ |
---|
[615] | 150 | --enable-libgsm \ |
---|
| 151 | --enable-libmp3lame \ |
---|
[6241] | 152 | %{!?_without_openal:--enable-openal} \ |
---|
| 153 | %{?_with_opencv:--enable-libopencv} \ |
---|
[615] | 154 | %{?_with_openjpeg:--enable-libopenjpeg} \ |
---|
[3126] | 155 | --enable-librtmp \ |
---|
| 156 | --enable-libspeex \ |
---|
[615] | 157 | --enable-libtheora \ |
---|
| 158 | --enable-libvorbis \ |
---|
[1258] | 159 | %{?with_libvpx:--enable-libvpx} \ |
---|
[615] | 160 | --enable-libx264 \ |
---|
| 161 | --enable-libxvid \ |
---|
[1258] | 162 | \ |
---|
[615] | 163 | --enable-x11grab \ |
---|
| 164 | --enable-avfilter \ |
---|
| 165 | --enable-postproc \ |
---|
| 166 | --enable-pthreads \ |
---|
| 167 | --disable-static \ |
---|
| 168 | --enable-shared \ |
---|
| 169 | --enable-gpl \ |
---|
[5297] | 170 | %{?use_prebuilt_man:--disable-doc} \ |
---|
[615] | 171 | --disable-debug \ |
---|
[3126] | 172 | --disable-stripping \ |
---|
[5396] | 173 | \ |
---|
| 174 | %{?enable_avconv:--enable-avconv} \ |
---|
[3126] | 175 | ; |
---|
[615] | 176 | |
---|
[5297] | 177 | %__make %{?_smp_mflags} |
---|
[615] | 178 | |
---|
[5297] | 179 | %__make alltools |
---|
| 180 | |
---|
| 181 | |
---|
[615] | 182 | %install |
---|
| 183 | %__make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 184 | |
---|
[5297] | 185 | ## install tool/qt-faststart |
---|
| 186 | %__install -pm755 tools/qt-faststart $RPM_BUILD_ROOT%{_bindir} |
---|
[3126] | 187 | |
---|
[5396] | 188 | ## install man |
---|
[615] | 189 | %__mkdir_p $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
[5297] | 190 | %__install -m0644 doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
[615] | 191 | |
---|
| 192 | |
---|
| 193 | %clean |
---|
| 194 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 195 | |
---|
| 196 | %post libs -p /sbin/ldconfig |
---|
| 197 | |
---|
| 198 | %postun libs -p /sbin/ldconfig |
---|
| 199 | |
---|
| 200 | %files |
---|
| 201 | %defattr(-,root,root,-) |
---|
| 202 | %doc COPYING.* CREDITS Changelog README doc/ffserver.conf |
---|
[5396] | 203 | %{?enable_avconv:%{_bindir}/avconv} |
---|
[3126] | 204 | %{_bindir}/ffmpeg |
---|
| 205 | %{_bindir}/ffplay |
---|
| 206 | %{_bindir}/ffprobe |
---|
| 207 | %{_bindir}/ffserver |
---|
[5297] | 208 | %{_bindir}/qt-faststart |
---|
[5396] | 209 | %{?enable_avconv:%{_mandir}/man1/avconv.1*} |
---|
[3126] | 210 | %{_mandir}/man1/ffmpeg.1* |
---|
| 211 | %{_mandir}/man1/ffplay.1* |
---|
| 212 | %{_mandir}/man1/ffprobe.1* |
---|
| 213 | %{_mandir}/man1/ffserver.1* |
---|
[615] | 214 | %{_datadir}/ffmpeg |
---|
| 215 | |
---|
| 216 | |
---|
| 217 | %files libs |
---|
| 218 | %defattr(-,root,root,-) |
---|
| 219 | %{_libdir}/lib*.so.* |
---|
| 220 | |
---|
| 221 | %files devel |
---|
| 222 | %defattr(-,root,root,-) |
---|
[5297] | 223 | %doc MAINTAINERS doc/APIchanges doc/*.txt doc/*.html |
---|
[615] | 224 | %{_includedir}/ffmpeg |
---|
| 225 | %{_libdir}/pkgconfig/lib*.pc |
---|
| 226 | %{_libdir}/lib*.so |
---|
| 227 | |
---|
| 228 | |
---|
| 229 | %changelog |
---|
[6325] | 230 | * Mon Jun 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.11.1-1 |
---|
| 231 | - new upstream release |
---|
| 232 | |
---|
[6241] | 233 | * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.11-1 |
---|
| 234 | - new upstream release |
---|
| 235 | |
---|
| 236 | * Sat Feb 18 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.10-1 |
---|
| 237 | - new upstream release |
---|
| 238 | |
---|
[5396] | 239 | * Wed Jan 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.1-1 |
---|
| 240 | - new upstream release |
---|
| 241 | |
---|
[5297] | 242 | * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.9-1 |
---|
| 243 | - new upstream release |
---|
| 244 | - enable CELT decoding via libcelt |
---|
| 245 | - enable FreeType support |
---|
| 246 | - drop faad2 support (dropped upstream) |
---|
[4991] | 247 | |
---|
[4754] | 248 | * Mon Sep 12 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-2 |
---|
| 249 | - change release to sync with self-build-ffmpeg-vl.spec |
---|
| 250 | |
---|
[3763] | 251 | * Sun May 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.3-1 |
---|
| 252 | - new upstream release |
---|
| 253 | |
---|
[3538] | 254 | * Tue Apr 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.2-1 |
---|
| 255 | - new upstream release |
---|
| 256 | |
---|
[3126] | 257 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-2 |
---|
| 258 | - required latest x264 build |
---|
| 259 | - added BuildRequires: librtmp-devel >= 2.3 |
---|
| 260 | - build PIC objects on PPC |
---|
| 261 | #- add qt-faststart tool |
---|
| 262 | |
---|
[2156] | 263 | * Sat Oct 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-1 |
---|
| 264 | - new upstream release |
---|
| 265 | |
---|
[1373] | 266 | * Sat Jul 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-4 |
---|
| 267 | - change release to sync with self-build-ffmpeg-vl.spec |
---|
| 268 | |
---|
[1306] | 269 | * Sun Jul 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-3 |
---|
| 270 | - added BuildRequires: libvpx-devel >= 0.9.1 |
---|
| 271 | |
---|
[1258] | 272 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-2 |
---|
| 273 | - new upstream release |
---|
| 274 | |
---|
[861] | 275 | * Sun Apr 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-1.20100410 |
---|
| 276 | - bumped version to pre-0.6 |
---|
| 277 | |
---|
| 278 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-13.20100410 |
---|
| 279 | - updated source snapshot 20100410 |
---|
| 280 | |
---|
[789] | 281 | * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-12.20100401 |
---|
| 282 | - change release to sync with self-build-ffmpeg-vl.spec |
---|
| 283 | |
---|
[788] | 284 | * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-11.20100401 |
---|
| 285 | - change release to sync with self-build-ffmpeg-vl.spec |
---|
| 286 | |
---|
[786] | 287 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-10.20100401 |
---|
| 288 | - updated source snapshot 20100401 |
---|
| 289 | |
---|
| 290 | * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-9.20100216 |
---|
| 291 | - updated source snapshot 20100326 |
---|
| 292 | |
---|
[615] | 293 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-8.20100216 |
---|
| 294 | - change release to sync with self-build-ffmpeg |
---|
| 295 | |
---|
| 296 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-7.20100216 |
---|
| 297 | - updated source snapshot 20100216 |
---|
| 298 | - rebuild with recent x264-devel |
---|
| 299 | - updated pre-built man files: ffmpeg.1 ffplay.1 ffserver.1 |
---|
| 300 | - added BuildRequires: libvdpau-devel |
---|
| 301 | |
---|
| 302 | * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-6 |
---|
| 303 | - change release to sync with self-build-ffmpeg |
---|
| 304 | |
---|
| 305 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-5 |
---|
| 306 | - change release to sync with self-build-ffmpeg |
---|
| 307 | |
---|
| 308 | * Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-4 |
---|
| 309 | - applied ffmpeg-0.5-disable-texi2html.patch |
---|
| 310 | - dropped BuildRequires: texi2html |
---|
| 311 | |
---|
| 312 | * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3 |
---|
| 313 | - change release to sync with self-build-ffmpeg |
---|
| 314 | |
---|
| 315 | * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-2 |
---|
| 316 | - corrected release number |
---|
| 317 | |
---|
| 318 | * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-1 |
---|
| 319 | - new upstream release |
---|
| 320 | - added BuildRequires: |
---|
| 321 | - speex-devel |
---|
| 322 | - bzip2-devel |
---|
| 323 | |
---|
| 324 | * Sat Feb 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090227.8 |
---|
| 325 | - 20090227 snapshot |
---|
| 326 | |
---|
| 327 | * Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.7 |
---|
| 328 | - added %%{?_with_amr:%%{_datadir}/%%{name}} in %%files |
---|
| 329 | |
---|
| 330 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.6 |
---|
| 331 | - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel |
---|
| 332 | - dropped Requires: a52dec, faad2 in ffmpeg-libs |
---|
| 333 | |
---|
| 334 | * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.5 |
---|
| 335 | - 20090202 snapshot |
---|
| 336 | |
---|
| 337 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090110.4 |
---|
| 338 | - 20090110 snapshot |
---|
| 339 | - dropped some patches |
---|
| 340 | |
---|
| 341 | * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-15488.1 |
---|
| 342 | - source updated (r15488) |
---|
| 343 | - fixed License: GPLv2+ |
---|
| 344 | - added BuildRequires: gsm-devel libdc1394-devel libraw1394-devel |
---|
| 345 | - added BuildRequires: yasm (only %%ix86) |
---|
| 346 | - applied ffmpeg-cpu.patch (merged from RPM Fusion) |
---|
| 347 | |
---|
| 348 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-11662.3vl4 |
---|
| 349 | - spec in utf8 |
---|
| 350 | |
---|
| 351 | * Tue May 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.9-11662.2vl4 |
---|
| 352 | - change release to sync with self-build-ffmpeg |
---|
| 353 | |
---|
| 354 | * Wed Apr 16 2008 Atsushi SHICHI <ats777@gmail.com> 0.4.9-11662.1vl4 |
---|
| 355 | - drop "Patch100: ffmpeg-vine.patch". |
---|
| 356 | |
---|
| 357 | * Mon Apr 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128.1vl4 |
---|
| 358 | - build with new versioning policy |
---|
| 359 | - change to use svn export from svn checkout on post install |
---|
| 360 | - fix ffmpeg-vine.patch for libswscale/swscale.c.rej |
---|
| 361 | |
---|
| 362 | * Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl2 |
---|
| 363 | - [self-build-ffmpeg.spec] |
---|
| 364 | For all pre-required package that is provied by self-build, |
---|
| 365 | changed to its self-build package |
---|
| 366 | |
---|
| 367 | * Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl1 |
---|
| 368 | - initial build for Vine Linux 4.2 |
---|
| 369 | - snapshot 2008/01/28 + some Rev.11662 2008/01/29 |
---|
| 370 | |
---|
| 371 | ### end of file |
---|