1 |
%define oname gst-python |
2 |
%define name gstreamer0.10-python |
3 |
|
4 |
Name: %{name} |
5 |
Version: 0.10.21 |
6 |
Release: %mkrel 1 |
7 |
Summary: Python bindings for GStreamer |
8 |
Group: Development/Python |
9 |
License: LGPLv2+ |
10 |
URL: http://gstreamer.freedesktop.org/ |
11 |
Source0: http://gstreamer.freedesktop.org/src/gst-python/%{oname}-%{version}.tar.bz2 |
12 |
Patch0: gst-python-0.10.17-linkage.patch |
13 |
#gw reall fix python dir (bug #54969) |
14 |
Patch1: gst-python-0.10.20-fix-python-detection.patch |
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
16 |
Requires: python |
17 |
Requires: pygtk2.0 |
18 |
BuildRequires: libgstreamer-plugins-base-devel >= 0.10.32 |
19 |
BuildRequires: pygtk2.0-devel |
20 |
%py_requires -d |
21 |
#gw for the docs |
22 |
#BuildRequires: xmlto |
23 |
#BuildRequires: libxml2-utils |
24 |
|
25 |
%description |
26 |
This module contains a binding that allows GStreamer applications |
27 |
to be written in Python. |
28 |
|
29 |
%package devel |
30 |
Summary: Python bindings for GStreamer - development files |
31 |
Group: Development/Python |
32 |
Requires: %{name} = %{version} |
33 |
|
34 |
%description devel |
35 |
This module contains a binding that allows GStreamer applications |
36 |
to be written in Python. |
37 |
|
38 |
Install this to build programs depending on %{name}. |
39 |
|
40 |
|
41 |
%prep |
42 |
%setup -q -n %{oname}-%{version} |
43 |
%patch0 -p1 -b .linkage |
44 |
%patch1 -p1 -b .fix-python-detection |
45 |
autoreconf -fi |
46 |
|
47 |
%build |
48 |
%configure2_5x \ |
49 |
--disable-valgrind |
50 |
|
51 |
export XML_CATALOG_FILES=/etc/xml/catalog |
52 |
%make |
53 |
|
54 |
%install |
55 |
|
56 |
rm -rf %{buildroot} |
57 |
%makeinstall_std |
58 |
|
59 |
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' |
60 |
|
61 |
%check |
62 |
export LC_ALL=C |
63 |
#gw currently fails: |
64 |
#https://bugzilla.gnome.org/show_bug.cgi?id=624490 |
65 |
#make check |
66 |
|
67 |
%clean |
68 |
rm -rf %{buildroot} |
69 |
|
70 |
%files |
71 |
%defattr(-,root,root) |
72 |
%doc AUTHORS NEWS RELEASE README |
73 |
%{py_platsitedir}/gst-0.10/ |
74 |
%{py_platsitedir}/gstoption.so |
75 |
%{py_platsitedir}/pygst* |
76 |
%_libdir/gstreamer-0.10/libgstpython.so |
77 |
|
78 |
%files devel |
79 |
%defattr(-,root,root) |
80 |
%doc ChangeLog |
81 |
%{_datadir}/gst-python/ |
82 |
%{_libdir}/pkgconfig/gst-python-0.10.pc |
83 |
|
84 |
|