1.1, C++ and Python 3 bindings

This commit is contained in:
Peter Robinson 2018-06-02 02:26:58 +01:00
parent a55e0c2d0e
commit f6ddb9ba11
2 changed files with 38 additions and 9 deletions

View File

@ -1,5 +1,5 @@
Name: libgpiod
Version: 1.0.1
Version: 1.1
Release: 1%{?dist}
Summary: C library and tools for interacting with linux GPIO char device
@ -7,12 +7,15 @@ License: LGPLv2+
URL: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
Source0: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/%{name}-%{version}.tar.gz
BuildRequires: automake autoconf libtool
BuildRequires: gcc
BuildRequires: automake autoconf autoconf-archive libtool
BuildRequires: doxygen
BuildRequires: gcc gcc-c++
BuildRequires: kernel-headers
BuildRequires: kmod-devel
BuildRequires: libstdc++-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: systemd-devel
BuildRequires: doxygen
%description
libgpiod is a C library and tools for interacting with the linux GPIO character
@ -29,6 +32,21 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description utils
Utilities for interacting with GPIO character devices.
%package c++
Summary: C++ bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description c++
C++ bindings for use with %{name}.
%package -n python3-%{name}
Summary: Python 3 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
Python 3 bindings for development with %{name}.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -41,7 +59,8 @@ Files for development with %{name}.
%build
autoreconf -vif
%configure --enable-tools=yes --disable-static --enable-tests
%configure --enable-tools=yes --disable-static --enable-tests \
--enable-bindings-cxx --enable-bindings-python
%make_build
@ -64,12 +83,22 @@ find %{buildroot} -name '*.la' -delete
%files utils
%{_bindir}/gpio*
%files c++
%{_libdir}/libgpiodcxx.so.*
%files -n python3-%{name}
%{python3_sitearch}/gpiod.so
%files devel
%{_includedir}/gpiod.h
%{_libdir}/pkgconfig/libgpiod.pc
%{_libdir}/%{name}.so
%{_includedir}/gpiod.*
%{_libdir}/pkgconfig/libgpiod*.pc
%{_libdir}/%{name}*.so
%changelog
* Thu May 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-1
- Update to 1.1 release
- New C++ and Python 3 bindings
* Sun Apr 15 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.1-1
- Update to 1.0.1

View File

@ -1 +1 @@
SHA512 (libgpiod-1.0.1.tar.gz) = b28ecdbbdaff8fdf2a213747883c792f306bdd135c51e01e40ee52726e4fe653b2832e46ee953eb40d56df40bc42cb2de6e27bc14113adc9e7a4df2912ec89cb
SHA512 (libgpiod-1.1.tar.gz) = 99a4ba15f3af54375bdeec28802f70d930844e0ac0cc55409b792459561d7067f00ef25c087f4be83941d1b0f0682ced68da72370eabc187eef04a9549d7b1d5