diff --git a/fix-python-install.patch b/fix-python-install.patch new file mode 100644 index 0000000..e6cb8dc --- /dev/null +++ b/fix-python-install.patch @@ -0,0 +1,11 @@ +--- libgpiod-2.0/bindings/python/Makefile.am.orig 2023-02-13 16:18:49.337516185 +0000 ++++ libgpiod-2.0/bindings/python/Makefile.am 2023-02-13 16:19:08.952659326 +0000 +@@ -18,7 +18,7 @@ + + install-exec-local: + GPIOD_WITH_TESTS= \ +- $(PYTHON) $(srcdir)/setup.py install --prefix=$(prefix) ++ $(PYTHON) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix) + + SUBDIRS = gpiod + diff --git a/libgpiod.spec b/libgpiod.spec index 25b3ceb..d9881a7 100644 --- a/libgpiod.spec +++ b/libgpiod.spec @@ -1,13 +1,14 @@ -#global candidate rc2 +%global candidate rc1 Name: libgpiod -Version: 1.6.4 -Release: 1%{?candidate:.%{candidate}}%{?dist} +Version: 2.0 +Release: 0.1%{?candidate:.%{candidate}}%{?dist} Summary: C library and tools for interacting with linux GPIO char device License: LGPLv2+ 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 +Patch0: fix-python-install.patch BuildRequires: automake autoconf autoconf-archive libtool BuildRequires: doxygen @@ -60,7 +61,7 @@ Requires: python3-%{name} = %{version}-%{release} Files for development with %{name}. %prep -%setup -q -n %{name}-%{version}%{?candidate:-%{candidate}} +%autosetup -p1 %build autoreconf -vif @@ -85,19 +86,24 @@ find %{buildroot} -name '*.la' -delete %files utils %{_bindir}/gpio* +%{_mandir}/man*/gpio* %files c++ %{_libdir}/libgpiodcxx.so.* %files -n python3-%{name} -%{python3_sitearch}/gpiod.so +%{python3_sitearch}/gpiod-*/ %files devel %{_includedir}/gpiod.* +%{_includedir}/gpiodcxx/ %{_libdir}/pkgconfig/libgpiod*.pc %{_libdir}/%{name}*.so %changelog +* Mon Feb 13 2023 Peter Robinson - 2.0-0.1.rc1 +- Update to libgpiod 2.0 RC1 + * Wed Feb 08 2023 Peter Robinson - 1.6.4-1 - Update to 1.6.4 diff --git a/sources b/sources index 4fbdc37..1141229 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libgpiod-1.6.4.tar.xz) = 23ea27147039ae34505263dbfbb3ca9985fc671d26e489ccaf150543d4e853f709393f46a8a5a1e682fa91378163bd2db6c689159ef73c3a8d1eeea422eacda0 +SHA512 (libgpiod-2.0-rc1.tar.xz) = d8cd8c7c978fcb577cfec4d86e034d12e86078ff236e3404c73c0d6ed8d04984cc29063372ff097a4dd4356f5fdccc2e0eebce566ccaf4c830ba4030d226410d