]>
Commit | Line | Data |
---|---|---|
c9252e01 | 1 | # |
2 | # TODO: | |
35add24e JK |
3 | # - bconds |
4 | # - more bindings | |
bd803dd1 | 5 | # - movit library - http://libregraphicsworld.org/blog/entry/introducing-movit-free-library-for-gpu-side-video-processing |
35add24e | 6 | # |
93907884 | 7 | Summary: MLT - open source multimedia framework |
081d87dc | 8 | Summary(pl.UTF-8): MLT - szkielet multimedialny o otwartych źródłach |
c9252e01 | 9 | Name: mlt |
d4a737ee | 10 | Version: 0.9.2 |
4fc6485f | 11 | Release: 2 |
c9252e01 | 12 | License: GPL |
13 | Group: X11/Applications/Multimedia | |
6abdca79 | 14 | Source0: http://downloads.sourceforge.net/mlt/%{name}-%{version}.tar.gz |
d4a737ee | 15 | # Source0-md5: f88ead8fcea628a65ebf329cc4470b6d |
35add24e | 16 | URL: http://www.mltframework.org/ |
aa81c921 | 17 | BuildRequires: QtGui-devel |
18 | BuildRequires: QtSvg-devel | |
19 | BuildRequires: QtXml-devel | |
c9252e01 | 20 | BuildRequires: SDL-devel |
d4a737ee AM |
21 | BuildRequires: SDL_image-devel |
22 | BuildRequires: exiv2-devel | |
35add24e | 23 | BuildRequires: ffmpeg-devel |
c0bc2cd5 | 24 | BuildRequires: gtk+2-devel |
aa81c921 | 25 | #BuildRequires: ladspa-devel |
26 | #BuildRequires: lame-libs-devel | |
c9252e01 | 27 | BuildRequires: libdv-devel >= 0.102 |
aa81c921 | 28 | #BuildRequires: libmad-devel |
d0f1d2d2 | 29 | BuildRequires: libquicktime-devel |
c9252e01 | 30 | BuildRequires: libsamplerate-devel |
93907884 | 31 | BuildRequires: libvorbis-devel >= 1:1.0.1 |
c9252e01 | 32 | BuildRequires: libxml2-devel >= 2.5 |
c0bc2cd5 | 33 | BuildRequires: pkgconfig |
aa81c921 | 34 | BuildRequires: python-devel |
35add24e | 35 | BuildRequires: rpm-pythonprov |
c9252e01 | 36 | BuildRequires: sox-devel |
bd803dd1 | 37 | BuildRequires: swfdec-devel |
d4a737ee | 38 | BuildRequires: swig-python |
aa81c921 | 39 | BuildRequires: which |
35add24e | 40 | Obsoletes: mlt++ < %{version} |
c9252e01 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
44 | MLT is an open source multimedia framework, designed and developed for | |
45 | television broadcasting. It provides a toolkit for broadcasters, video | |
46 | editors, media players, transcoders, web streamers and many more types | |
47 | of applications. The functionality of the system is provided via an | |
f7739979 | 48 | assortment of ready to use tools, XML authoring components, and an |
c9252e01 | 49 | extendible plug-in based API. |
50 | ||
b43d87b7 JR |
51 | %description -l pl.UTF-8 |
52 | MLT to szkielet multimedialny o otwartych źródłach zaprojektowany i | |
53 | rozwijany do nadawania telewizji. Udostępnia zestaw narzędzi dla | |
54 | nadawców, edytory obrazu, odtwarzacze mediów, transkodery, narzędzia | |
55 | do udostępniania strumieni przez WWW i wiele innych rodzajów | |
56 | aplikacji. Funkcjonalność systemu jest zapewniona poprzez asortyment | |
57 | gotowych do użycia narzędzi, komponentów do tworzenia XML-a i | |
93907884 | 58 | rozszerzalne API oparte na wtyczkach. |
c9252e01 | 59 | |
35add24e JK |
60 | %package -n python-mlt |
61 | Summary: MLT Python bindings | |
62 | Summary(pl.UTF-8): Wiązania MLT dla Pythona | |
63 | Group: Development/Languages/Python | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description -n python-mlt | |
67 | Python bindings for MLT - open source multimedia framework. | |
68 | ||
c9252e01 | 69 | %package devel |
f7739979 | 70 | Summary: Header files for MLT |
081d87dc | 71 | Summary(pl.UTF-8): Pliki nagłówkowe dla MLT |
f7739979 | 72 | Group: Development/Libraries |
14ff330a | 73 | Requires: %{name} = %{version}-%{release} |
35add24e | 74 | Obsoletes: mlt++-devel < %{version} |
c9252e01 | 75 | |
76 | %description devel | |
f7739979 | 77 | This package contains header files for MLT. |
c9252e01 | 78 | |
b43d87b7 JR |
79 | %description devel -l pl.UTF-8 |
80 | Ten pakiet zawiera pliki nagłówkowe dla MLT. | |
c9252e01 | 81 | |
82 | %prep | |
83 | %setup -q | |
84 | ||
303de748 AM |
85 | # current |
86 | sed -i -e 's#/usr/lib/libvdpau.so#%{_libdir}/libvdpau.so.1#g' ./src/modules/avformat/vdpau.c | |
87 | # in case of future changes | |
88 | sed -i -e 's#/usr/local/lib/libvdpau.so#%{_libdir}/libvdpau.so.2#g' ./src/modules/avformat/vdpau.c | |
89 | ||
c9252e01 | 90 | %build |
91 | %configure \ | |
c0bc2cd5 | 92 | --enable-gpl \ |
bd803dd1 | 93 | --enable-gpl3 \ |
fa5535e7 | 94 | %ifarch %{x8664} |
95 | --disable-motion-est \ | |
96 | %else | |
dd5c0547 | 97 | --enable-motion-est \ |
fa5535e7 | 98 | %endif |
c0bc2cd5 | 99 | --disable-debug \ |
100 | %ifarch i586 i686 %{x8664} | |
c0bc2cd5 | 101 | --enable-mmx \ |
bd803dd1 AM |
102 | %else |
103 | --disable-mmx \ | |
c0bc2cd5 | 104 | %endif |
bd803dd1 AM |
105 | %ifarch %{x8664} |
106 | --enable-sse \ | |
107 | --enable-sse2 \ | |
108 | %else | |
109 | --disable-sse \ | |
35add24e | 110 | --disable-sse2 \ |
bd803dd1 | 111 | %endif |
35add24e | 112 | --avformat-swscale \ |
bd803dd1 | 113 | --avformat-vdpau \ |
6abdca79 | 114 | --qimage-includedir=%{_includedir}/qt4 \ |
35add24e JK |
115 | --qimage-libdir=%{_libdir} \ |
116 | --swig-languages=python | |
aa81c921 | 117 | |
c0bc2cd5 | 118 | %{__make} \ |
119 | CC="%{__cc}" | |
c9252e01 | 120 | |
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
35add24e | 123 | install -d $RPM_BUILD_ROOT%{py_sitedir} |
c9252e01 | 124 | |
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
d4a737ee | 128 | cp -p src/swig/python/{*.py,*.so} $RPM_BUILD_ROOT%{py_sitedir} |
35add24e JK |
129 | |
130 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
131 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
132 | %py_postclean | |
133 | ||
c9252e01 | 134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post -p /sbin/ldconfig | |
138 | %postun -p /sbin/ldconfig | |
139 | ||
140 | %files | |
141 | %defattr(644,root,root,755) | |
142 | %doc ChangeLog README | |
143 | %attr(755,root,root) %{_bindir}/* | |
aa81c921 | 144 | %attr(755,root,root) %ghost %{_libdir}/*.so.? |
35add24e JK |
145 | %attr(755,root,root) %{_libdir}/*.so.*.* |
146 | %dir %{_libdir}/%{name} | |
147 | %attr(755,root,root) %{_libdir}/%{name}/* | |
c9252e01 | 148 | %{_datadir}/mlt* |
149 | ||
1393323f | 150 | %files -n python-mlt |
aa81c921 | 151 | %defattr(644,root,root,755) |
35add24e JK |
152 | %{py_sitedir}/*.py[co] |
153 | %attr(755,root,root) %{py_sitedir}/*.so | |
154 | ||
c9252e01 | 155 | %files devel |
33bec256 | 156 | %defattr(644,root,root,755) |
157 | %{_pkgconfigdir}/*.pc | |
c9252e01 | 158 | %{_includedir}/mlt* |
35add24e | 159 | %{_libdir}/*.so |