[telepathy-farstream] Enable python bindings.
Brian Pepple
bpepple at fedoraproject.org
Wed Mar 7 14:45:26 UTC 2012
commit 39558bcb0a349be780720e9fdb56c24d3ea95e85
Author: Brian Pepple <bpepple at fedoraproject.org>
Date: Wed Mar 7 09:45:23 2012 -0500
Enable python bindings.
telepathy-farstream.spec | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/telepathy-farstream.spec b/telepathy-farstream.spec
index 707b468..684ac88 100644
--- a/telepathy-farstream.spec
+++ b/telepathy-farstream.spec
@@ -1,6 +1,8 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
Name: telepathy-farstream
Version: 0.2.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Telepathy client library to handle Call channels
Group: System Environment/Libraries
@@ -26,10 +28,21 @@ Obsoletes: telepathy-farsight < 0.0.20
Call channels.
+%package python
+Summary: Python binding for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+
+%description python
+Python bindings for %{name}.
+
+
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: %{name}-python = %{version}-%{release}
Requires: telepathy-glib-devel >= 0.17.5
Requires: farstream-devel >= 0.1.0
Requires: dbus-devel
@@ -50,7 +63,7 @@ developing applications that use %{name}.
%build
-%configure --enable-static=no --disable-python
+%configure --enable-static=no
make %{?_smp_mflags}
@@ -71,6 +84,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_libdir}/libtelepathy-farstream*.so.*
+%files python
+%{python_sitearch}/tpfarstream.so
+
+
%files devel
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_libdir}/libtelepathy-farstream.so
@@ -79,6 +96,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%changelog
+* Wed Mar 7 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.2.1-3
+- Enable python bindings.
+
* Mon Mar 5 2012 Brian Pepple <bpepple at fedoraproject.org> - 0.2.1-2
- Use macro for version in provides.
- Change reference Farsight in description to Farstream.
More information about the scm-commits
mailing list