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