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