libgpiod/libgpiod.spec

87 lines
2.2 KiB
RPMSpec
Raw Normal View History

2017-08-24 13:35:31 +00:00
Name: libgpiod
2018-02-08 13:29:18 +00:00
Version: 1.0
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
BuildRequires: automake autoconf libtool
BuildRequires: gcc
BuildRequires: kernel-headers
BuildRequires: kmod-devel
BuildRequires: systemd-devel
BuildRequires: doxygen
%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.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Files for development with %{name}.
%prep
%autosetup
%build
autoreconf -vif
%configure --enable-tools=yes --disable-static --enable-tests
%make_build
%install
%make_install
#Remove libtool archives.
find %{buildroot} -name '*.la' -delete
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%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*
%files devel
%{_includedir}/gpiod.h
2018-02-08 13:29:18 +00:00
%{_libdir}/pkgconfig/libgpiod.pc
2017-08-24 13:35:31 +00:00
%{_libdir}/%{name}.so
%changelog
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
* 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