libgpiod/libgpiod.spec

275 lines
8.8 KiB
RPMSpec
Raw Normal View History

2023-03-02 18:25:16 +00:00
#global candidate rc3
2020-01-07 10:43:42 +00:00
2017-08-24 13:35:31 +00:00
Name: libgpiod
2023-11-03 18:21:04 +00:00
Version: 2.1
Release: 5%{?candidate:.%{candidate}}%{?dist}
2017-08-24 13:35:31 +00:00
Summary: C library and tools for interacting with linux GPIO char device
2023-07-27 16:10:12 +00:00
License: LGPL-2.1-or-later
2017-11-09 15:52:30 +00:00
URL: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
Source0: https://mirrors.edge.kernel.org/pub/software/libs/%{name}/%{name}-%{version}%{?candidate:-%{candidate}}.tar.xz
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++
2023-02-13 17:14:41 +00:00
BuildRequires: help2man
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
2023-02-13 17:14:41 +00:00
BuildRequires: make
2018-06-02 01:26:58 +00:00
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
2023-07-27 16:10:12 +00:00
License: GPL-2.0-or-later
2017-08-24 13:35:31 +00:00
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}
Requires: %{name}-c++ = %{version}-%{release}
Requires: python3-%{name} = %{version}-%{release}
2017-08-24 13:35:31 +00:00
%description devel
Files for development with %{name}.
%prep
2023-02-13 16:45:58 +00:00
%autosetup -p1
# to prevent setuptools from installing an .egg, we need to pass --root to setup.py install
# see https://github.com/pypa/setuptools/issues/3143
# and https://github.com/pypa/pip/issues/11501
sed -i 's/--prefix=$(DESTDIR)$(prefix)/--root=$(DESTDIR) --prefix=$(prefix)/' bindings/python/Makefile*
2017-08-24 13:35:31 +00:00
%build
autoreconf -vif
%configure --enable-tools=yes --disable-static \
2018-06-02 01:26:58 +00:00
--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
%ldconfig_scriptlets
2017-08-24 13:35:31 +00:00
%files
%license COPYING
2017-11-09 16:01:13 +00:00
%doc README
2023-11-03 18:21:04 +00:00
%{_libdir}/%{name}.so.3*
2017-08-24 13:35:31 +00:00
%files utils
%{_bindir}/gpio*
2023-02-13 16:45:58 +00:00
%{_mandir}/man*/gpio*
2017-08-24 13:35:31 +00:00
2018-06-02 01:26:58 +00:00
%files c++
2023-11-03 18:21:04 +00:00
%{_libdir}/libgpiodcxx.so.2*
2018-06-02 01:26:58 +00:00
%files -n python3-%{name}
%{python3_sitearch}/gpiod/
%{python3_sitearch}/gpiod-*.egg-info/
2018-06-02 01:26:58 +00:00
2017-08-24 13:35:31 +00:00
%files devel
2018-06-02 01:26:58 +00:00
%{_includedir}/gpiod.*
2023-02-13 16:45:58 +00:00
%{_includedir}/gpiodcxx/
2018-06-02 01:26:58 +00:00
%{_libdir}/pkgconfig/libgpiod*.pc
%{_libdir}/%{name}*.so
2017-08-24 13:35:31 +00:00
%changelog
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.1-5
- Bump release for June 2024 mass rebuild
* Mon Jan 29 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2023-11-03 18:21:04 +00:00
* Fri Nov 03 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.1-1
- Update to 2.1
2023-08-25 15:18:15 +00:00
* Fri Aug 25 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0.2-1
- Update to 2.02
2023-07-27 16:10:12 +00:00
* Thu Jul 27 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0.1-5
- migrated to SPDX license
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-06-13 18:42:47 +00:00
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.0.1-3
- Rebuilt for Python 3.12
* Tue Apr 25 2023 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
- Don't install a Python .egg
2023-04-11 12:31:52 +00:00
* Tue Apr 11 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0.1-1
- Update to 2.0.1
2023-03-02 18:25:16 +00:00
* Thu Mar 02 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0-1
- Update to 2.0
2023-02-27 16:59:03 +00:00
* Mon Feb 27 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0-0.4.rc3
- libgpiod 2.0 RC3
2023-02-16 17:26:25 +00:00
* Thu Feb 16 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0-0.3.rc2
- libgpiod 2.0 RC2
2023-02-13 17:14:41 +00:00
* Mon Feb 13 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0-0.2.rc1
- Add deps for man pages build
2023-02-13 16:45:58 +00:00
* Mon Feb 13 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0-0.1.rc1
- Update to libgpiod 2.0 RC1
2023-02-08 15:52:32 +00:00
* Wed Feb 08 2023 Peter Robinson <pbrobinson@fedoraproject.org> - 1.6.4-1
- Update to 1.6.4
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2022-08-23 11:42:14 +00:00
* Tue Aug 23 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 1.6.3-7
- Update devel dependencies
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-13 13:08:34 +00:00
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.6.3-5
- Rebuilt for Python 3.11
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-04 18:09:12 +00:00
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.6.3-2
- Rebuilt for Python 3.10
2021-03-22 13:56:07 +00:00
* Mon Mar 22 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 1.6.3-1
- Update to 1.6.3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-12-01 10:10:39 +00:00
* Tue Dec 1 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.6.2-1
- Update to 1.6.2
* Mon Nov 2 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.6.1-1
2020-11-02 19:40:25 +00:00
- Update to 1.6.1
2020-10-01 13:13:26 +00:00
* Thu Oct 01 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.6-1
- Update to 1.6
2020-09-26 08:42:43 +00:00
* Sat Sep 26 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5.3-1
- Update to 1.5.3
2020-08-26 09:42:00 +00:00
* Wed Aug 26 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5.2-1
- Update to 1.5.2
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-05-26 00:50:27 +00:00
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-2
- Rebuilt for Python 3.9
2020-04-01 11:51:21 +00:00
* Wed Apr 01 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 1.5.1-1
- Update to 1.5.1
2020-01-28 13:42:07 +00:00
* Tue Jan 28 2020 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-1
- Update to 1.5
2020-01-15 05:33:49 +00:00
* Wed Jan 15 2020 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-0.2-RC2
- Update to 1.5 RC2
2020-01-07 10:43:42 +00:00
* Tue Jan 7 2020 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-0.1-RC1
- Update to 1.5 RC1
2019-08-19 08:17:46 +00:00
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-2
- Rebuilt for Python 3.8
2019-08-09 12:05:42 +00:00
* Fri Aug 9 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.4.1-1
- Update to 1.4.1 release
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-09 15:02:18 +00:00
* Sun Jun 9 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1.4-1
2019-06-09 12:08:46 +00:00
- 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
* 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
* 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
* 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