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