2017-08-24 13:35:31 +00:00
|
|
|
Name: libgpiod
|
2019-06-09 12:08:46 +00:00
|
|
|
Version: 1.4
|
2019-02-16 11:32:10 +00:00
|
|
|
Release: 1%{?dist}
|
2017-08-24 13:35:31 +00:00
|
|
|
Summary: C library and tools for interacting with linux GPIO char device
|
|
|
|
|
|
|
|
License: LGPLv2+
|
2017-11-09 15:52:30 +00:00
|
|
|
URL: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
|
2017-11-09 16:01:13 +00:00
|
|
|
Source0: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/%{name}-%{version}.tar.gz
|
2017-08-24 13:35:31 +00:00
|
|
|
|
2018-06-02 01:26:58 +00:00
|
|
|
BuildRequires: automake autoconf autoconf-archive libtool
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc gcc-c++
|
2017-08-24 13:35:31 +00:00
|
|
|
BuildRequires: kernel-headers
|
|
|
|
BuildRequires: kmod-devel
|
2018-06-02 01:26:58 +00:00
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2017-08-24 13:35:31 +00:00
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
libgpiod is a C library and tools for interacting with the linux GPIO character
|
|
|
|
device (gpiod stands for GPIO device) The new character device interface
|
|
|
|
guarantees all allocated resources are freed after closing the device file
|
|
|
|
descriptor and adds several new features that are not present in the obsolete
|
|
|
|
sysfs interface (like event polling, setting/reading multiple values at once or
|
|
|
|
open-source and open-drain GPIOs).
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
Summary: Utilities for GPIO
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
Utilities for interacting with GPIO character devices.
|
|
|
|
|
2018-06-02 01:26:58 +00:00
|
|
|
%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}.
|
|
|
|
|
2017-08-24 13:35:31 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development package for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files for development with %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -vif
|
2018-06-02 01:26:58 +00:00
|
|
|
%configure --enable-tools=yes --disable-static --enable-tests \
|
|
|
|
--enable-bindings-cxx --enable-bindings-python
|
2017-08-24 13:35:31 +00:00
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
#Remove libtool archives.
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
|
|
|
|
2019-01-22 17:39:45 +00:00
|
|
|
%ldconfig_scriptlets
|
2017-08-24 13:35:31 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2017-11-09 16:01:13 +00:00
|
|
|
%doc README
|
2017-08-24 13:35:31 +00:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%{_bindir}/gpio*
|
|
|
|
|
2018-06-02 01:26:58 +00:00
|
|
|
%files c++
|
|
|
|
%{_libdir}/libgpiodcxx.so.*
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%{python3_sitearch}/gpiod.so
|
|
|
|
|
2017-08-24 13:35:31 +00:00
|
|
|
%files devel
|
2018-06-02 01:26:58 +00:00
|
|
|
%{_includedir}/gpiod.*
|
|
|
|
%{_libdir}/pkgconfig/libgpiod*.pc
|
|
|
|
%{_libdir}/%{name}*.so
|
2017-08-24 13:35:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2019-06-09 12:08:46 +00:00
|
|
|
* Sun Jun 6 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.4-1
|
|
|
|
- Update to 1.4 release
|
|
|
|
|
2019-03-26 11:01:19 +00:00
|
|
|
* Tue Mar 26 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-1
|
|
|
|
- Update to 1.3 release
|
|
|
|
|
2019-02-16 11:32:10 +00:00
|
|
|
* Sat Feb 16 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.2.1-1
|
|
|
|
- Update to 1.2.1 release
|
|
|
|
|
2019-02-01 07:16:01 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-11-10 18:45:32 +00:00
|
|
|
* Sat Nov 10 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.2-1
|
|
|
|
- Update to 1.2 release
|
|
|
|
|
2018-07-26 10:31:04 +00:00
|
|
|
* Thu Jul 26 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.1-1
|
|
|
|
- Update to 1.1.1 release
|
|
|
|
|
2018-07-13 08:11:30 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-19 08:46:00 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1-2
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-06-02 01:26:58 +00:00
|
|
|
* Thu May 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.1-1
|
|
|
|
- Update to 1.1 release
|
|
|
|
- New C++ and Python 3 bindings
|
|
|
|
|
2018-04-15 09:08:45 +00:00
|
|
|
* Sun Apr 15 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.1-1
|
|
|
|
- Update to 1.0.1
|
|
|
|
|
2018-02-08 13:29:18 +00:00
|
|
|
* Thu Feb 8 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1.0-1
|
|
|
|
- Update to 1.0.0 with stable API
|
|
|
|
|
2018-02-07 21:45:51 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-09 15:52:30 +00:00
|
|
|
* Thu Nov 9 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.2-1
|
|
|
|
- Update to 0.3.2
|
|
|
|
|
2017-08-24 13:35:31 +00:00
|
|
|
* Tue Aug 22 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.3-2
|
|
|
|
- Minor review updates
|
|
|
|
|
|
|
|
* Sat Jul 1 2017 Peter Robinson <pbrobinson@fedoraproject.org> 0.3-1
|
|
|
|
- Initial package
|