]>
Commit | Line | Data |
---|---|---|
94447fde | 1 | # TODO |
cbdd2688 | 2 | # - is bug803 patch still needed? the code changed somehow |
328d1431 | 3 | # - libnut enabled no (http://www.nut-container.org/) |
197f4211 | 4 | # |
2b3b2117 | 5 | # Conditional build: |
38cefaee | 6 | %bcond_with nonfree # non free options of package (currently: faac) |
294c9b1e | 7 | %bcond_without autoreqdep # don't care about package name deps generated by rpm |
1ef27ea1 JB |
8 | %bcond_without va # VAAPI (Video Acceleration API) |
9 | %bcond_without vpx # VP8, a high-quality video codec | |
10 | %bcond_without doc # don't build docs | |
314ef0df | 11 | |
cbdd2688 JB |
12 | Summary: FFmpeg - a very fast video and audio converter |
13 | Summary(pl.UTF-8): FFmpeg - szybki konwerter audio/wideo | |
9fc4ad22 | 14 | Name: ffmpeg |
cbdd2688 | 15 | Version: 0.8 |
eee9c8e8 | 16 | Release: 1 |
9cf4d8a4 | 17 | # LGPL or GPL, chosen at configure time (GPL version is more featured) |
38cefaee JB |
18 | # (postprocessing, some filters, x264, xavs, xvid, x11grab) |
19 | # using v3 allows Apache-licensed libs (opencore-amr, libvo-*enc) | |
0b43f655 | 20 | License: GPL v3+ with LGPL v3+ parts |
fde29260 | 21 | Group: Applications/Multimedia |
1ef27ea1 | 22 | Source0: http://ffmpeg.org/releases/%{name}-%{version}.tar.bz2 |
cbdd2688 | 23 | # Source0-md5: 7e9b8c8a6952de0c477027e48249f3ed |
fde29260 ER |
24 | Source1: ffserver.init |
25 | Source2: ffserver.sysconfig | |
38cf6de3 | 26 | Source3: ffserver.conf |
0b43f655 | 27 | Patch0: %{name}-bug-803.patch |
3a7b84be | 28 | Patch1: %{name}-gsm.patch |
85f7cea1 | 29 | URL: http://www.ffmpeg.org/ |
2a60eebe | 30 | BuildRequires: SDL-devel |
cbdd2688 | 31 | BuildRequires: alsa-lib-devel |
38cefaee | 32 | BuildRequires: bzip2-devel |
cbdd2688 | 33 | BuildRequires: celt-devel |
7ca51e4c | 34 | BuildRequires: dirac-devel >= 1.0.0 |
38cefaee | 35 | %{?with_nonfree:BuildRequires: faac-devel} |
2a60eebe | 36 | BuildRequires: freetype-devel |
5dc039cb | 37 | BuildRequires: frei0r-devel |
4bee03f0 JB |
38 | %ifarch ppc |
39 | # require version with altivec support fixed | |
40 | BuildRequires: gcc >= 5:3.3.2-3 | |
41 | %endif | |
cbdd2688 JB |
42 | BuildRequires: jack-audio-connection-kit-devel |
43 | BuildRequires: lame-libs-devel >= 3.98.3 | |
6382c99d | 44 | BuildRequires: libdc1394-devel |
f1669449 | 45 | BuildRequires: libgsm-devel |
94447fde | 46 | BuildRequires: libraw1394-devel |
cbdd2688 | 47 | BuildRequires: librtmp-devel |
9042663c | 48 | BuildRequires: libtheora-devel >= 1.0-0.beta3 |
4814ac84 | 49 | BuildRequires: libtool >= 2:1.4d-3 |
64f8f109 | 50 | %{?with_va:BuildRequires: libva-devel >= 1.0.3} |
0b43f655 | 51 | BuildRequires: libvdpau-devel |
e380e18a | 52 | BuildRequires: libvorbis-devel |
065be88e | 53 | %{?with_vpx:BuildRequires: libvpx-devel >= 0.9.6} |
d1ecc96e | 54 | # X264_BUILD >= 83 |
cbdd2688 | 55 | BuildRequires: libx264-devel >= 0.1.3-1.20110625_2245 |
0b43f655 AM |
56 | BuildRequires: opencore-amr-devel |
57 | BuildRequires: openjpeg-devel >= 1.3-2 | |
17a2d1a8 | 58 | BuildRequires: speex-devel >= 1:1.2-rc1 |
e1fe03f7 | 59 | %ifarch %{ix86} |
60 | %ifnarch i386 i486 | |
76243dbd JB |
61 | BuildRequires: nasm |
62 | %endif | |
e1fe03f7 | 63 | %endif |
136f0f45 | 64 | BuildRequires: perl-Encode |
1463656a | 65 | BuildRequires: perl-tools-pod |
ef3c0513 | 66 | BuildRequires: pkgconfig |
db8052c8 | 67 | BuildRequires: rpmbuild(macros) >= 1.470 |
126fb805 | 68 | BuildRequires: schroedinger-devel |
64f8f109 ER |
69 | %{?with_doc:BuildRequires: tetex} |
70 | %{?with_doc:BuildRequires: texi2html} | |
71 | %{?with_doc:BuildRequires: texinfo} | |
5dc039cb JB |
72 | BuildRequires: vo-aacenc-devel |
73 | BuildRequires: vo-amrwbenc-devel | |
74 | BuildRequires: xavs-devel | |
cbdd2688 JB |
75 | BuildRequires: xorg-lib-libXext-devel |
76 | BuildRequires: xorg-lib-libXfixes-devel | |
46f2a56b | 77 | BuildRequires: xvid-devel >= 1:1.1.0 |
33a1c0f3 | 78 | BuildRequires: zlib-devel |
57ebb8ad | 79 | %{?with_autoreqdep:BuildConflicts: libpostproc} |
54ec280e | 80 | Requires: %{name}-libs = %{version}-%{release} |
839e806f | 81 | Requires: xvid >= 1:1.1.0 |
af49d6ab | 82 | Obsoletes: libpostproc |
539b540f | 83 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9fc4ad22 | 84 | |
2a60eebe JB |
85 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
86 | ||
c01d7857 PS |
87 | %define specflags -fno-strict-aliasing |
88 | ||
89 | # -fomit-frame-pointer is always needed on x86 due to lack of registers (-fPIC takes one) | |
90 | %define specflags_ia32 -fomit-frame-pointer | |
91 | # -mmmx is needed to enable <mmintrin.h> code. | |
92 | %define specflags_i586 -mmmx | |
93 | %define specflags_i686 -mmmx | |
1162803a | 94 | %define specflags_ppc -fPIC |
c01d7857 | 95 | |
9fc4ad22 | 96 | %description |
85f7cea1 ER |
97 | FFmpeg is a complete solution to record, convert and stream audio and |
98 | video. It is a command line tool to convert one video file format to | |
99 | another. It also supports grabbing and encoding in real time from a TV | |
100 | card. | |
9fc4ad22 | 101 | |
cdb7b42e | 102 | %description -l pl.UTF-8 |
cbdd2688 JB |
103 | FFmpeg to kompletne rozwiązanie nagrywania, konwersji i transmisji |
104 | strumieni dźwięku i obrazu. Jest to działające z linii poleceń | |
105 | narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje | |
106 | także przechwytywanie i kodowanie w czasie rzeczywistym z karty | |
107 | telewizyjnej. | |
9fc4ad22 | 108 | |
54ec280e PG |
109 | %package libs |
110 | Summary: ffmpeg libraries | |
adcc0f76 | 111 | Summary(pl.UTF-8): Biblioteki ffmpeg |
54ec280e PG |
112 | Group: Libraries |
113 | ||
114 | %description libs | |
cbdd2688 JB |
115 | This package contains the ffmpeg shared libraries: |
116 | - the codec library (libavcodec). It supports most existing encoding | |
117 | formats (MPEG, DivX, MPEG4, AC3, DV...), | |
118 | - demuxer library (libavformat). It supports most existing file | |
119 | formats (AVI, MPEG, OGG, Matroska, ASF...), | |
120 | - video postprocessing library (libpostproc). | |
54ec280e | 121 | |
cdb7b42e | 122 | %description libs -l pl.UTF-8 |
cbdd2688 JB |
123 | Ten pakiet zawiera biblioteki współdzielone ffmpeg: |
124 | - bibliotekę kodeków (libavcodec); obsługuje większość istniejących | |
125 | formatów kodowania (MPEG, DivX, MPEG4, AC3, DV...), | |
126 | - bibliotekę demuksera (libavformat); obsługuje większość istniejących | |
127 | formatów plików (AVI, MPEG, OGG, Matroska, ASF...), | |
128 | - bibliotekę postprocessingu (libpostproc). | |
54ec280e | 129 | |
af49d6ab JB |
130 | %package devel |
131 | Summary: ffmpeg header files | |
adcc0f76 | 132 | Summary(pl.UTF-8): Pliki nagłówkowe ffmpeg |
af49d6ab | 133 | Group: Development/Libraries |
54ec280e | 134 | Requires: %{name}-libs = %{version}-%{release} |
38cefaee JB |
135 | # Libs.private from *.pc (unreasonably they are all the same) |
136 | Requires: SDL-devel | |
137 | Requires: alsa-lib-devel | |
138 | Requires: bzip2-devel | |
139 | Requires: celt-devel | |
140 | Requires: dirac-devel >= 1.0.0 | |
141 | %{?with_nonfree:Requires: faac-devel} | |
142 | Requires: jack-audio-connection-kit-devel | |
143 | Requires: lame-libs-devel >= 3.98.3 | |
144 | Requires: libdc1394-devel | |
bf479bc6 | 145 | Requires: libgsm-devel |
95e2cf29 | 146 | Requires: libraw1394-devel |
38cefaee JB |
147 | Requires: librtmp-devel |
148 | Requires: libtheora-devel >= 1.0-0.beta3 | |
149 | %{?with_va:Requires: libva-devel >= 1.0.3} | |
33a1c0f3 | 150 | Requires: libvorbis-devel |
38cefaee JB |
151 | %{?with_vpx:Requires: libvpx-devel >= 0.9.6} |
152 | Requires: libx264-devel >= 0.1.3-1.20110625_2245 | |
153 | Requires: opencore-amr-devel | |
154 | Requires: openjpeg-devel >= 1.3-2 | |
155 | Requires: schroedinger-devel | |
156 | Requires: speex-devel >= 1:1.2-rc1 | |
157 | Requires: vo-aacenc-devel | |
158 | Requires: vo-amrwbenc-devel | |
159 | Requires: xavs-devel | |
160 | Requires: xorg-lib-libXext-devel | |
161 | Requires: xorg-lib-libXfixes-devel | |
46f2a56b | 162 | Requires: xvid-devel >= 1:1.1.0 |
33a1c0f3 | 163 | Requires: zlib-devel |
8152d6a2 | 164 | Obsoletes: libpostproc-devel |
af49d6ab JB |
165 | |
166 | %description devel | |
167 | ffmpeg header files. | |
168 | ||
cdb7b42e JR |
169 | %description devel -l pl.UTF-8 |
170 | Pliki nagłówkowe ffmpeg. | |
af49d6ab JB |
171 | |
172 | %package static | |
173 | Summary: ffmpeg static libraries | |
adcc0f76 | 174 | Summary(pl.UTF-8): Statyczne biblioteki ffmpeg |
af49d6ab JB |
175 | Group: Development/Libraries |
176 | Requires: %{name}-devel = %{version}-%{release} | |
177 | ||
178 | %description static | |
179 | ffmpeg static libraries (libavcodec and libavformat). | |
180 | ||
cdb7b42e | 181 | %description static -l pl.UTF-8 |
af49d6ab JB |
182 | Statyczne biblioteki ffmpeg (libavcodec i libavformat). |
183 | ||
2a60eebe JB |
184 | %package ffplay |
185 | Summary: FFplay - SDL-based media player | |
adcc0f76 | 186 | Summary(pl.UTF-8): FFplay - odtwarzacz mediów oparty na SDL |
2a60eebe | 187 | Group: Applications/Multimedia |
54ec280e | 188 | Requires: %{name}-libs = %{version}-%{release} |
2a60eebe JB |
189 | |
190 | %description ffplay | |
191 | FFplay is a very simple and portable media player using the FFmpeg | |
192 | libraries and the SDL library. It is mostly used as a test bench for | |
193 | the various APIs of FFmpeg. | |
194 | ||
cdb7b42e JR |
195 | %description ffplay -l pl.UTF-8 |
196 | FFplay to bardzo prosty i przenośny odtwarzacz mediów używający | |
197 | bibliotek FFmpeg oraz biblioteki SDL. Jest używany głównie do | |
198 | testowania różnych API FFmpeg. | |
2a60eebe | 199 | |
fde29260 ER |
200 | %package ffserver |
201 | Summary: FFserver video server | |
adcc0f76 | 202 | Summary(pl.UTF-8): FFserver - serwer strumieni obrazu |
fde29260 | 203 | Group: Daemons |
593d3a64 | 204 | Requires(post,preun): /sbin/chkconfig |
67103923 | 205 | Requires: %{name}-libs = %{version}-%{release} |
2305d791 | 206 | Requires: rc-scripts >= 0.4.0.10 |
fde29260 ER |
207 | |
208 | %description ffserver | |
209 | FFserver is a streaming server for both audio and video. It supports | |
210 | several live feeds, streaming from files and time shifting on live | |
211 | feeds (you can seek to positions in the past on each live feed, | |
212 | provided you specify a big enough feed storage in ffserver.conf). | |
213 | ||
cdb7b42e JR |
214 | %description ffserver -l pl.UTF-8 |
215 | FFserver to serwer strumieni dla dźwięku i obrazu. Obsługuje kilka | |
216 | źródeł na żywo, przekazywanie strumieni z plików i przesuwanie w | |
217 | czasie dla źródeł na żywo (można przeskakiwać na położenia w | |
218 | przeszłości dla każdego źródła na żywo, pod warunkiem odpowiednio | |
219 | dużej przestrzeni na dane skonfigurowanej w ffserver.conf). | |
4e0bd1da | 220 | |
9fc4ad22 | 221 | %prep |
aed8e8c9 | 222 | %setup -q |
f1669449 | 223 | %patch0 -p1 |
3a7b84be | 224 | %patch1 -p0 |
9fc4ad22 | 225 | |
9d4f8977 ER |
226 | # package the grep result for mplayer, the result formatted as ./mplayer/configure |
227 | cat <<EOF > ffmpeg-avconfig | |
2b2445b7 ER |
228 | #! /bin/sh |
229 | _libavdecoders_all="`sed -n 's/^[^#]*DEC.*(.*, *\(.*\)).*/\1_decoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`" | |
230 | _libavencoders_all="`sed -n 's/^[^#]*ENC.*(.*, *\(.*\)).*/\1_encoder/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`" | |
231 | _libavparsers_all="`sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`" | |
232 | _libavbsfs_all="`sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]'`" | |
233 | _libavdemuxers_all="`sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]'`" | |
234 | _libavmuxers_all="`sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]'`" | |
235 | _libavprotocols_all="`sed -n 's/^[^#]*PROTOCOL.*(.*, *\(.*\)).*/\1_protocol/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]'`" | |
236 | EOF | |
9d4f8977 | 237 | cat <<'EOF' >> ffmpeg-avconfig |
2b2445b7 ER |
238 | |
239 | case "$1" in | |
240 | --decoders) | |
241 | echo $_libavdecoders_all | |
242 | ;; | |
243 | --encoders) | |
244 | echo $_libavencoders_all | |
245 | ;; | |
246 | --parsers) | |
247 | echo $_libavparsers_all | |
248 | ;; | |
249 | --bsfs) | |
250 | echo $_libavbsfs_all | |
251 | ;; | |
252 | --demuxers) | |
253 | echo $_libavdemuxers_all | |
254 | ;; | |
255 | --muxers) | |
256 | echo $_libavmuxers_all | |
257 | ;; | |
258 | --protocols) | |
259 | echo $_libavprotocols_all | |
260 | ;; | |
261 | *) | |
262 | cat <<USAGE | |
263 | Usage: $0 [OPTION] | |
264 | Options: | |
265 | --decoders | |
266 | --encoders | |
267 | --parsers | |
268 | --bsfs | |
269 | --demuxers | |
270 | --muxers | |
271 | --protocols | |
272 | USAGE | |
273 | exit 1;; | |
274 | esac | |
275 | ||
276 | exit 0 | |
277 | EOF | |
278 | ||
9fc4ad22 | 279 | %build |
05e1eb2f JB |
280 | # notes: |
281 | # - it's not autoconf configure | |
d0a0ec26 | 282 | # - --disable-debug, --disable-optimizations, tune=generic causes not to override our optflags |
2080d1d3 | 283 | ./configure \ |
b4680d0b | 284 | --arch=%{_target_base_arch} \ |
539b540f | 285 | --prefix=%{_prefix} \ |
9cf4d8a4 | 286 | --libdir=%{_libdir} \ |
d81dfa95 | 287 | --shlibdir=%{_libdir} \ |
2a60eebe | 288 | --mandir=%{_mandir} \ |
126fb805 | 289 | --cc="%{__cc}" \ |
314ef0df | 290 | --extra-cflags="-D_GNU_SOURCE=1 %{rpmcppflags} %{rpmcflags}" \ |
1162803a | 291 | --extra-ldflags="%{rpmcflags} %{rpmldflags}" \ |
126fb805 JB |
292 | --disable-debug \ |
293 | --disable-optimizations \ | |
6382c99d | 294 | --disable-stripping \ |
314ef0df | 295 | --enable-avfilter \ |
126fb805 | 296 | --enable-gpl \ |
0b43f655 | 297 | --enable-version3 \ |
5dc039cb | 298 | --enable-frei0r \ |
32243b76 | 299 | --enable-libdc1394 \ |
cbdd2688 | 300 | --enable-libcelt \ |
32243b76 | 301 | --enable-libdirac \ |
f3692243 | 302 | --enable-libgsm \ |
15c15700 | 303 | --enable-libmp3lame \ |
cbdd2688 JB |
304 | --enable-libopencore-amrnb \ |
305 | --enable-libopencore-amrwb \ | |
306 | --enable-libopenjpeg \ | |
307 | --enable-librtmp \ | |
126fb805 | 308 | --enable-libschroedinger \ |
da99dcf2 | 309 | --enable-libspeex \ |
126fb805 | 310 | --enable-libtheora \ |
5dc039cb JB |
311 | --enable-libvo-aacenc \ |
312 | --enable-libvo-amrwbenc \ | |
126fb805 | 313 | --enable-libvorbis \ |
64f8f109 | 314 | %{?with_vpx:--enable-libvpx} \ |
126fb805 | 315 | --enable-libx264 \ |
5dc039cb | 316 | --enable-libxavs \ |
126fb805 | 317 | --enable-libxvid \ |
6382c99d | 318 | --enable-postproc \ |
d7493de8 | 319 | --enable-pthreads \ |
9cf4d8a4 | 320 | --enable-shared \ |
6382c99d | 321 | --enable-swscale \ |
0b43f655 | 322 | --enable-vdpau \ |
75231f25 | 323 | --enable-x11grab \ |
7a286645 | 324 | %ifnarch %{ix86} %{x8664} |
e1fe03f7 | 325 | --disable-mmx \ |
326 | %endif | |
327 | %ifarch i386 i486 | |
05e1eb2f | 328 | --disable-mmx \ |
b524cd99 | 329 | %endif |
0b43f655 | 330 | %if %{with nonfree} |
48610c64 | 331 | --enable-nonfree \ |
0b43f655 | 332 | --enable-libfaac \ |
76243dbd | 333 | %endif |
75231f25 | 334 | --enable-runtime-cpudetect |
2305d791 | 335 | |
cbdd2688 JB |
336 | # --enable-libopencv would cause dependency loop |
337 | ||
da99dcf2 | 338 | # force oldscaler build |
b8c60172 | 339 | %{__sed} -i -e 's|#define.*CONFIG_OLDSCALER.*0|#define CONFIG_OLDSCALER 1|g' config.h |
da99dcf2 | 340 | |
1ef27ea1 JB |
341 | %{__make} \ |
342 | V=1 | |
9fc4ad22 | 343 | |
b8c60172 ER |
344 | # CC_O to add -c to commandline. makefile should be patched |
345 | %{__make} tools/qt-faststart V=1 CC_O='-c -o $@' | |
346 | ||
9fc4ad22 AM |
347 | %install |
348 | rm -rf $RPM_BUILD_ROOT | |
38cf6de3 | 349 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/{sysconfig,rc.d/init.d}} \ |
38baa0f1 | 350 | $RPM_BUILD_ROOT%{_includedir}/ffmpeg \ |
38cf6de3 | 351 | $RPM_BUILD_ROOT/var/{cache,log}/ffserver |
9fc4ad22 | 352 | |
539b540f | 353 | %{__make} install \ |
1ef27ea1 JB |
354 | DESTDIR=$RPM_BUILD_ROOT \ |
355 | V=1 | |
539b540f | 356 | |
544421b2 ER |
357 | cp -a config.h $RPM_BUILD_ROOT%{_includedir}/ffmpeg |
358 | cp -a libavutil/intreadwrite.h $RPM_BUILD_ROOT%{_includedir}/libavutil | |
359 | cp -a libavutil/bswap.h $RPM_BUILD_ROOT%{_includedir}/libavutil | |
360 | cp -a libavutil/common.h $RPM_BUILD_ROOT%{_includedir}/libavutil | |
361 | cp -a libavutil/mem.h $RPM_BUILD_ROOT%{_includedir}/libavutil | |
362 | for a in libavutil/*/bswap.h; do | |
363 | install -D $a $RPM_BUILD_ROOT%{_includedir}/$a | |
364 | done | |
9d4f8977 ER |
365 | cp -a libavformat/riff.h $RPM_BUILD_ROOT%{_includedir}/libavformat |
366 | cp -a libavformat/avio.h $RPM_BUILD_ROOT%{_includedir}/libavformat | |
544421b2 | 367 | |
b8c60172 ER |
368 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ffserver |
369 | cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ffserver | |
370 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ffserver.conf | |
539b540f | 371 | mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver |
b8c60172 | 372 | install -p tools/qt-faststart $RPM_BUILD_ROOT%{_bindir} |
9fc4ad22 | 373 | |
2b2445b7 ER |
374 | # install as ffmpeg-avconfig to avoid with possible programs looking for |
375 | # ffmpeg-config and expecting --libs output from it which is not implemented | |
376 | # simple to do (by querying pkgconfig), but why? | |
b8c60172 | 377 | install -p ffmpeg-avconfig $RPM_BUILD_ROOT%{_bindir}/ffmpeg-avconfig |
2b2445b7 | 378 | |
9fc4ad22 AM |
379 | %clean |
380 | rm -rf $RPM_BUILD_ROOT | |
381 | ||
1ef27ea1 JB |
382 | %post libs -p /sbin/ldconfig |
383 | %postun libs -p /sbin/ldconfig | |
539b540f | 384 | |
38cf6de3 ER |
385 | %pre ffserver |
386 | %groupadd -g 167 ffserver | |
387 | %useradd -g ffserver -u 167 ffserver | |
388 | ||
593d3a64 ER |
389 | %post ffserver |
390 | /sbin/chkconfig --add ffserver | |
391 | %service ffserver restart | |
392 | ||
38cf6de3 | 393 | %preun ffserver |
593d3a64 ER |
394 | if [ "$1" = 0 ]; then |
395 | %service ffserver stop | |
396 | /sbin/chkconfig --del ffserver | |
397 | fi | |
398 | ||
38cf6de3 ER |
399 | %postun ffserver |
400 | if [ "$1" = 0 ]; then | |
401 | %userremove ffserver | |
402 | %groupremove ffserver | |
403 | fi | |
404 | ||
9fc4ad22 AM |
405 | %files |
406 | %defattr(644,root,root,755) | |
cbdd2688 | 407 | %doc CREDITS LICENSE MAINTAINERS README doc/{APIchanges,RELEASE_NOTES,TODO} %{?with_doc:doc/*.html} |
2a60eebe | 408 | %attr(755,root,root) %{_bindir}/ffmpeg |
3a7b84be | 409 | %attr(755,root,root) %{_bindir}/ffprobe |
b7313442 | 410 | %attr(755,root,root) %{_bindir}/qt-faststart |
da99dcf2 AM |
411 | %dir %{_datadir}/ffmpeg |
412 | %{_datadir}/ffmpeg/*.ffpreset | |
64f8f109 ER |
413 | %{?with_doc:%{_mandir}/man1/ffmpeg.1*} |
414 | %{?with_doc:%{_mandir}/man1/ffprobe.1*} | |
54ec280e PG |
415 | |
416 | %files libs | |
417 | %defattr(644,root,root,755) | |
f50f7d7c | 418 | %attr(755,root,root) %{_libdir}/libavcodec.so.*.*.* |
cbdd2688 | 419 | %attr(755,root,root) %ghost %{_libdir}/libavcodec.so.53 |
d0a0ec26 | 420 | %attr(755,root,root) %{_libdir}/libavdevice.so.*.*.* |
cbdd2688 | 421 | %attr(755,root,root) %ghost %{_libdir}/libavdevice.so.53 |
314ef0df | 422 | %attr(755,root,root) %{_libdir}/libavfilter.so.*.*.* |
cbdd2688 | 423 | %attr(755,root,root) %ghost %{_libdir}/libavfilter.so.2 |
f50f7d7c | 424 | %attr(755,root,root) %{_libdir}/libavformat.so.*.*.* |
cbdd2688 | 425 | %attr(755,root,root) %ghost %{_libdir}/libavformat.so.53 |
f50f7d7c | 426 | %attr(755,root,root) %{_libdir}/libavutil.so.*.*.* |
cbdd2688 | 427 | %attr(755,root,root) %ghost %{_libdir}/libavutil.so.51 |
d7493de8 | 428 | %attr(755,root,root) %{_libdir}/libpostproc.so.*.*.* |
314ef0df | 429 | %attr(755,root,root) %ghost %{_libdir}/libpostproc.so.51 |
ee032235 | 430 | %attr(755,root,root) %{_libdir}/libswscale.so.*.*.* |
cbdd2688 | 431 | %attr(755,root,root) %ghost %{_libdir}/libswscale.so.2 |
314ef0df | 432 | |
539b540f JB |
433 | %files devel |
434 | %defattr(644,root,root,755) | |
54ec280e | 435 | %doc doc/optimization.txt |
1ef27ea1 | 436 | %attr(755,root,root) %{_bindir}/ffmpeg-avconfig |
539b540f | 437 | %attr(755,root,root) %{_libdir}/libavcodec.so |
d0a0ec26 | 438 | %attr(755,root,root) %{_libdir}/libavdevice.so |
314ef0df | 439 | %attr(755,root,root) %{_libdir}/libavfilter.so |
539b540f | 440 | %attr(755,root,root) %{_libdir}/libavformat.so |
d7493de8 | 441 | %attr(755,root,root) %{_libdir}/libavutil.so |
d2af4612 | 442 | %attr(755,root,root) %{_libdir}/libpostproc.so |
ee032235 | 443 | %attr(755,root,root) %{_libdir}/libswscale.so |
539b540f | 444 | %{_includedir}/ffmpeg |
6382c99d AM |
445 | %{_includedir}/libavcodec |
446 | %{_includedir}/libavdevice | |
314ef0df | 447 | %{_includedir}/libavfilter |
6382c99d AM |
448 | %{_includedir}/libavformat |
449 | %{_includedir}/libavutil | |
450 | %{_includedir}/libpostproc | |
451 | %{_includedir}/libswscale | |
1ef27ea1 JB |
452 | %{_pkgconfigdir}/libavcodec.pc |
453 | %{_pkgconfigdir}/libavdevice.pc | |
454 | %{_pkgconfigdir}/libavfilter.pc | |
455 | %{_pkgconfigdir}/libavformat.pc | |
456 | %{_pkgconfigdir}/libavutil.pc | |
457 | %{_pkgconfigdir}/libpostproc.pc | |
458 | %{_pkgconfigdir}/libswscale.pc | |
539b540f | 459 | |
9cf4d8a4 JB |
460 | %files static |
461 | %defattr(644,root,root,755) | |
1ef27ea1 JB |
462 | %{_libdir}/libavcodec.a |
463 | %{_libdir}/libavdevice.a | |
464 | %{_libdir}/libavfilter.a | |
465 | %{_libdir}/libavformat.a | |
466 | %{_libdir}/libavutil.a | |
467 | %{_libdir}/libpostproc.a | |
468 | %{_libdir}/libswscale.a | |
af49d6ab JB |
469 | |
470 | %files ffplay | |
471 | %defattr(644,root,root,755) | |
472 | %attr(755,root,root) %{_bindir}/ffplay | |
64f8f109 | 473 | %{?with_doc:%{_mandir}/man1/ffplay.1*} |
af49d6ab | 474 | |
fde29260 ER |
475 | %files ffserver |
476 | %defattr(644,root,root,755) | |
477 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ffserver.conf | |
478 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ffserver | |
479 | %attr(755,root,root) %{_sbindir}/ffserver | |
480 | %attr(754,root,root) /etc/rc.d/init.d/ffserver | |
64f8f109 | 481 | %{?with_doc:%{_mandir}/man1/ffserver.1*} |
38cf6de3 ER |
482 | %dir %attr(770,root,ffserver) /var/cache/ffserver |
483 | %dir %attr(770,root,ffserver) /var/log/ffserver |