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