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