1 %define pname gst-python
2 Summary: GStreamer Python bindings
3 Summary(pl): Wi±zania jêzyka Python do GStreamera
8 Group: Libraries/Python
9 Source0: http://gstreamer.freedesktop.org/src/gst-python/%{pname}-%{version}.tar.bz2
10 # Source0-md5: e29366d227204e211d867577ff8e7b89
11 Patch0: %{pname}-py2pyc.patch
12 URL: http://gstreamer.freedesktop.org/modules/gst-python.html
13 BuildRequires: autoconf >= 2.57
14 BuildRequires: automake
15 BuildRequires: glib2-devel >= 1:2.6.0
16 BuildRequires: gstreamer-devel >= 0.10.0.2
17 BuildRequires: gstreamer-plugins-base-devel >= 0.10.0.2
18 BuildRequires: gtk+2-devel >= 2:2.6.0
19 BuildRequires: libtool >= 1.4
20 BuildRequires: python-pygtk-devel >= 2.6.3
21 BuildRequires: python-devel >= 1:2.3
22 %pyrequires_eq python-libs
23 Requires: gstreamer >= 0.10.0.2
24 Requires: gstreamer-plugins-base >= 0.10.0.2
25 Requires: python-pygtk-gtk >= 2.6.3
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 GStreamer Python bindings.
32 Wi±zania jêzyka Python do GStreamera.
35 %setup -q -n %{pname}-%{version}
40 %{__aclocal} -I common/m4
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 DESTDIR=$RPM_BUILD_ROOT
55 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
56 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
60 cp -R examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 rm -f $RPM_BUILD_ROOT%{py_sitedir}/gst-*/gst/*.la
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc AUTHORS ChangeLog NEWS RELEASE TODO
69 %dir %{py_sitedir}/gst-*
70 %dir %{py_sitedir}/gst-*/gst
71 %attr(755,root,root) %{py_sitedir}/gst-*/gst/*.so
72 %{py_sitedir}/gst-*/gst/*.py[co]
73 %dir %{py_sitedir}/gst-*/gst/extend
74 %{py_sitedir}/gst-*/gst/extend/*.py[co]
75 %{py_sitedir}/pygst.pth
76 %{py_sitedir}/pygst.py[co]
77 %{_datadir}/gst-python
78 %{_pkgconfigdir}/gst-python-*.pc
79 %{_examplesdir}/%{name}-%{version}