[615] | 1 | #TODO: Build with openjpeg |
---|
| 2 | %define name ffmpeg |
---|
[861] | 3 | %define version 0.6 |
---|
| 4 | %define svndate 20100410 |
---|
| 5 | %define release 1%{?svndate:.%svndate}%{?_dist_release} |
---|
[615] | 6 | |
---|
| 7 | Summary: Digital VCR and streaming server |
---|
| 8 | Name: %{name} |
---|
| 9 | Version: %{version} |
---|
| 10 | Release: %{release} |
---|
| 11 | #Source: %{name}-%{version}.tar.bz2 |
---|
| 12 | Source: %{name}-%{?svndate:%svndate}.tar.bz2 |
---|
| 13 | Source1: %{name}-snapshot.sh |
---|
| 14 | |
---|
| 15 | # pre-built man files |
---|
| 16 | Source90: ffmpeg.1.gz |
---|
| 17 | Source91: ffplay.1.gz |
---|
| 18 | Source92: ffserver.1.gz |
---|
[786] | 19 | Source93: ffprobe.1.gz |
---|
[615] | 20 | |
---|
| 21 | # get rid of textrels on x86_64 in yasm code (from RPM Fusion) |
---|
| 22 | #Patch0: %{name}-textrel.patch |
---|
| 23 | |
---|
| 24 | License: GPLv2+ |
---|
| 25 | Group: Applications/Multimedia |
---|
| 26 | URL: http://ffmpeg.org/ |
---|
| 27 | |
---|
| 28 | BuildRequires: bzip2-devel |
---|
| 29 | BuildRequires: gsm-devel |
---|
| 30 | BuildRequires: imlib2-devel |
---|
| 31 | BuildRequires: libdc1394-devel |
---|
| 32 | BuildRequires: libraw1394-devel |
---|
| 33 | BuildRequires: libtheora-devel |
---|
| 34 | BuildRequires: libvdpau-devel |
---|
| 35 | BuildRequires: libvorbis-devel |
---|
| 36 | ##BuildRequires: openjpeg-devel |
---|
| 37 | BuildRequires: SDL-devel |
---|
| 38 | BuildRequires: speex-devel |
---|
| 39 | ##BuildRequires: texi2html |
---|
| 40 | BuildRequires: zlib-devel |
---|
| 41 | BuildRequires: libogg-devel |
---|
| 42 | %ifarch %{ix86} x86_64 |
---|
| 43 | BuildRequires: yasm |
---|
| 44 | %endif |
---|
| 45 | # *-devel packages provided by other self-build-* should only be listed |
---|
| 46 | # in self-build-%{name}.spec as PreReq. |
---|
| 47 | #BuildRequires: xvidcore-devel, faac-devel, lame-devel |
---|
| 48 | #BuildRequires: x264-devel, libdca-devel, a52dec-devel |
---|
| 49 | #BuildRequires: faad2-devel |
---|
| 50 | |
---|
| 51 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 52 | |
---|
| 53 | %description |
---|
| 54 | FFMpeg is a complete and free Internet live audio and video |
---|
| 55 | broadcasting solution for Linux/Unix. It also includes a digital |
---|
| 56 | VCR. It can encode in real time in many formats including MPEG1 audio |
---|
| 57 | and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
---|
| 58 | |
---|
| 59 | %package libs |
---|
| 60 | Group: System Environment/Libraries |
---|
| 61 | Summary: Libraries for %{name} |
---|
| 62 | Group: System Environment/Libraries |
---|
| 63 | |
---|
| 64 | %description libs |
---|
| 65 | FFMpeg is a complete and free Internet live audio and video |
---|
| 66 | broadcasting solution for Linux/Unix. It also includes a digital |
---|
| 67 | VCR. It can encode in real time in many formats including MPEG1 audio |
---|
| 68 | and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash. |
---|
| 69 | |
---|
| 70 | This package contains the libraries for %{name}. |
---|
| 71 | |
---|
| 72 | %package devel |
---|
| 73 | Summary: Development package for %{name} |
---|
| 74 | Group: Development/Libraries |
---|
| 75 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 76 | Requires: pkgconfig |
---|
| 77 | |
---|
| 78 | %description devel |
---|
| 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 | This package contains development files for %{name}. |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | %prep |
---|
| 88 | %setup -q -n %{name}-%{svndate} |
---|
| 89 | #% setup -q |
---|
| 90 | #%patch0 -p1 -b .textrel |
---|
| 91 | |
---|
| 92 | %build |
---|
| 93 | %ifarch ppc |
---|
| 94 | # compile with -mlongcall on ppc/ppc64 (rf804) |
---|
| 95 | export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mlongcall" |
---|
| 96 | %endif |
---|
| 97 | |
---|
| 98 | ./configure \ |
---|
| 99 | --prefix=%{_prefix} \ |
---|
| 100 | --incdir=%{_includedir}/%{name} \ |
---|
| 101 | --shlibdir=%{_libdir} \ |
---|
| 102 | --libdir=%{_libdir} \ |
---|
| 103 | --mandir=%{_mandir} \ |
---|
| 104 | --arch=%{_target_cpu} \ |
---|
| 105 | %ifarch %{ix86} |
---|
| 106 | --cpu=%{_target_cpu} \ |
---|
| 107 | %endif |
---|
| 108 | %ifarch ppc |
---|
| 109 | --cpu=g3 \ |
---|
| 110 | %endif |
---|
| 111 | --enable-runtime-cpudetect \ |
---|
| 112 | --extra-cflags="$RPM_OPT_FLAGS" \ |
---|
| 113 | %{?_with_opencore_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \ |
---|
| 114 | --enable-bzlib \ |
---|
| 115 | --enable-libdc1394 \ |
---|
| 116 | --enable-libfaac --enable-nonfree \ |
---|
| 117 | --enable-libfaad \ |
---|
| 118 | --enable-libgsm \ |
---|
| 119 | --enable-libmp3lame \ |
---|
| 120 | %{?_with_openjpeg:--enable-libopenjpeg} \ |
---|
| 121 | --enable-libtheora \ |
---|
| 122 | --enable-libvorbis \ |
---|
| 123 | --enable-libx264 \ |
---|
| 124 | --enable-libxvid \ |
---|
| 125 | --enable-x11grab \ |
---|
| 126 | --enable-avfilter \ |
---|
| 127 | --enable-avfilter-lavf \ |
---|
| 128 | --enable-postproc \ |
---|
| 129 | --enable-swscale \ |
---|
| 130 | --enable-pthreads \ |
---|
| 131 | --disable-static \ |
---|
| 132 | --enable-shared \ |
---|
| 133 | --enable-gpl \ |
---|
| 134 | --disable-debug \ |
---|
| 135 | --disable-stripping |
---|
| 136 | |
---|
| 137 | %{__make} %{?_smp_mflags} |
---|
| 138 | #% {__make} |
---|
| 139 | #%{__make} documentation |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | %install |
---|
| 143 | %__make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 144 | |
---|
| 145 | ## install man |
---|
| 146 | %__mkdir_p $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
[786] | 147 | %__install %{SOURCE90} %{SOURCE91} %{SOURCE92} %{SOURCE93} \ |
---|
| 148 | $RPM_BUILD_ROOT%{_mandir}/man1/ |
---|
[615] | 149 | |
---|
| 150 | |
---|
| 151 | %clean |
---|
| 152 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 153 | |
---|
| 154 | %post libs -p /sbin/ldconfig |
---|
| 155 | |
---|
| 156 | %postun libs -p /sbin/ldconfig |
---|
| 157 | |
---|
| 158 | %files |
---|
| 159 | %defattr(-,root,root,-) |
---|
| 160 | %doc COPYING.* CREDITS Changelog README doc/ffserver.conf |
---|
[786] | 161 | %{_bindir}/ff* |
---|
| 162 | %{_mandir}/man1/ff*.1* |
---|
[615] | 163 | %{_datadir}/ffmpeg |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | %files libs |
---|
| 167 | %defattr(-,root,root,-) |
---|
| 168 | %{_libdir}/lib*.so.* |
---|
| 169 | |
---|
| 170 | %files devel |
---|
| 171 | %defattr(-,root,root,-) |
---|
| 172 | %doc MAINTAINERS doc/APIchanges doc/TODO doc/*.txt |
---|
| 173 | %{_includedir}/ffmpeg |
---|
| 174 | %{_libdir}/pkgconfig/lib*.pc |
---|
| 175 | %{_libdir}/lib*.so |
---|
| 176 | |
---|
| 177 | |
---|
| 178 | %changelog |
---|
[861] | 179 | * Sun Apr 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.6-1.20100410 |
---|
| 180 | - bumped version to pre-0.6 |
---|
| 181 | |
---|
| 182 | * Sun Apr 11 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-13.20100410 |
---|
| 183 | - updated source snapshot 20100410 |
---|
| 184 | |
---|
[789] | 185 | * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-12.20100401 |
---|
| 186 | - change release to sync with self-build-ffmpeg-vl.spec |
---|
| 187 | |
---|
[788] | 188 | * Sat Apr 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-11.20100401 |
---|
| 189 | - change release to sync with self-build-ffmpeg-vl.spec |
---|
| 190 | |
---|
[786] | 191 | * Fri Apr 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-10.20100401 |
---|
| 192 | - updated source snapshot 20100401 |
---|
| 193 | |
---|
| 194 | * Sat Mar 27 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-9.20100216 |
---|
| 195 | - updated source snapshot 20100326 |
---|
| 196 | |
---|
[615] | 197 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-8.20100216 |
---|
| 198 | - change release to sync with self-build-ffmpeg |
---|
| 199 | |
---|
| 200 | * Wed Feb 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-7.20100216 |
---|
| 201 | - updated source snapshot 20100216 |
---|
| 202 | - rebuild with recent x264-devel |
---|
| 203 | - updated pre-built man files: ffmpeg.1 ffplay.1 ffserver.1 |
---|
| 204 | - added BuildRequires: libvdpau-devel |
---|
| 205 | |
---|
| 206 | * Sat Jun 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-6 |
---|
| 207 | - change release to sync with self-build-ffmpeg |
---|
| 208 | |
---|
| 209 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-5 |
---|
| 210 | - change release to sync with self-build-ffmpeg |
---|
| 211 | |
---|
| 212 | * Wed May 13 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-4 |
---|
| 213 | - applied ffmpeg-0.5-disable-texi2html.patch |
---|
| 214 | - dropped BuildRequires: texi2html |
---|
| 215 | |
---|
| 216 | * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-3 |
---|
| 217 | - change release to sync with self-build-ffmpeg |
---|
| 218 | |
---|
| 219 | * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-2 |
---|
| 220 | - corrected release number |
---|
| 221 | |
---|
| 222 | * Wed Mar 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5-1 |
---|
| 223 | - new upstream release |
---|
| 224 | - added BuildRequires: |
---|
| 225 | - speex-devel |
---|
| 226 | - bzip2-devel |
---|
| 227 | |
---|
| 228 | * Sat Feb 28 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090227.8 |
---|
| 229 | - 20090227 snapshot |
---|
| 230 | |
---|
| 231 | * Tue Feb 24 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.7 |
---|
| 232 | - added %%{?_with_amr:%%{_datadir}/%%{name}} in %%files |
---|
| 233 | |
---|
| 234 | * Sun Feb 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.6 |
---|
| 235 | - changed to PreReq: self-build-faad2 >= 2.0 from faad2-devel |
---|
| 236 | - dropped Requires: a52dec, faad2 in ffmpeg-libs |
---|
| 237 | |
---|
| 238 | * Wed Feb 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090202.5 |
---|
| 239 | - 20090202 snapshot |
---|
| 240 | |
---|
| 241 | * Sun Jan 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-20090110.4 |
---|
| 242 | - 20090110 snapshot |
---|
| 243 | - dropped some patches |
---|
| 244 | |
---|
| 245 | * Thu Nov 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-15488.1 |
---|
| 246 | - source updated (r15488) |
---|
| 247 | - fixed License: GPLv2+ |
---|
| 248 | - added BuildRequires: gsm-devel libdc1394-devel libraw1394-devel |
---|
| 249 | - added BuildRequires: yasm (only %%ix86) |
---|
| 250 | - applied ffmpeg-cpu.patch (merged from RPM Fusion) |
---|
| 251 | |
---|
| 252 | * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-11662.3vl4 |
---|
| 253 | - spec in utf8 |
---|
| 254 | |
---|
| 255 | * Tue May 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.9-11662.2vl4 |
---|
| 256 | - change release to sync with self-build-ffmpeg |
---|
| 257 | |
---|
| 258 | * Wed Apr 16 2008 Atsushi SHICHI <ats777@gmail.com> 0.4.9-11662.1vl4 |
---|
| 259 | - drop "Patch100: ffmpeg-vine.patch". |
---|
| 260 | |
---|
| 261 | * Mon Apr 7 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128.1vl4 |
---|
| 262 | - build with new versioning policy |
---|
| 263 | - change to use svn export from svn checkout on post install |
---|
| 264 | - fix ffmpeg-vine.patch for libswscale/swscale.c.rej |
---|
| 265 | |
---|
| 266 | * Thu Mar 13 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl2 |
---|
| 267 | - [self-build-ffmpeg.spec] |
---|
| 268 | For all pre-required package that is provied by self-build, |
---|
| 269 | changed to its self-build package |
---|
| 270 | |
---|
| 271 | * Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.9-0.20080128vl1 |
---|
| 272 | - initial build for Vine Linux 4.2 |
---|
| 273 | - snapshot 2008/01/28 + some Rev.11662 2008/01/29 |
---|
| 274 | |
---|
| 275 | ### end of file |
---|