]>
Commit | Line | Data |
---|---|---|
f1c5246f | 1 | %define pname gst-python |
d20b7e2c | 2 | Summary: GStreamer Python bindings |
f11a92ff | 3 | Summary(pl.UTF-8): Wiązania języka Python do GStreamera |
d20b7e2c | 4 | Name: python-gstreamer |
f0e46236 | 5 | Version: 0.10.16 |
2765897e | 6 | Release: 2 |
6642afce | 7 | License: LGPL v2+ |
d20b7e2c | 8 | Group: Libraries/Python |
194c73c8 | 9 | Source0: http://gstreamer.freedesktop.org/src/gst-python/%{pname}-%{version}.tar.bz2 |
f0e46236 | 10 | # Source0-md5: 00cceddc81ff6cdc9838a5c40bbcf305 |
d20b7e2c | 11 | URL: http://gstreamer.freedesktop.org/modules/gst-python.html |
194c73c8 | 12 | BuildRequires: autoconf >= 2.57 |
35a74000 | 13 | BuildRequires: automake |
99470ac0 | 14 | BuildRequires: glib2-devel >= 1:2.8.0 |
7b006e5b JB |
15 | BuildRequires: gstreamer-devel >= 0.10.16 |
16 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.16 | |
194c73c8 JB |
17 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
18 | BuildRequires: libtool >= 1.4 | |
f8cf144d | 19 | BuildRequires: pkgconfig >= 1:0.9.0 |
194c73c8 | 20 | BuildRequires: python-devel >= 1:2.3 |
25f04e46 | 21 | BuildRequires: python-pygobject-devel >= 2.11.2 |
22 | BuildRequires: rpm-pythonprov | |
4b434da5 | 23 | %pyrequires_eq python-libs |
99470ac0 | 24 | Requires: glib2 >= 1:2.8.0 |
7b006e5b JB |
25 | Requires: gstreamer >= 0.10.16 |
26 | Requires: gstreamer-plugins-base >= 0.10.16 | |
2daa63e9 | 27 | Requires: python-pygobject >= 2.11.2 |
d20b7e2c | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | GStreamer Python bindings. | |
32 | ||
49c8ea79 JR |
33 | %description -l pl.UTF-8 |
34 | Wiązania języka Python do GStreamera. | |
d20b7e2c | 35 | |
7b006e5b JB |
36 | %package devel |
37 | Summary: Development files and examples for GStreamer Python bindings | |
38 | Summary(pl.UTF-8): Pliki programistyczne i przykłady dla wiązań Pythona do GStreamera | |
39 | Group: Development/Languages/Python | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Development files and examples for GStreamer Python bindings. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki programistyczne i przykłady dla wiązań Pythona do GStreamera. | |
47 | ||
d20b7e2c | 48 | %prep |
49 | %setup -q -n %{pname}-%{version} | |
50 | ||
51 | %build | |
194c73c8 JB |
52 | %{__libtoolize} |
53 | %{__aclocal} -I common/m4 | |
fe2fc325 | 54 | %{__autoconf} |
55 | %{__autoheader} | |
56 | %{__automake} | |
194c73c8 | 57 | %configure |
d20b7e2c | 58 | |
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
64 | ||
65 | %{__make} install \ | |
7b006e5b JB |
66 | DESTDIR=$RPM_BUILD_ROOT \ |
67 | examplesdir=%{_examplesdir}/%{name}-%{version} | |
d20b7e2c | 68 | |
fdba0bd9 PZ |
69 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
70 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
71 | ||
fd6228d8 | 72 | %py_postclean |
19406165 | 73 | |
a1928322 | 74 | rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-*/*.la |
194c73c8 | 75 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/gst-*/gst/*.la |
8dbb2519 | 76 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.la |
d20b7e2c | 77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
194c73c8 | 83 | %doc AUTHORS ChangeLog NEWS RELEASE TODO |
a1928322 | 84 | %attr(755,root,root) %{_libdir}/gstreamer-*/libgstpython.so |
194c73c8 JB |
85 | %dir %{py_sitedir}/gst-* |
86 | %dir %{py_sitedir}/gst-*/gst | |
8dbb2519 | 87 | %attr(755,root,root) %{py_sitedir}/gstoption.so |
7b006e5b | 88 | %attr(755,root,root) %{py_sitedir}/gst-*/gst/_gst.so |
8dbb2519 | 89 | %attr(755,root,root) %{py_sitedir}/gst-*/gst/audio.so |
90 | %attr(755,root,root) %{py_sitedir}/gst-*/gst/tag.so | |
91 | %attr(755,root,root) %{py_sitedir}/gst-*/gst/video.so | |
7b006e5b JB |
92 | %attr(755,root,root) %{py_sitedir}/gst-*/gst/interfaces.so |
93 | %attr(755,root,root) %{py_sitedir}/gst-*/gst/pbutils.so | |
94 | %{py_sitedir}/gst-*/gst/__init__.py[co] | |
194c73c8 JB |
95 | %dir %{py_sitedir}/gst-*/gst/extend |
96 | %{py_sitedir}/gst-*/gst/extend/*.py[co] | |
97 | %{py_sitedir}/pygst.pth | |
fdba0bd9 | 98 | %{py_sitedir}/pygst.py[co] |
7b006e5b JB |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %dir %{_datadir}/gst-python | |
103 | %dir %{_datadir}/gst-python/0.10 | |
104 | %{_datadir}/gst-python/0.10/defs | |
105 | %{_pkgconfigdir}/gst-python-0.10.pc | |
194c73c8 | 106 | %{_examplesdir}/%{name}-%{version} |