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