]>
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 |
6c28ede5 SS |
5 | # - --enable-xio requires some libs from http://loci.cs.utk.edu/ |
6 | # - rm Makefiles from htmldir | |
173bf2e8 | 7 | # |
3a5a33fc | 8 | # Conditional build: |
18be77ee | 9 | %bcond_without im # disable imagemagick module |
10 | %bcond_without libmpeg2 # disable libmpeg2 support | |
18be77ee | 11 | %bcond_without lzo # disable lzo support |
12 | %bcond_without mjpeg # disable mjpegtools support | |
ed3b48bc | 13 | %bcond_without quicktime # disable libquicktime support |
18be77ee | 14 | %bcond_without sdl # disable SDL support |
b5d29c62 JB |
15 | %bcond_with jpegmmx # jpeg-mmx |
16 | %bcond_with pvm3 # pvm3 | |
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 AM |
30 | Version: 1.1.7 |
31 | Release: 1 | |
692e6cca | 32 | License: GPL |
33 | Group: Applications | |
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 | |
b4c228ce | 45 | %{?with_im:BuildRequires: ImageMagick-devel >= 6.4.1-2} |
bc273673 | 46 | %{?with_sdl:BuildRequires: SDL-devel >= 1.1.6} |
09355889 | 47 | BuildRequires: a52dec-libs-devel |
985963d8 JB |
48 | BuildRequires: autoconf |
49 | BuildRequires: automake >= 1.3 | |
75e9ed58 | 50 | BuildRequires: ffmpeg-devel >= 0.7.1 |
bc273673 | 51 | BuildRequires: freetype-devel >= 2.1.2 |
b5d29c62 | 52 | %{?with_jpegmmx:BuildRequires: jpeg-mmx} |
bc273673 | 53 | BuildRequires: lame-libs-devel >= 3.89 |
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 |
18be77ee | 62 | %{?with_quicktime:BuildRequires: libquicktime-devel} |
ffe2ce89 | 63 | BuildRequires: libstdc++-devel |
bc273673 | 64 | BuildRequires: libtheora-devel |
985963d8 | 65 | BuildRequires: libtool >= 2:1.5 |
0da60c37 | 66 | BuildRequires: libvorbis-devel |
bf3b4d5c | 67 | BuildRequires: libx264-devel |
0da60c37 | 68 | BuildRequires: libxml2-devel |
34030055 | 69 | %{?with_lzo:BuildRequires: lzo-devel >= 2.0} |
18be77ee | 70 | %{?with_mjpeg:BuildRequires: mjpegtools-devel} |
bc273673 JB |
71 | %ifarch %{ix86} |
72 | BuildRequires: nasm >= 0.98.34 | |
73 | %endif | |
ffe2ce89 | 74 | BuildRequires: pkgconfig |
b5d29c62 | 75 | %{?with_pvm3:BuildRequires: pvm-devel} |
ace5874a JB |
76 | BuildRequires: xorg-lib-libXaw-devel |
77 | BuildRequires: xorg-lib-libXpm-devel | |
dc2b7f6d | 78 | BuildRequires: xvid-devel |
692e6cca | 79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80 | ||
985963d8 JB |
81 | %define specflags -fomit-frame-pointer |
82 | ||
692e6cca | 83 | %description |
1aabd80a | 84 | Linux Video Stream Processing Tool. |
692e6cca | 85 | |
31b7198d JR |
86 | %description -l pl.UTF-8 |
87 | Linuksowe narzędzie do obróbki strumieni video. | |
692e6cca | 88 | |
bc273673 | 89 | %package avilib |
e14e2a25 | 90 | Summary: library to handle avi files from transcode |
af412c2c | 91 | Summary(pl.UTF-8): biblioteka do obróbki plików avi pochodząca z transcode |
e14e2a25 | 92 | Group: Development/Libraries |
93 | ||
d583e249 | 94 | %description avilib |
3a5a33fc | 95 | Avilib is part of transcode made accessible for other programs that |
bc273673 | 96 | require it. So far I know of one such program - ogmtools. |
e14e2a25 | 97 | |
31b7198d JR |
98 | %description avilib -l pl.UTF-8 |
99 | Avifile jest częścią programu transcode udostępnioną dla innych | |
100 | programów, które jej wymagają. Jak na razie znam jeden taki program - | |
3a5a33fc | 101 | ogmtools. |
e14e2a25 | 102 | |
0fd9456a | 103 | %package export |
104 | Summary: export plugins for transcode | |
105 | Summary(pl.UTF-8): wtyczki eksportowe transcode | |
106 | Group: Development/Libraries | |
ca1c0e09 | 107 | Requires: %{name} = %{version}-%{release} |
0fd9456a | 108 | |
109 | %description export | |
110 | Export plugins for transcode. | |
111 | ||
112 | %description export -l pl.UTF-8 | |
113 | Wtyczki eksportowe dla transcode. | |
114 | ||
115 | %package import | |
116 | Summary: import plugins for transcode | |
117 | Summary(pl.UTF-8): wtyczki importujące transcode | |
118 | Group: Development/Libraries | |
ca1c0e09 | 119 | Requires: %{name} = %{version}-%{release} |
0fd9456a | 120 | |
121 | %description import | |
122 | Import plugins for transcode. | |
123 | ||
124 | %description import -l pl.UTF-8 | |
125 | Wtyczki importujące dla transcode. | |
126 | ||
127 | %package filter | |
128 | Summary: filters for transcode | |
129 | Summary(pl.UTF-8): filtry transcode | |
130 | Group: Development/Libraries | |
ca1c0e09 | 131 | Requires: %{name} = %{version}-%{release} |
0fd9456a | 132 | |
133 | %description filter | |
134 | Filters for transcode. | |
135 | ||
136 | %description filter -l pl.UTF-8 | |
137 | Filtry transcode. | |
138 | ||
692e6cca | 139 | %prep |
985963d8 | 140 | %setup -q |
0fd9456a | 141 | %patch0 -p1 |
bf3b4d5c | 142 | %patch1 -p0 |
657e67ba | 143 | %patch2 -p1 |
75e9ed58 | 144 | %patch3 -p1 |
bf3b4d5c AM |
145 | %patch4 -p0 |
146 | %patch5 -p0 | |
147 | %patch6 -p1 | |
148 | %patch7 -p1 | |
692e6cca | 149 | |
150 | %build | |
985963d8 JB |
151 | %{__libtoolize} |
152 | %{__aclocal} | |
153 | %{__autoconf} | |
154 | %{__autoheader} | |
155 | %{__automake} | |
faec1ee4 JB |
156 | # ac_cv_* to avoid detection of libdivxdecore as divx4linux (leading to errors) |
157 | # or divx4linux itself (make bcond_with if you want it) | |
09355889 | 158 | %configure \ |
faec1ee4 JB |
159 | ac_cv_header_decore_h=no \ |
160 | ac_cv_header_encore2_h=no \ | |
bc273673 | 161 | %ifarch ppc |
2be3bfd2 | 162 | --enable-altivec \ |
bc273673 | 163 | %endif |
b5d29c62 JB |
164 | %ifarch %{ix86} %{x8664} |
165 | --enable-mmx \ | |
166 | --enable-3dnow \ | |
167 | --enable-sse \ | |
168 | --enable-sse2 \ | |
bc273673 | 169 | %endif |
b5d29c62 JB |
170 | --disable-bktr \ |
171 | --disable-bsdav \ | |
172 | --disable-sunau \ | |
173 | --enable-a52 \ | |
b5d29c62 | 174 | --enable-freetype2 \ |
bf3b4d5c | 175 | --enable-x264 \ |
b5d29c62 | 176 | --enable-iconv \ |
d995b2ff | 177 | --%{!?with_im:dis}%{?with_im:en}able-imagemagick \ |
b5d29c62 JB |
178 | --enable-lame \ |
179 | --enable-libavcodec \ | |
180 | --enable-libdv \ | |
181 | --enable-libdvdread \ | |
b5d29c62 | 182 | --enable-libjpeg \ |
18be77ee | 183 | --%{!?with_libmpeg2:dis}%{?with_libmpeg2:en}able-libmpeg2 \ |
b5d29c62 | 184 | --enable-libpostproc \ |
18be77ee | 185 | --%{!?with_quicktime:dis}%{?with_quicktime:en}able-libquicktime \ |
b5d29c62 | 186 | --enable-libxml2 \ |
18be77ee | 187 | --%{!?with_lzo:dis}%{?with_lzo:en}able-lzo \ |
d23cb4e2 | 188 | --with-lzo-includes=%{_includedir}/lzo \ |
18be77ee | 189 | --%{!?with_mjpeg:dis}%{?with_mjpeg:en}able-mjpegtools \ |
b5d29c62 JB |
190 | --enable-ogg \ |
191 | --enable-oss \ | |
192 | --enable-sdl \ | |
193 | --enable-statbuffer \ | |
194 | --enable-theora \ | |
195 | --enable-v4l \ | |
bf3b4d5c AM |
196 | --enable-libv4l2 \ |
197 | --enable-libv4lconvert \ | |
b5d29c62 | 198 | --enable-vorbis \ |
b5d29c62 JB |
199 | --%{!?with_jpegmmx:dis}%{?with_jpegmmx:en}able-libjpegmmx \ |
200 | --%{!?with_pvm3:dis}%{?with_pvm3:en}able-pvm3 \ | |
ba2e284e | 201 | --with-x |
09355889 | 202 | |
cd90eb56 | 203 | %{__make} |
692e6cca | 204 | |
205 | %install | |
206 | rm -rf $RPM_BUILD_ROOT | |
207 | ||
3a5a33fc JB |
208 | %{__make} install \ |
209 | DESTDIR=$RPM_BUILD_ROOT | |
692e6cca | 210 | |
0da60c37 | 211 | install -D avilib/avilib.h $RPM_BUILD_ROOT%{_includedir}/avilib.h |
b5d29c62 JB |
212 | |
213 | # duplicate | |
214 | rm -rf $RPM_BUILD_ROOT%{_docdir}/transcode | |
e14e2a25 | 215 | |
692e6cca | 216 | %clean |
217 | rm -rf $RPM_BUILD_ROOT | |
218 | ||
219 | %files | |
220 | %defattr(644,root,root,755) | |
09e58a63 | 221 | %doc README ChangeLog docs/README* docs/*.txt docs/html |
d4ac41e3 | 222 | %attr(755,root,root) %{_bindir}/* |
0da60c37 | 223 | %dir %{_libdir}/%{name} |
0fd9456a | 224 | %{_libdir}/%{name}/a52_decore.la |
225 | %{_libdir}/%{name}/a52_decore.so | |
226 | %{_libdir}/%{name}/parse_csv.awk | |
e6c0f64a | 227 | %{_libdir}/%{name}/*.cfg |
0da60c37 | 228 | %{_mandir}/man1/* |
e14e2a25 | 229 | |
230 | %files avilib | |
90b6d870 | 231 | %defattr(644,root,root,755) |
e14e2a25 | 232 | %doc avilib/README.avilib |
0da60c37 | 233 | %{_includedir}/avilib.h |
0fd9456a | 234 | |
235 | %files export | |
236 | %defattr(644,root,root,755) | |
237 | %attr(755,root,root) %{_libdir}/%{name}/export*.la* | |
238 | %attr(755,root,root) %{_libdir}/%{name}/export*.so* | |
239 | ||
240 | %files import | |
241 | %defattr(644,root,root,755) | |
242 | %attr(755,root,root) %{_libdir}/%{name}/import*.la* | |
243 | %attr(755,root,root) %{_libdir}/%{name}/import*.so* | |
244 | ||
245 | %files filter | |
246 | %defattr(644,root,root,755) | |
247 | %attr(755,root,root) %{_libdir}/%{name}/filter*.la* | |
248 | %attr(755,root,root) %{_libdir}/%{name}/filter*.so* | |
249 | %attr(755,root,root) %{_libdir}/%{name}/filter*.awk |