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