The branch, master has been updated
via 1f4fecf44922398ca773de1b4d07dd456c455149 (commit)
from af7a35fe69b4ec7fabcf9b35611e99ff01035b19 (commit)
- Log -----------------------------------------------------------------
commit 1f4fecf44922398ca773de1b4d07dd456c455149
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Fri Dec 28 11:49:30 2012 +0100
rpm .spec file: Package the python wrapper
-----------------------------------------------------------------------
Summary of changes:
libftdi1.spec.in | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/libftdi1.spec.in b/libftdi1.spec.in
index 9ffd62d..881b0c4 100644
--- a/libftdi1.spec.in
+++ b/libftdi1.spec.in
@@ -1,3 +1,5 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
Summary: Library to program and control the FTDI USB controller
Name: libftdi1
Version: @VERSION@
@@ -9,6 +11,7 @@ Source:
http://www.intra2net.com/en/developer/libftdi/download/%{name}-%{vers
Buildroot: /tmp/%{name}-%{version}-root
Requires: libusb1
BuildRequires: libusb1, libusb1-devel, pkgconfig, doxygen
+BuildRequires: swig python-devel
Prefix: /usr
URL: http://www.intra2net.com/en/developer/libftdi
@@ -17,12 +20,21 @@ Summary: Header files and static libraries for libftdi1
Group: Development/Libraries
Requires: libftdi1 = %{version}, libusb1-devel
+%package python
+Summary: Python bindings for libftdi
+License: LGPL
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+
%description
Library to program and control the FTDI USB controller
%description devel
Header files and static libraries for libftdi1
+%description python
+Python bindings for libftdi1 generated by SWIG
+
%prep
%setup -q
@@ -71,3 +83,8 @@ rm -fr $RPM_BUILD_ROOT
%{_libdir}/libftdi1*.*a
%{_libdir}/libftdipp1*.*a
%{_libdir}/pkgconfig/*.pc
+
+%files python
+%defattr(-,root,root,-)
+%attr(755,root,root) %{python_sitearch}/_ftdi1.so
+%{python_sitearch}/ftdi1.py*
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|