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