Blob Blame History Raw
%global modname gattlib

Name:               python-gattlib
Version:            0.20150805
Release:            2%{?dist}
Summary:            Library to access Bluetooth LE devices

License:            ASL 2.0 and GPLv2+ and LGPLv2+
# main package under ASL 2.0
# src/bluez under GPLv2+ and LGPLv2+
Source0:  {modname}/%{modname}-%{version}.tar.gz
Source1:	    COPYING
#Patch to allow building with Python 3 as present in Fedora
Patch0:             gattlib-py3.patch


%package -n python2-%{modname}
Summary:            %{summary}
%{?python_provide:%python_provide python2-%{modname}}
BuildRequires:      python2-devel
BuildRequires:      python-setuptools
BuildRequires:      boost-python-devel
BuildRequires:      glib2-devel
BuildRequires:      bluez-libs-devel

%description -n python2-%{modname}

Python 2 version.

%package -n python%{python3_pkgversion}-%{modname}
Summary:            %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
BuildRequires:      python%{python3_pkgversion}-devel
BuildRequires:      python%{python3_pkgversion}-setuptools
BuildRequires:      boost-python3-devel
BuildRequires:      glib2-devel
BuildRequires:      bluez-libs-devel

%description -n python%{python3_pkgversion}-%{modname}

Python %{python3_version} version.

%autosetup -n %{modname}-%{version}
cp %{S:1} .

find . -type f | xargs chmod -x



%{__python2} test
%{__python3} test

%files -n python2-%{modname}
%license COPYING

%files -n python%{python3_pkgversion}-%{modname}
%license COPYING

* Tue Dec 12 2017 Gwyn Ciesla <> - 0.20150805-2
- License clarification.

* Mon Dec 11 2017 Gwyn Ciesla <> - 0.20150805-1
- Add license file, fix URL, explain patch.

* Mon Dec 11 2017 Gwyn Ciesla <> - 0.20150805-0
- Initial package.