]> git.pld-linux.org Git - packages/ffmpeg.git/blob - ffmpeg.spec
- 0.4.6, updated opt patch
[packages/ffmpeg.git] / ffmpeg.spec
1 Summary:        Realtime audio/video encoder and streaming server
2 Summary(pl):    Koder audio/wideo czasu rzeczywistego oraz serwer strumieni
3 Name:           ffmpeg
4 Version:        0.4.6
5 Release:        1
6 License:        LGPL/GPL
7 Group:          Daemons
8 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/ffmpeg/%{name}-%{version}.tar.gz
9 Patch0:         %{name}-opt.patch
10 Patch1:         %{name}-imlib2.patch
11 Patch2:         %{name}-libtool.patch
12 URL:            http://ffmpeg.sourceforge.net/
13 BuildRequires:  imlib2-devel
14 BuildRequires:  libtool >= 1:1.4.2-9
15 %ifarch i586 i686 athlon
16 BuildRequires:  nasm
17 %endif
18 BuildRequires:  zlib-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ffmpeg is a hyper fast realtime audio/video encoder and streaming
23 server. It can grab from a standard Video4Linux video source and
24 convert it into several file formats based on DCT/motion compensation
25 encoding. Sound is compressed in MPEG audio layer 2 or using an AC3
26 compatible stream.
27
28 This package contains also ffmpeg shared libraries (libavcodec and
29 libavformat).
30
31 %description -l pl
32 ffmpeg jest bardzo szybkim koderem audio/wideo w czasie rzeczywistym
33 oraz serwerem strumieni multimedialnych. ffmpeg potrafi zrzucaæ dane
34 ze standardowego urz±dzenia Video4Linux i przekonwertowaæ je w kilka
35 formatów plików bazuj±cych na kodowaniu DCT/kompensacji ruchu. D¼wiêk
36 jest kompresowany do strumienia MPEG audio layer 2 lub u¿ywaj±c
37 strumienia kompatybilnego z AC3.
38
39 Ten pakiet zawiera tak¿e biblioteki wspó³dzielone ffmpeg (libavcodec i
40 libavformat).
41
42 %package vhook-imlib2
43 Summary:        imlib2 based hook
44 Summary(pl):    Modu³ przej¶ciowy oparty o imlib2
45 Group:          Libraries
46 Requires:       %{name} = %{version}
47
48 %description vhook-imlib2
49 This module implements a text overlay for a video image. Currently it
50 supports a fixed overlay or reading the text from a file. The string
51 is passed through strftime so that it is easy to imprint the date and
52 time onto the image.
53
54 %description vhook-imlib2 -l pl
55 Ten modu³ implementuje tekstow± nak³adkê dla obrazu. Aktualnie
56 obs³uguje sta³± nak³adkê lub wczytywanie tekstu z pliku. £añcuch jest
57 przepuszczany przez strftime, wiêc ³atwo umie¶ciæ datê i czas na
58 obrazie.
59
60 %package devel
61 Summary:        ffmpeg header files
62 Summary(pl):    Pliki nag³ówkowe ffmpeg
63 Group:          Development/Libraries
64 Requires:       %{name} = %{version}
65
66 %description devel
67 ffmpeg header files.
68
69 %description devel -l pl
70 Pliki nag³ówkowe ffmpeg.
71
72 %package static
73 Summary:        ffmpeg static libraries
74 Summary(pl):    Statyczne biblioteki ffmpeg
75 Group:          Development/Libraries
76 Requires:       %{name}-devel = %{version}
77
78 %description static
79 ffmpeg static libraries (libavcodec and libavformat).
80
81 %description static -l pl
82 Statyczne biblioteki ffmpeg (libavcodec i libavformat).
83
84 %prep
85 %setup -q
86 %patch0 -p1
87 %patch1 -p1
88 %patch2 -p1
89
90 %build
91 # note: it's not autoconf configure
92 ./configure \
93         --prefix=%{_prefix} \
94         --enable-shared \
95         --enable-a52bin \
96 %ifnarch i586 i686 athlon
97         --disable-mmx
98 %endif
99
100 # note: -fomit-frame-pointer is always needed on x86 due to lack of registers
101 #       (-fPIC takes one)
102 %{__make} \
103         OPT="%{rpmcflags} -fomit-frame-pointer -I/usr/X11R6/include" \
104         LDOPT="%{rpmldflags} -L/usr/X11R6/lib"
105
106 %{__make} -C doc
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir}}
111
112 %{__make} install \
113         DESTDIR=$RPM_BUILD_ROOT
114
115 mv -f $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/ffserver
116 install doc/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post   -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
123
124 %files
125 %defattr(644,root,root,755)
126 %doc Changelog README doc/*.html
127 %attr(755,root,root) %{_bindir}/*
128 %attr(755,root,root) %{_sbindir}/*
129 %attr(755,root,root) %{_libdir}/libavcodec-*.so
130 %attr(755,root,root) %{_libdir}/libavformat-*.so
131 %dir %{_libdir}/vhook
132 %attr(755,root,root) %{_libdir}/vhook/null.so
133 %attr(755,root,root) %{_libdir}/vhook/fish.so
134 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
135
136 %files vhook-imlib2
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/vhook/imlib2.so
139
140 %files devel
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libavcodec.so
143 %attr(755,root,root) %{_libdir}/libavformat.so
144 %{_libdir}/lib*.la
145 %{_includedir}/ffmpeg
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/lib*.a
This page took 2.437952 seconds and 4 git commands to generate.