]>
Commit | Line | Data |
---|---|---|
9c77b8c1 | 1 | # TODO: |
b5d29c62 | 2 | # - pvm3 needs recompiled with -fPIC, then it can be used here |
ac988f3c | 3 | # - --enable-ibp requires some libs from http://loci.cs.utk.edu/ [libfdr libibp libexnode liblbone libend2end libmd5 libdes libaes liblors] |
6c28ede5 | 4 | # - rm Makefiles from htmldir |
173bf2e8 | 5 | # |
3a5a33fc | 6 | # Conditional build: |
ac988f3c JB |
7 | %bcond_without magick # ImageMagick module |
8 | %bcond_without libmpeg2 # libmpeg2 support | |
9 | %bcond_without lzo # LZO support | |
10 | %bcond_without mjpeg # mjpegtools support | |
11 | %bcond_without quicktime # libquicktime support | |
12 | %bcond_without sdl # SDL support | |
13 | %bcond_with jpegmmx # jpeg-mmx instead of plain libjpeg | |
14 | %bcond_with pvm3 # PVM3 support | |
b5d29c62 JB |
15 | |
16 | # no jpeg-mmx there (doesn't compile) | |
17 | %ifnarch i586 i686 athlon | |
18 | %undefine with_jpegmmx | |
19 | %endif | |
20 | # pvm3 needs recompiled with -fPIC | |
21 | %ifarch %{x8664} alpha | |
22 | %undefine with_pvm3 | |
23 | %endif | |
3a5a33fc | 24 | # |
1aabd80a | 25 | Summary: Video stream converter |
af412c2c | 26 | Summary(pl.UTF-8): Konwerter strumieni video |
692e6cca | 27 | Name: transcode |
bf3b4d5c | 28 | Version: 1.1.7 |
989c766b | 29 | Release: 3 |
ac988f3c JB |
30 | License: GPL v2+ |
31 | Group: Applications/Multimedia | |
bf3b4d5c AM |
32 | Source0: https://bitbucket.org/france/transcode-tcforge/downloads/%{name}-%{version}.tar.bz2 |
33 | # Source0-md5: 9bb25a796a8591fb764de46ee87ce505 | |
0fd9456a | 34 | Patch0: %{name}-libx86_64.patch |
bf3b4d5c AM |
35 | Patch1: %{name}-1.1.7-ffmpeg-0.10.patch |
36 | Patch2: %{name}-1.1.7-ffmpeg-0.11.patch | |
37 | Patch3: %{name}-1.1.7-ffmpeg2.patch | |
38 | Patch4: %{name}-1.1.7-ffmpeg.patch | |
39 | Patch5: %{name}-1.1.7-libav-9.patch | |
40 | Patch6: %{name}-1.1.7-preset-force.patch | |
41 | Patch7: %{name}-1.1.7-preset-free.patch | |
42 | URL: https://bitbucket.org/france/transcode-tcforge/overview | |
ac988f3c JB |
43 | %{?with_magick:BuildRequires: ImageMagick-devel >= 6.4.1-2} |
44 | %{?with_sdl:BuildRequires: SDL-devel >= 1.2.5} | |
09355889 | 45 | BuildRequires: a52dec-libs-devel |
ac988f3c | 46 | BuildRequires: alsa-lib-devel >= 0.9 |
985963d8 JB |
47 | BuildRequires: autoconf |
48 | BuildRequires: automake >= 1.3 | |
e10fe26b | 49 | BuildRequires: faac-devel |
75e9ed58 | 50 | BuildRequires: ffmpeg-devel >= 0.7.1 |
bc273673 | 51 | BuildRequires: freetype-devel >= 2.1.2 |
b5d29c62 | 52 | %{?with_jpegmmx:BuildRequires: jpeg-mmx} |
ac988f3c | 53 | BuildRequires: lame-libs-devel >= 3.93 |
18be77ee | 54 | BuildRequires: libdv-devel >= 0.104-3 |
692e6cca | 55 | BuildRequires: libdvdread-devel |
c42026b3 | 56 | BuildRequires: libfame-devel >= 0.9.1 |
5664900e | 57 | BuildRequires: libgomp-devel |
bc273673 | 58 | BuildRequires: libjpeg-devel |
657e67ba | 59 | %{?with_libmpeg2:BuildRequires: libmpeg2-devel >= 0.4.0b} |
e6c0f64a | 60 | BuildRequires: libogg-devel |
ffe2ce89 | 61 | BuildRequires: libpng-devel |
ac988f3c | 62 | %{?with_quicktime:BuildRequires: libquicktime-devel >= 1.0.0} |
ffe2ce89 | 63 | BuildRequires: libstdc++-devel |
bc273673 | 64 | BuildRequires: libtheora-devel |
985963d8 | 65 | BuildRequires: libtool >= 2:1.5 |
ac988f3c | 66 | BuildRequires: libv4l-devel |
0da60c37 | 67 | BuildRequires: libvorbis-devel |
bf3b4d5c | 68 | BuildRequires: libx264-devel |
ac988f3c | 69 | BuildRequires: libxml2-devel >= 2.0 |
34030055 | 70 | %{?with_lzo:BuildRequires: lzo-devel >= 2.0} |
18be77ee | 71 | %{?with_mjpeg:BuildRequires: mjpegtools-devel} |
bc273673 JB |
72 | %ifarch %{ix86} |
73 | BuildRequires: nasm >= 0.98.34 | |
74 | %endif | |
ac988f3c JB |
75 | BuildRequires: pkgconfig >= 1:0.20 |
76 | %{?with_pvm3:BuildRequires: pvm-devel >= 3.4} | |
77 | BuildRequires: xorg-lib-libX11-devel | |
ace5874a | 78 | BuildRequires: xorg-lib-libXaw-devel |
ac988f3c | 79 | BuildRequires: xorg-lib-libXext-devel |
ace5874a | 80 | BuildRequires: xorg-lib-libXpm-devel |
ac988f3c JB |
81 | BuildRequires: xorg-lib-libXv-devel |
82 | BuildRequires: xvid-devel >= 1.0 | |
83 | BuildRequires: zlib-devel | |
692e6cca | 84 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
85 | ||
985963d8 JB |
86 | %define specflags -fomit-frame-pointer |
87 | ||
692e6cca | 88 | %description |
1aabd80a | 89 | Linux Video Stream Processing Tool. |
692e6cca | 90 | |
31b7198d JR |
91 | %description -l pl.UTF-8 |
92 | Linuksowe narzędzie do obróbki strumieni video. | |
692e6cca | 93 | |
bc273673 | 94 | %package avilib |
e14e2a25 | 95 | Summary: library to handle avi files from transcode |
af412c2c | 96 | Summary(pl.UTF-8): biblioteka do obróbki plików avi pochodząca z transcode |
e14e2a25 | 97 | Group: Development/Libraries |
98 | ||
d583e249 | 99 | %description avilib |
3a5a33fc | 100 | Avilib is part of transcode made accessible for other programs that |
bc273673 | 101 | require it. So far I know of one such program - ogmtools. |
e14e2a25 | 102 | |
31b7198d JR |
103 | %description avilib -l pl.UTF-8 |
104 | Avifile jest częścią programu transcode udostępnioną dla innych | |
105 | programów, które jej wymagają. Jak na razie znam jeden taki program - | |
3a5a33fc | 106 | ogmtools. |
e14e2a25 | 107 | |
0fd9456a | 108 | %package export |
109 | Summary: export plugins for transcode | |
110 | Summary(pl.UTF-8): wtyczki eksportowe transcode | |
111 | Group: Development/Libraries | |
ca1c0e09 | 112 | Requires: %{name} = %{version}-%{release} |
0fd9456a | 113 | |
114 | %description export | |
115 | Export plugins for transcode. | |
116 | ||
117 | %description export -l pl.UTF-8 | |
118 | Wtyczki eksportowe dla transcode. | |
119 | ||
120 | %package import | |
121 | Summary: import plugins for transcode | |
122 | Summary(pl.UTF-8): wtyczki importujące transcode | |
123 | Group: Development/Libraries | |
ca1c0e09 | 124 | Requires: %{name} = %{version}-%{release} |
0fd9456a | 125 | |
126 | %description import | |
127 | Import plugins for transcode. | |
128 | ||
129 | %description import -l pl.UTF-8 | |
130 | Wtyczki importujące dla transcode. | |
131 | ||
132 | %package filter | |
133 | Summary: filters for transcode | |
134 | Summary(pl.UTF-8): filtry transcode | |
135 | Group: Development/Libraries | |
ca1c0e09 | 136 | Requires: %{name} = %{version}-%{release} |
0fd9456a | 137 | |
138 | %description filter | |
139 | Filters for transcode. | |
140 | ||
141 | %description filter -l pl.UTF-8 | |
142 | Filtry transcode. | |
143 | ||
692e6cca | 144 | %prep |
985963d8 | 145 | %setup -q |
0fd9456a | 146 | %patch0 -p1 |
bf3b4d5c | 147 | %patch1 -p0 |
657e67ba | 148 | %patch2 -p1 |
75e9ed58 | 149 | %patch3 -p1 |
bf3b4d5c AM |
150 | %patch4 -p0 |
151 | %patch5 -p0 | |
152 | %patch6 -p1 | |
153 | %patch7 -p1 | |
692e6cca | 154 | |
155 | %build | |
985963d8 JB |
156 | %{__libtoolize} |
157 | %{__aclocal} | |
158 | %{__autoconf} | |
159 | %{__autoheader} | |
160 | %{__automake} | |
faec1ee4 JB |
161 | # ac_cv_* to avoid detection of libdivxdecore as divx4linux (leading to errors) |
162 | # or divx4linux itself (make bcond_with if you want it) | |
09355889 | 163 | %configure \ |
faec1ee4 JB |
164 | ac_cv_header_decore_h=no \ |
165 | ac_cv_header_encore2_h=no \ | |
bc273673 | 166 | %ifarch ppc |
2be3bfd2 | 167 | --enable-altivec \ |
bc273673 | 168 | %endif |
b5d29c62 JB |
169 | %ifarch %{ix86} %{x8664} |
170 | --enable-mmx \ | |
171 | --enable-3dnow \ | |
172 | --enable-sse \ | |
173 | --enable-sse2 \ | |
bc273673 | 174 | %endif |
b5d29c62 JB |
175 | --disable-bktr \ |
176 | --disable-bsdav \ | |
177 | --disable-sunau \ | |
178 | --enable-a52 \ | |
e10fe26b AM |
179 | --enable-alsa \ |
180 | --enable-faac \ | |
b5d29c62 | 181 | --enable-freetype2 \ |
b5d29c62 | 182 | --enable-iconv \ |
ac988f3c | 183 | --enable-imagemagick%{!?with_magick:=no} \ |
b5d29c62 JB |
184 | --enable-lame \ |
185 | --enable-libavcodec \ | |
186 | --enable-libdv \ | |
187 | --enable-libdvdread \ | |
b5d29c62 | 188 | --enable-libjpeg \ |
ac988f3c JB |
189 | --enable-libjpegmmx%{!?with_jpegmmx:=no} \ |
190 | --enable-libmpeg2%{!?with_libmpeg2:=no} \ | |
e10fe26b | 191 | --enable-libmpeg2convert \ |
b5d29c62 | 192 | --enable-libpostproc \ |
ac988f3c JB |
193 | --enable-libquicktime%{!?with_quicktime:=no} \ |
194 | --enable-libv4l2 \ | |
195 | --enable-libv4lconvert \ | |
b5d29c62 | 196 | --enable-libxml2 \ |
ac988f3c JB |
197 | --enable-lzo%{!?with_lzo:=no} \ |
198 | --enable-mjpegtools%{!?with_mjpeg:=no} \ | |
b5d29c62 JB |
199 | --enable-ogg \ |
200 | --enable-oss \ | |
ac988f3c | 201 | --enable-pvm3%{!?with_pvm3:=no} \ |
b5d29c62 JB |
202 | --enable-sdl \ |
203 | --enable-statbuffer \ | |
204 | --enable-theora \ | |
205 | --enable-v4l \ | |
206 | --enable-vorbis \ | |
ac988f3c JB |
207 | --enable-x264 \ |
208 | --with-lzo-includes=%{_includedir}/lzo \ | |
ba2e284e | 209 | --with-x |
09355889 | 210 | |
cd90eb56 | 211 | %{__make} |
692e6cca | 212 | |
213 | %install | |
214 | rm -rf $RPM_BUILD_ROOT | |
215 | ||
3a5a33fc JB |
216 | %{__make} install \ |
217 | DESTDIR=$RPM_BUILD_ROOT | |
692e6cca | 218 | |
0da60c37 | 219 | install -D avilib/avilib.h $RPM_BUILD_ROOT%{_includedir}/avilib.h |
b5d29c62 | 220 | |
7fbfefaf JB |
221 | # dlopened modules |
222 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la | |
b5d29c62 | 223 | # duplicate |
ac988f3c | 224 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/transcode |
e14e2a25 | 225 | |
692e6cca | 226 | %clean |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
229 | %files | |
230 | %defattr(644,root,root,755) | |
ac988f3c JB |
231 | %doc AUTHORS ChangeLog README TODO docs/README.* docs/*.txt docs/html |
232 | %attr(755,root,root) %{_bindir}/avifix | |
233 | %attr(755,root,root) %{_bindir}/aviindex | |
234 | %attr(755,root,root) %{_bindir}/avimerge | |
235 | %attr(755,root,root) %{_bindir}/avisplit | |
236 | %attr(755,root,root) %{_bindir}/avisync | |
237 | %attr(755,root,root) %{_bindir}/tccat | |
238 | %attr(755,root,root) %{_bindir}/tcdecode | |
239 | %attr(755,root,root) %{_bindir}/tcdemux | |
240 | %attr(755,root,root) %{_bindir}/tcextract | |
241 | %attr(755,root,root) %{_bindir}/tcmodinfo | |
242 | %attr(755,root,root) %{_bindir}/tcmp3cut | |
243 | %attr(755,root,root) %{_bindir}/tcprobe | |
244 | %attr(755,root,root) %{_bindir}/tcscan | |
245 | %attr(755,root,root) %{_bindir}/tcxmlcheck | |
246 | %attr(755,root,root) %{_bindir}/tcxpm2rgb | |
247 | %attr(755,root,root) %{_bindir}/tcyait | |
248 | %attr(755,root,root) %{_bindir}/transcode | |
0da60c37 | 249 | %dir %{_libdir}/%{name} |
ac988f3c | 250 | %attr(755,root,root) %{_libdir}/%{name}/a52_decore.so |
ac988f3c JB |
251 | %{_libdir}/%{name}/xvid4.cfg |
252 | %{_mandir}/man1/avifix.1* | |
253 | %{_mandir}/man1/aviindex.1* | |
254 | %{_mandir}/man1/avimerge.1* | |
255 | %{_mandir}/man1/avisplit.1* | |
256 | %{_mandir}/man1/avisync.1* | |
257 | %{_mandir}/man1/tccat.1* | |
258 | %{_mandir}/man1/tcdecode.1* | |
259 | %{_mandir}/man1/tcdemux.1* | |
260 | %{_mandir}/man1/tcexport.1* | |
261 | %{_mandir}/man1/tcextract.1* | |
262 | %{_mandir}/man1/tcmodchain.1* | |
263 | %{_mandir}/man1/tcmodinfo.1* | |
264 | %{_mandir}/man1/tcprobe.1* | |
265 | %{_mandir}/man1/tcpvmexportd.1* | |
266 | %{_mandir}/man1/tcscan.1* | |
267 | %{_mandir}/man1/tcxmlcheck.1* | |
268 | %{_mandir}/man1/transcode.1* | |
269 | %{_mandir}/man1/transcode_export.1* | |
270 | %{_mandir}/man1/transcode_filter.1* | |
271 | %{_mandir}/man1/transcode_import.1* | |
e14e2a25 | 272 | |
273 | %files avilib | |
90b6d870 | 274 | %defattr(644,root,root,755) |
e14e2a25 | 275 | %doc avilib/README.avilib |
0da60c37 | 276 | %{_includedir}/avilib.h |
0fd9456a | 277 | |
278 | %files export | |
279 | %defattr(644,root,root,755) | |
7fbfefaf | 280 | %attr(755,root,root) %{_libdir}/%{name}/export_*.so |
0fd9456a | 281 | |
282 | %files import | |
283 | %defattr(644,root,root,755) | |
7fbfefaf | 284 | %attr(755,root,root) %{_libdir}/%{name}/import_*.so |
0fd9456a | 285 | |
286 | %files filter | |
287 | %defattr(644,root,root,755) | |
7fbfefaf JB |
288 | %attr(755,root,root) %{_libdir}/%{name}/filter_*.so |
289 | %attr(755,root,root) %{_libdir}/%{name}/filter_list.awk | |
290 | %attr(755,root,root) %{_libdir}/%{name}/parse_csv.awk |