commit libgpiod for openSUSE:Factory

2020-04-23 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2020-04-23 18:40:05

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.2738 (New)


Package is "libgpiod"

Thu Apr 23 18:40:05 2020 rev:13 rq:796563 version:1.5.1

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2020-04-18 
00:33:49.114473264 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.2738/libgpiod.changes  
2020-04-23 18:40:13.077210377 +0200
@@ -1,0 +2,72 @@
+Fri Apr 17 13:54:32 UTC 2020 - Guillaume GARDET 
+
+- Update to v1.5.1:
+  * Bug fixes:
+- relax gpiod_chip_open() for symbolic links
+- Update to v1.5:
+  * New features:
+- switched to using the GLib testing framework for core library tests and 
BATS
+  (Bash Automated Testing System) for command-line tools
+- used Catch2 C++ testing framework to implement a proper test-suite for 
C++
+  bindings while also reusing the API provided by libgpiomockup
+- used Python's unittest package to implement a proper test suite for 
Python
+  bindings and reused libgpiockup again
+- provided line::update() and Line.update() routines for C++ and Python
+  bindings respectively allowing to update the line info from bindings as 
well
+- added support for bias flags which are a new functionality first 
available in
+  linux v5.5; subsequently the library now requires v5.5 kernel headers to
+  build; the new flags are supported in the core library, C++ and Python
+  bindings as well as the command-line tools
+- added support for the new SET_CONFIG ioctl(): this too is a new 
functionality
+  added in linux v5.5; both features have been implemented in the library 
by
+  Kent Gibson
+- added routines for reading multiple line events at once to the core 
library,
+  C++ and Python bindings
+  * Improvements:
+- constified function arguments where applicable in libgpiomockup
+- fixed the name of the test exeucutable displayed at build time
+- improved the function pointer casting in Python bindings to avoid 
warnings
+  emitted by GCC8
+- switched to using the KERNEL_VERSION() macro in tests instead of 
handcoded
+  version parsing
+- improved the setup ordering in tests (setup libgpiomockup before checking
+  the kernel version
+- add 'extern "c"' to the libgpiomockup header to make it usable from C++
+- add chip index validation to libgpiomockup functions
+- check if the debugfs directory used by libgpiomockup is writable before
+  using it to set the pull of dummy lines
+- add several new test cases
+- improved Python example programs (made gpiomon's output similar to the
+  original tool, make gpioset wait for an ENTER pres by default)
+- fixed the major:minor number comparison between the device and sysfs
+- deprecated the gpiod_line_needs_update() function and removed the logic
+  behind it from the library
+- shrank the Python bindings a bit by directly returning the value from
+  PyErr_SetFromErrno()
+- dropped noexcept from methods which can throw in C++ bindings
+- switched to initializing the bitset with integers instead of strings in 
C++
+  bindings
+- allowed gpiod_line_set_value_bulk() to accept null pointers
+- when building Python bindings: check for the existence of python-config
+- improved the readability of help text messages for command-line tools
+- reworked the .gitignore file: added libtool scripts generated during
+  cross-compilation and split the main .gitignore into several fine-grained
+  files
+- fixed several misspellings
+- other minor tweaks and improvements
+  * Bug fixes:
+- fixed memory leaks in libgpiomockup
+- fixed memory leaks in the testing framework
+- fixed a segfault in error path in tests
+- make gpioinfo show lines claimed by the kernel as used even if they have 
no
+  named consumer
+- fixed the test cases validating the '--active-low' switch in gpiomon and
+  the GPIOHANDLE_REQUEST_ACTIVE_LOW flag in the core library after a fix
+  for incorrect behavior was merged in linux v5.2.7
+- stopped failing at init-time of libgpiomockup if gpio-mockup is already
+  loaded
+- added a missing throw keyword in error path in C++ bindings
+- fixed a segfault in Python bindings when calling Line.request() without
+  the consumer argument
+
+---

Old:

  libgpiod-1.4.3.tar.gz

New:

  libgpiod-1.5.1.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- 

commit libgpiod for openSUSE:Factory

2020-04-17 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2020-04-18 00:32:58

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.2738 (New)


Package is "libgpiod"

Sat Apr 18 00:32:58 2020 rev:12 rq:794919 version:1.4.3

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2020-03-20 
23:59:52.969040379 +0100
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.2738/libgpiod.changes  
2020-04-18 00:33:49.114473264 +0200
@@ -1,0 +2,7 @@
+Fri Apr 17 12:54:32 UTC 2020 - Guillaume GARDET 
+
+- Update to v1.4.3:
+  * Bug fixes:
+- relax gpiod_chip_open() for symbolic links
+
+---

Old:

  libgpiod-1.4.2.tar.gz

New:

  libgpiod-1.4.3.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.dfSyvr/_old  2020-04-18 00:33:49.730474540 +0200
+++ /var/tmp/diff_new_pack.dfSyvr/_new  2020-04-18 00:33:49.730474540 +0200
@@ -26,7 +26,7 @@
 %bcond_with libgpiod_tests
 %endif
 Name:   libgpiod
-Version:1.4.2
+Version:1.4.3
 Release:0
 Summary:C library and tools for interacting with the linux GPIO 
character device
 License:LGPL-2.1-or-later

++ libgpiod-1.4.2.tar.gz -> libgpiod-1.4.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4.2/NEWS new/libgpiod-1.4.3/NEWS
--- old/libgpiod-1.4.2/NEWS 2020-01-27 17:35:09.0 +0100
+++ new/libgpiod-1.4.3/NEWS 2020-03-31 10:26:46.0 +0200
@@ -1,3 +1,9 @@
+libgpiod v1.4.3
+===
+
+Bug fixes:
+- relax gpiod_chip_open() for symbolic links
+
 libgpiod v1.4.2
 ===
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4.2/configure.ac 
new/libgpiod-1.4.3/configure.ac
--- old/libgpiod-1.4.2/configure.ac 2020-01-27 17:35:09.0 +0100
+++ new/libgpiod-1.4.3/configure.ac 2020-03-31 10:26:46.0 +0200
@@ -8,7 +8,7 @@
 
 AC_PREREQ(2.61)
 
-AC_INIT([libgpiod], 1.4.2)
+AC_INIT([libgpiod], 1.4.3)
 AC_SUBST(EXTRA_VERSION, [])
 
 AC_DEFINE_UNQUOTED([GPIOD_VERSION_STR],
@@ -30,7 +30,7 @@
 #
 # Define the libtool version as (C.R.A):
 # NOTE: this version only applies to the core C library.
-AC_SUBST(ABI_VERSION, [3.2.1])
+AC_SUBST(ABI_VERSION, [3.3.1])
 # Have a separate ABI version for C++ bindings:
 AC_SUBST(ABI_CXX_VERSION, [1.4.0])
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4.2/lib/core.c 
new/libgpiod-1.4.3/lib/core.c
--- old/libgpiod-1.4.2/lib/core.c   2020-01-27 17:35:09.0 +0100
+++ new/libgpiod-1.4.3/lib/core.c   2020-03-31 10:26:46.0 +0200
@@ -10,6 +10,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -62,7 +63,7 @@
 
 static bool is_gpiochip_cdev(const char *path)
 {
-   char *name, *pathcpy, *sysfsp, sysfsdev[16], devstr[16];
+   char *name, *realname, *sysfsp, sysfsdev[16], devstr[16];
struct stat statbuf;
bool ret = false;
int rv, fd;
@@ -72,6 +73,19 @@
if (rv)
goto out;
 
+   /*
+* Is it a symbolic link? We have to resolve symbolic link before
+* checking the rest.
+*/
+   realname = S_ISLNK(statbuf.st_mode) ? realpath(path, NULL)
+   : strdup(path);
+   if (realname == NULL)
+   goto out;
+
+   rv = stat(realname, );
+   if (rv)
+   goto out_free_realname;
+
/* Is it a character device? */
if (!S_ISCHR(statbuf.st_mode)) {
/*
@@ -81,20 +95,16 @@
 * libgpiod from before the introduction of this routine.
 */
errno = ENOTTY;
-   goto out;
+   goto out_free_realname;
}
 
/* Get the basename. */
-   pathcpy = strdup(path);
-   if (!pathcpy)
-   goto out;
-
-   name = basename(pathcpy);
+   name = basename(realname);
 
/* Do we have a corresponding sysfs attribute? */
rv = asprintf(, "/sys/bus/gpio/devices/%s/dev", name);
if (rv < 0)
-   goto out_free_pathcpy;
+   goto out_free_realname;
 
if (access(sysfsp, R_OK) != 0) {
/*
@@ -136,8 +146,8 @@
 
 out_free_sysfsp:
free(sysfsp);
-out_free_pathcpy:
-   free(pathcpy);
+out_free_realname:
+   free(realname);
 out:
return ret;
 }




commit libgpiod for openSUSE:Factory

2020-03-20 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2020-03-20 23:55:28

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.3160 (New)


Package is "libgpiod"

Fri Mar 20 23:55:28 2020 rev:11 rq:786536 version:1.4.2

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2020-03-11 
18:51:34.379573650 +0100
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.3160/libgpiod.changes  
2020-03-20 23:59:52.969040379 +0100
@@ -1,0 +2,6 @@
+Thu Mar 19 17:37:36 UTC 2020 - Petr Tesařík 
+
+- Rename the libgpiod package (which contains the command-line
+  tools) to libgpiod-utils.
+
+---



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.Pucoxh/_old  2020-03-20 23:59:55.897042234 +0100
+++ /var/tmp/diff_new_pack.Pucoxh/_new  2020-03-20 23:59:55.901042237 +0100
@@ -28,7 +28,7 @@
 Name:   libgpiod
 Version:1.4.2
 Release:0
-Summary:Tools for interacting with the linux GPIO character device
+Summary:C library and tools for interacting with the linux GPIO 
character device
 License:LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
 URL:https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
@@ -54,6 +54,19 @@
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
 
+%package utils
+Summary:Tools for interacting with the linux GPIO character device
+Group:  Development/Libraries/C and C++
+Provides:   libgpiod = %{version}-%{release}
+Obsoletes:  libgpiod < %{version}-%{release}
+
+%description utils
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
+
+Command-line tools part.
+
 %package -n libgpiod%{libgpiod_soversion}
 Summary:C library for interacting with the linux GPIO character device
 Group:  System/Libraries
@@ -132,7 +145,7 @@
--enable-tools=yes \
--enable-bindings-python \
--enable-bindings-cxx
-make
+make %{?_smp_mflags}
 
 %install
 %make_install
@@ -149,7 +162,7 @@
 %postun -n libgpiomockup%{libgpiomockup_soversion} -p /sbin/ldconfig
 %endif
 
-%files
+%files utils
 %{_bindir}/gpio*
 
 %files -n libgpiod%{libgpiod_soversion}




commit libgpiod for openSUSE:Factory

2020-03-11 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2020-03-11 18:49:35

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.3160 (New)


Package is "libgpiod"

Wed Mar 11 18:49:35 2020 rev:10 rq:783433 version:1.4.2

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2020-02-05 
19:41:22.399258302 +0100
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.3160/libgpiod.changes  
2020-03-11 18:51:34.379573650 +0100
@@ -1,0 +2,8 @@
+Tue Mar 10 13:48:19 UTC 2020 - Guillaume GARDET 
+
+- Update to version 1.4.2 (Bug fixes release):
+  * fix the major:minor number comparison between the device and sysfs
+  * drop noexcept from direction() and active_state() in C++ bindings
+  * fix a segfault when calling Line.request() in Python bindings
+
+---

Old:

  libgpiod-1.4.1.tar.gz

New:

  libgpiod-1.4.2.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.Uzx5v3/_old  2020-03-11 18:51:34.863573867 +0100
+++ /var/tmp/diff_new_pack.Uzx5v3/_new  2020-03-11 18:51:34.863573867 +0100
@@ -19,16 +19,14 @@
 %define libgpiod_soversion 2
 %define libgpiodcxx_soversion 1
 %define libgpiomockup_soversion 0
-
 # Tests are only available for kernel 5.1+ (so TW only)
 %if 0%{?suse_version} > 1500
 %bcond_without libgpiod_tests
 %else
 %bcond_with libgpiod_tests
 %endif
-
 Name:   libgpiod
-Version:1.4.1
+Version:1.4.2
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later
@@ -40,16 +38,16 @@
 BuildRequires:  automake
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
+BuildRequires:  libkmod-devel
+BuildRequires:  libtool
+BuildRequires:  make
+BuildRequires:  python3-devel
 %if %{with libgpiod_tests}
 BuildRequires:  kernel-devel >= 5.1
 BuildRequires:  pkgconfig(libudev)
 %else
 BuildRequires:  kernel-devel >= 4.8
 %endif
-BuildRequires:  libkmod-devel
-BuildRequires:  libtool
-BuildRequires:  make
-BuildRequires:  python3-devel
 
 %description
 The libgpiod library encapsulates the ioctl calls and data structures
@@ -95,9 +93,12 @@
 %package devel
 Summary:Devel files for libgpiod
 Group:  Development/Languages/C and C++
-Requires:   %{name}
+Requires:   %{name} = %{version}
 Requires:   libgpiod%{libgpiod_soversion} = %{version}
 Requires:   libgpiodcxx%{libgpiodcxx_soversion} = %{version}
+%if %{with libgpiod_tests}
+Requires:   libgpiomockup%{libgpiomockup_soversion} = %{version}
+%endif
 
 %description devel
 The libgpiod library encapsulates the ioctl calls and data structures
@@ -143,6 +144,11 @@
 %post -n libgpiodcxx%{libgpiodcxx_soversion} -p /sbin/ldconfig
 %postun-n libgpiodcxx%{libgpiodcxx_soversion} -p /sbin/ldconfig
 
+%if %{with libgpiod_tests}
+%post -n libgpiomockup%{libgpiomockup_soversion} -p /sbin/ldconfig
+%postun -n libgpiomockup%{libgpiomockup_soversion} -p /sbin/ldconfig
+%endif
+
 %files
 %{_bindir}/gpio*
 

++ libgpiod-1.4.1.tar.gz -> libgpiod-1.4.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4.1/NEWS new/libgpiod-1.4.2/NEWS
--- old/libgpiod-1.4.1/NEWS 2019-08-07 12:08:52.0 +0200
+++ new/libgpiod-1.4.2/NEWS 2020-01-27 17:35:09.0 +0100
@@ -1,3 +1,11 @@
+libgpiod v1.4.2
+===
+
+Bug fixes:
+- fix the major:minor number comparison between the device and sysfs
+- drop noexcept from direction() and active_state() in C++ bindings
+- fix a segfault when calling Line.request() in Python bindings
+
 libgpiod v1.4.1
 ===
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4.1/bindings/cxx/gpiod.hpp 
new/libgpiod-1.4.2/bindings/cxx/gpiod.hpp
--- old/libgpiod-1.4.1/bindings/cxx/gpiod.hpp   2019-08-07 12:08:52.0 
+0200
+++ new/libgpiod-1.4.2/bindings/cxx/gpiod.hpp   2020-01-27 17:35:09.0 
+0100
@@ -312,13 +312,13 @@
 * @brief Get current direction of this line.
 * @return Current direction setting.
 */
-   GPIOD_API int direction(void) const noexcept;
+   GPIOD_API int direction(void) const;
 
/**
 * @brief Get current active state of this line.
 * @return Current active state setting.
 */
-   GPIOD_API int active_state(void) const noexcept;
+   GPIOD_API int active_state(void) const;
 
/**
 * @brief Check if this line is used by the kernel or other user space
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 

commit libgpiod for openSUSE:Factory

2020-02-05 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2020-02-05 19:41:21

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.26092 (New)


Package is "libgpiod"

Wed Feb  5 19:41:21 2020 rev:9 rq:769613 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2019-10-31 
22:34:11.421019777 +0100
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.26092/libgpiod.changes 
2020-02-05 19:41:22.399258302 +0100
@@ -1,0 +2,6 @@
+Mon Feb  3 14:12:55 UTC 2020 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(libudev) instead of libudev-devel: allow
+  OBS to shortcut through the -mini flavors.
+
+---



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.yrtZV3/_old  2020-02-05 19:41:23.263258715 +0100
+++ /var/tmp/diff_new_pack.yrtZV3/_new  2020-02-05 19:41:23.279258722 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libgpiod
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -33,7 +33,7 @@
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
-Url:https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
+URL:https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
 Source0:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-%{version}.tar.gz
 BuildRequires:  autoconf
 BuildRequires:  autoconf-archive
@@ -42,7 +42,7 @@
 BuildRequires:  gcc-c++
 %if %{with libgpiod_tests}
 BuildRequires:  kernel-devel >= 5.1
-BuildRequires:  libudev-devel
+BuildRequires:  pkgconfig(libudev)
 %else
 BuildRequires:  kernel-devel >= 4.8
 %endif




commit libgpiod for openSUSE:Factory

2019-10-31 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2019-10-31 22:34:10

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.2990 (New)


Package is "libgpiod"

Thu Oct 31 22:34:10 2019 rev:8 rq:744438 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2019-10-30 
14:48:06.170200416 +0100
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.2990/libgpiod.changes  
2019-10-31 22:34:11.421019777 +0100
@@ -1,0 +2,5 @@
+Thu Oct 31 09:41:10 UTC 2019 - Guillaume GARDET 
+
+- Rename python-libgpiod to python3-gpiod
+
+---



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.0vT6m4/_old  2019-10-31 22:34:12.673021332 +0100
+++ /var/tmp/diff_new_pack.0vT6m4/_new  2019-10-31 22:34:12.693021356 +0100
@@ -106,11 +106,13 @@
 
 Devel files part.
 
-%package -n python-%{name}
+%package -n python3-gpiod
 Summary:Python binding for libgpiod
 Group:  Development/Languages/Python
+Provides:   python-libgpiod
+Obsoletes:  python-libgpiod
 
-%description -n python-%{name}
+%description -n python3-gpiod
 The libgpiod library encapsulates the ioctl calls and data structures
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
@@ -161,7 +163,7 @@
 %{_libdir}/pkgconfig/libgpiod.pc
 %{_libdir}/pkgconfig/libgpiodcxx.pc
 
-%files -n python-%{name}
+%files -n python3-gpiod
 %{python3_sitearch}/*.so
 
 %changelog




commit libgpiod for openSUSE:Factory

2019-10-30 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2019-10-30 14:48:01

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.2990 (New)


Package is "libgpiod"

Wed Oct 30 14:48:01 2019 rev:7 rq:743965 version:1.4.1

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2019-06-13 
23:06:41.323182197 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.2990/libgpiod.changes  
2019-10-30 14:48:06.170200416 +0100
@@ -1,0 +2,13 @@
+Wed Oct 30 07:44:00 UTC 2019 - Guillaume GARDET 
+
+- Update to v1.4.1 (Bug fixes release):
+  * fix GCC8 warnings when building python bindings
+  * fix a bug in gpioinfo where lines used by the kernel without any consumer
+string were reported as unused
+  * fix a bug in line::event_get_fd() in C++ bindings where the exception
+wouldn't be throws in error cases due to a missing 'throw' keyword
+  * fix a couple bugs in the test-suite
+  * disable a failing assertion in the test-suite that stopped working after
+  linux v5.2.7
+
+---

Old:

  libgpiod-1.4.tar.gz

New:

  libgpiod-1.4.1.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.og3K2A/_old  2019-10-30 14:48:07.158201466 +0100
+++ /var/tmp/diff_new_pack.og3K2A/_new  2019-10-30 14:48:07.158201466 +0100
@@ -28,7 +28,7 @@
 %endif
 
 Name:   libgpiod
-Version:1.4
+Version:1.4.1
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later

++ libgpiod-1.4.tar.gz -> libgpiod-1.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4/NEWS new/libgpiod-1.4.1/NEWS
--- old/libgpiod-1.4/NEWS   2019-06-06 15:18:00.0 +0200
+++ new/libgpiod-1.4.1/NEWS 2019-08-07 12:08:52.0 +0200
@@ -1,3 +1,16 @@
+libgpiod v1.4.1
+===
+
+Bug fixes:
+- fix GCC8 warnings when building python bindings
+- fix a bug in gpioinfo where lines used by the kernel without any consumer
+  string were reported as unused
+- fix a bug in line::event_get_fd() in C++ bindings where the exception
+  wouldn't be throws in error cases due to a missing 'throw' keyword
+- fix a couple bugs in the test-suite
+- disable a failing assertion in the test-suite that stopped working after
+  linux v5.2.7
+
 libgpiod v1.4
 =
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4/bindings/cxx/line.cpp 
new/libgpiod-1.4.1/bindings/cxx/line.cpp
--- old/libgpiod-1.4/bindings/cxx/line.cpp  2019-06-06 15:18:00.0 
+0200
+++ new/libgpiod-1.4.1/bindings/cxx/line.cpp2019-08-07 12:08:52.0 
+0200
@@ -183,8 +183,8 @@
int ret = ::gpiod_line_event_get_fd(this->_m_line);
 
if (ret < 0)
-   ::std::system_error(errno, ::std::system_category(),
-   "unable to get the line event file 
descriptor");
+   throw ::std::system_error(errno, ::std::system_category(),
+ "unable to get the line event file 
descriptor");
 
return ret;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.4/bindings/python/gpiodmodule.c 
new/libgpiod-1.4.1/bindings/python/gpiodmodule.c
--- old/libgpiod-1.4/bindings/python/gpiodmodule.c  2019-06-06 
15:18:00.0 +0200
+++ new/libgpiod-1.4.1/bindings/python/gpiodmodule.c2019-08-07 
12:08:52.0 +0200
@@ -103,7 +103,9 @@
return ret;
 }
 
-static int gpiod_LineEvent_init(void)
+static int gpiod_LineEvent_init(PyObject *Py_UNUSED(ignored0),
+   PyObject *Py_UNUSED(ignored1),
+   PyObject *Py_UNUSED(ignored2))
 {
PyErr_SetString(PyExc_NotImplementedError,
"Only gpiod.Line can create new LineEvent objects.");
@@ -121,7 +123,8 @@
 PyDoc_STRVAR(gpiod_LineEvent_get_type_doc,
 "Event type of this line event (integer).");
 
-PyObject *gpiod_LineEvent_get_type(gpiod_LineEventObject *self)
+PyObject *gpiod_LineEvent_get_type(gpiod_LineEventObject *self,
+  PyObject *Py_UNUSED(ignored))
 {
int rv;
 
@@ -136,7 +139,8 @@
 PyDoc_STRVAR(gpiod_LineEvent_get_sec_doc,
 "Seconds value of the line event timestamp (integer).");
 
-PyObject *gpiod_LineEvent_get_sec(gpiod_LineEventObject *self)
+PyObject *gpiod_LineEvent_get_sec(gpiod_LineEventObject *self,
+ PyObject *Py_UNUSED(ignored))
 {
  

commit libgpiod for openSUSE:Factory

2019-06-13 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2019-06-13 23:06:37

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.4811 (New)


Package is "libgpiod"

Thu Jun 13 23:06:37 2019 rev:6 rq:709751 version:1.4

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2019-04-14 
12:22:36.847774943 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.4811/libgpiod.changes  
2019-06-13 23:06:41.323182197 +0200
@@ -1,0 +2,31 @@
+Thu Jun 13 13:37:45 UTC 2019 - Guillaume GARDET 
+
+- Replace *_number with *_soversion
+
+---
+Thu Jun 13 12:43:51 UTC 2019 - Guillaume GARDET 
+
+- Enable build of tests (package gpiod-test and libgpiomockup) for Tumbleweed
+
+---
+Thu Jun 13 10:49:43 UTC 2019 - Guillaume GARDET 
+
+- Update to 1.4:
+  * New features:
+- updated the testing framework to work with linux v5.1 in which the 
debugfs
+  interface of the GPIO testing module changed in a backward incompatible 
way
+- factored out the code controlling the GPIO testing module into a separate
+  shared library that may be reused by future testing executables for 
different
+  language bindings
+- removed the --enable-install-tests build option and the make check 
target as
+  they were redundant, subsequently tests are now installed as a normal 
program
+  whenever they're enabled with --enable-tests
+
+  * Improvements:
+- removed unnecessary std::move calls from C++ bindings
+- added the explicit keyword to bool() operators in C++ bindings
+
+  * Bug fixes:
+- fix out of source build of man pages
+
+---

Old:

  libgpiod-1.3.tar.gz

New:

  libgpiod-1.4.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.mkbxkH/_old  2019-06-13 23:06:41.995181799 +0200
+++ /var/tmp/diff_new_pack.mkbxkH/_new  2019-06-13 23:06:41.995181799 +0200
@@ -16,11 +16,19 @@
 #
 
 
-%define libgpiod_number 2
-%define libgpiodcxx_number 1
+%define libgpiod_soversion 2
+%define libgpiodcxx_soversion 1
+%define libgpiomockup_soversion 0
+
+# Tests are only available for kernel 5.1+ (so TW only)
+%if 0%{?suse_version} > 1500
+%bcond_without libgpiod_tests
+%else
+%bcond_with libgpiod_tests
+%endif
 
 Name:   libgpiod
-Version:1.3
+Version:1.4
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later
@@ -32,7 +40,12 @@
 BuildRequires:  automake
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
+%if %{with libgpiod_tests}
+BuildRequires:  kernel-devel >= 5.1
+BuildRequires:  libudev-devel
+%else
 BuildRequires:  kernel-devel >= 4.8
+%endif
 BuildRequires:  libkmod-devel
 BuildRequires:  libtool
 BuildRequires:  make
@@ -43,36 +56,48 @@
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
 
-%package -n libgpiod%{libgpiod_number}
+%package -n libgpiod%{libgpiod_soversion}
 Summary:C library for interacting with the linux GPIO character device
 Group:  System/Libraries
 Conflicts:  libgpiod1
 
-%description -n libgpiod%{libgpiod_number}
+%description -n libgpiod%{libgpiod_soversion}
 The libgpiod library encapsulates the ioctl calls and data structures
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
 
 C library part.
 
-%package -n libgpiodcxx%{libgpiodcxx_number}
+%package -n libgpiodcxx%{libgpiodcxx_soversion}
 Summary:C++library for interacting with the linux GPIO character device
 Group:  System/Libraries
 Conflicts:  libgpiod1
 
-%description -n libgpiodcxx%{libgpiodcxx_number}
+%description -n libgpiodcxx%{libgpiodcxx_soversion}
 The libgpiod library encapsulates the ioctl calls and data structures
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
 
 C++ library part.
 
+%package -n libgpiomockup%{libgpiomockup_soversion}
+Summary:C library for interacting with the linux GPIO character device
+Group:  System/Libraries
+Conflicts:  libgpiod1
+
+%description -n libgpiomockup%{libgpiomockup_soversion}
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
+
+GPIO mockup library part.
+
 %package devel
 Summary:Devel files for libgpiod
 Group:  Development/Languages/C and C++
 

commit libgpiod for openSUSE:Factory

2019-04-14 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2019-04-14 12:22:33

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.27019 (New)


Package is "libgpiod"

Sun Apr 14 12:22:33 2019 rev:5 rq:693637 version:1.3

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2018-12-04 
20:55:11.792794951 +0100
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.27019/libgpiod.changes 
2019-04-14 12:22:36.847774943 +0200
@@ -1,0 +2,49 @@
+Fri Apr 12 07:16:19 UTC 2019 - Guillaume GARDET 
+
+- Add conflicts with libgpiod1 to help upgrade
+
+---
+Fri Apr  5 23:42:51 UTC 2019 - Guillaume GARDET 
+
+- devel package now requires libgpiod and libgpiodcxx
+
+---
+Fri Apr  5 14:47:31 UTC 2019 - Guillaume GARDET 
+
+- Move libgpiodcxx to its own package
+
+---
+Wed Apr  3 19:30:52 UTC 2019 - Guillaume GARDET 
+
+- Update to 1.3:
+  * New features:
+- the gpio-tools now have automatically generated (using help2man) man 
pages
+  that are bundled with the release tarball
+- support a singular 'default_val' argument in Line.request() in python
+  bindings
+- the test executable can now be installed to the bindir along with the
+  gpio-tools and the testing framework will look for the binaries in 
standard
+  locations if it's not run from the top source directory
+- gpiomon now supports line buffered output
+
+  * Improvements:
+- tweaks to the C API documentation
+- treewide unification of the naming of local variables
+- extended helptest in gpioset (explanation of the way the character device
+  works aimed at reducing user confusion when a GPIO line reverts to its
+  default value after gpioset exits)
+- the source directories have been rearranged and the src/ directory was
+  dropped, lib/ and tools/ now live in the top source directory
+- minor coding style fixes in python bindings, ctxless functions and tools
+- automatically generated documentation is now removed by 'make clean'
+- all Makefiles now use top_builddir instead of relative paths
+- code shrink in configure.ac
+- add a brief section about API documentation to README
+
+  * Bug fixes:
+- fix a segfault causing bug in C++ bindings
+- make bitset_cmp::operator() const as this is required by C++17
+- ignore 'remove' events from udev in the testing framework
+- don't segfault on num_lines = 0 in ctxless functions
+
+---

Old:

  libgpiod-1.2.tar.gz

New:

  libgpiod-1.3.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.5Ohbtz/_old  2019-04-14 12:22:37.371775571 +0200
+++ /var/tmp/diff_new_pack.5Ohbtz/_new  2019-04-14 12:22:37.375775576 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libgpiod
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,11 @@
 #
 
 
-%define libname libgpiod1
+%define libgpiod_number 2
+%define libgpiodcxx_number 1
 
 Name:   libgpiod
-Version:1.2
+Version:1.3
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later
@@ -42,21 +43,36 @@
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
 
-%package -n %{libname}
+%package -n libgpiod%{libgpiod_number}
 Summary:C library for interacting with the linux GPIO character device
 Group:  System/Libraries
+Conflicts:  libgpiod1
 
-%description -n %{libname}
+%description -n libgpiod%{libgpiod_number}
 The libgpiod library encapsulates the ioctl calls and data structures
 of the GPIO character devices, the latter of which superseded the
 GPIO sysfs interface in Linux 4.8.
 
-Library part.
+C library part.
+
+%package -n libgpiodcxx%{libgpiodcxx_number}
+Summary:C++library for interacting with the linux GPIO character device
+Group:  System/Libraries
+Conflicts:  libgpiod1
+
+%description -n libgpiodcxx%{libgpiodcxx_number}
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
+
+C++ library part.
 
 %package 

commit libgpiod for openSUSE:Factory

2018-12-04 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2018-12-04 20:54:59

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new.19453 (New)


Package is "libgpiod"

Tue Dec  4 20:54:59 2018 rev:4 rq:653526 version:1.2

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2018-09-07 
15:40:02.878494693 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new.19453/libgpiod.changes 
2018-12-04 20:55:11.792794951 +0100
@@ -1,0 +2,31 @@
+Mon Dec  3 09:11:04 UTC 2018 - Guillaume GARDET 
+
+- Update to 1.2:
+  * New features:
+- new contextless event monitor that should replace the previous event loop
+which caused problems on hardware that doesn't allow to watch both rising
+and falling edge events
+- port gpiomon to the new event monitor
+- deprecate event loop routines
+
+  * Improvements:
+- many minor improvements and tweaks in the python module
+- new test cases for python bindings
+- add much more detailed documentation for python bindings
+- coding style improvements in gpio-tools
+- remove unicode characters from build scripts
+- improve the help text messages in gpio-tools
+- make gpiod_chip_open() and its variants verify that we're really trying 
to
+open a character device associated with a GPIO chip
+
+  * Bug fixes:
+- fix memory leaks in python bindings
+- fix a memory corruption bug in python bindings
+- fix the default_vals argument in line request implementation in python
+bindings
+- fix a compilation warning in python bindings
+- fix gpiod_Chip_find_lines() for nonexistent lines (python bindings)
+- add a missing include in C++ bindings examples
+- correctly display the version string in gpio-tools
+
+---

Old:

  libgpiod-1.1.1.tar.gz

New:

  libgpiod-1.2.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.3Gno9X/_old  2018-12-04 20:55:12.180794519 +0100
+++ /var/tmp/diff_new_pack.3Gno9X/_new  2018-12-04 20:55:12.180794519 +0100
@@ -12,14 +12,14 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define libname libgpiod1
 
 Name:   libgpiod
-Version:1.1.1
+Version:1.2
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later

++ libgpiod-1.1.1.tar.gz -> libgpiod-1.2.tar.gz ++
 1872 lines of diff (skipped)




commit libgpiod for openSUSE:Factory

2018-09-07 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2018-09-07 15:40:01

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new (New)


Package is "libgpiod"

Fri Sep  7 15:40:01 2018 rev:3 rq:633486 version:1.1.1

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2018-07-31 
16:00:40.147675751 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new/libgpiod.changes   2018-09-07 
15:40:02.878494693 +0200
@@ -1,0 +2,16 @@
+Wed Sep  5 13:51:23 UTC 2018 - Guillaume GARDET 
+
+- Add python binding
+
+---
+Wed Sep  5 10:05:03 UTC 2018 - Guillaume GARDET 
+
+- Update to 1.1.1:
+  * Bug fixes:
+- fix memory leaks in python bindings
+- fix a memory corruption bug in python bindings
+- fix the default_vals argument in line request implementation in python
+  bindings
+- fix a compilation warning in python bindings
+
+---

Old:

  libgpiod-1.1.tar.gz

New:

  libgpiod-1.1.1.tar.gz



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.yeqhqZ/_old  2018-09-07 15:40:03.282494259 +0200
+++ /var/tmp/diff_new_pack.yeqhqZ/_new  2018-09-07 15:40:03.282494259 +0200
@@ -19,13 +19,13 @@
 %define libname libgpiod1
 
 Name:   libgpiod
-Version:1.1
+Version:1.1.1
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
 License:LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
 Url:https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
-Source0:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.1.tar.gz
+Source0:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-%{version}.tar.gz
 BuildRequires:  autoconf
 BuildRequires:  autoconf-archive
 BuildRequires:  automake
@@ -35,6 +35,7 @@
 BuildRequires:  libkmod-devel
 BuildRequires:  libtool
 BuildRequires:  make
+BuildRequires:  python3-devel
 
 %description
 The libgpiod library encapsulates the ioctl calls and data structures
@@ -64,6 +65,17 @@
 
 Devel files part.
 
+%package -n python-%{name}
+Summary:Python binding for libgpiod
+Group:  Development/Languages/Python
+
+%description -n python-%{name}
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
+
+Python binding part.
+
 %prep
 %setup -q
 
@@ -71,12 +83,14 @@
 ./autogen.sh
 %configure \
--enable-tools=yes \
+   --enable-bindings-python \
--enable-bindings-cxx 
 make
 
 %install
 %make_install
 rm -rf %{buildroot}%{_libdir}/*.{a,la}
+rm -rf %{buildroot}%{python3_sitearch}/*.{a,la}
 
 %post -n %{libname} -p /sbin/ldconfig
 %postun-n %{libname} -p /sbin/ldconfig
@@ -93,4 +107,7 @@
 %{_libdir}/pkgconfig/libgpiod.pc
 %{_libdir}/pkgconfig/libgpiodcxx.pc
 
+%files -n python-%{name}
+%{python3_sitearch}/*.so
+
 %changelog

++ libgpiod-1.1.tar.gz -> libgpiod-1.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.1/NEWS new/libgpiod-1.1.1/NEWS
--- old/libgpiod-1.1/NEWS   2018-05-16 15:28:39.0 +0200
+++ new/libgpiod-1.1.1/NEWS 2018-07-24 14:29:08.0 +0200
@@ -1,3 +1,13 @@
+libgpiod v1.1.1
+===
+
+Bug fixes:
+- fix memory leaks in python bindings
+- fix a memory corruption bug in python bindings
+- fix the default_vals argument in line request implementation in python
+  bindings
+- fix a compilation warning in python bindings
+
 libgpiod v1.1
 =
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgpiod-1.1/bindings/python/gpiodmodule.c 
new/libgpiod-1.1.1/bindings/python/gpiodmodule.c
--- old/libgpiod-1.1/bindings/python/gpiodmodule.c  2018-05-16 
15:28:39.0 +0200
+++ new/libgpiod-1.1.1/bindings/python/gpiodmodule.c2018-07-24 
14:29:08.0 +0200
@@ -99,6 +99,8 @@
 {
if (self->source)
Py_DECREF(self->source);
+
+   PyObject_Del(self);
 }
 
 PyDoc_STRVAR(gpiod_LineEvent_get_type_doc,
@@ -212,6 +214,8 @@
 {
if (self->owner)
Py_DECREF(self->owner);
+
+   PyObject_Del(self);
 }
 
 PyDoc_STRVAR(gpiod_Line_owner_doc,
@@ -403,6 +407,7 @@
return NULL;
 
ret = PyList_GetItem(vals, 0);
+   Py_INCREF(ret);
Py_DECREF(vals);
 
return ret;
@@ -763,6 +768,7 @@

commit libgpiod for openSUSE:Factory

2018-07-31 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2018-07-31 16:00:39

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new (New)


Package is "libgpiod"

Tue Jul 31 16:00:39 2018 rev:2 rq:626371 version:1.1

Changes:

--- /work/SRC/openSUSE:Factory/libgpiod/libgpiod.changes2018-06-29 
22:28:51.714371733 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new/libgpiod.changes   2018-07-31 
16:00:40.147675751 +0200
@@ -1,0 +2,6 @@
+Sun Jul 29 11:12:10 UTC 2018 - jeng...@inai.de
+
+- Update RPM groups. Reorder sentences to put the library first,
+  and the old sysfs interface last.
+
+---



Other differences:
--
++ libgpiod.spec ++
--- /var/tmp/diff_new_pack.Q7S5Ip/_old  2018-07-31 16:00:41.375677837 +0200
+++ /var/tmp/diff_new_pack.Q7S5Ip/_new  2018-07-31 16:00:41.387677858 +0200
@@ -15,13 +15,14 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %define libname libgpiod1
 
 Name:   libgpiod
 Version:1.1
 Release:0
 Summary:Tools for interacting with the linux GPIO character device
-License:LGPL-2.1+
+License:LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
 Url:https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
 Source0:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.1.tar.gz
@@ -35,20 +36,19 @@
 BuildRequires:  libtool
 BuildRequires:  make
 
-
 %description
-Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
-the character device instead. This library encapsulates the ioctl calls and
-data structures behind a straightforward API.
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
 
 %package -n %{libname}
 Summary:C library for interacting with the linux GPIO character device
-Group:  Development/Languages/C and C++
+Group:  System/Libraries
 
 %description -n %{libname}
-Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
-the character device instead. This library encapsulates the ioctl calls and
-data structures behind a straightforward API.
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
 
 Library part.
 
@@ -58,9 +58,9 @@
 Requires:   %{name}
 
 %description devel
-Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
-the character device instead. This library encapsulates the ioctl calls and
-data structures behind a straightforward API.
+The libgpiod library encapsulates the ioctl calls and data structures
+of the GPIO character devices, the latter of which superseded the
+GPIO sysfs interface in Linux 4.8.
 
 Devel files part.
 
@@ -81,7 +81,6 @@
 %post -n %{libname} -p /sbin/ldconfig
 %postun-n %{libname} -p /sbin/ldconfig
 
-
 %files
 %{_bindir}/gpio*
 
@@ -94,5 +93,4 @@
 %{_libdir}/pkgconfig/libgpiod.pc
 %{_libdir}/pkgconfig/libgpiodcxx.pc
 
-
 %changelog




commit libgpiod for openSUSE:Factory

2018-06-29 Thread root
Hello community,

here is the log from the commit of package libgpiod for openSUSE:Factory 
checked in at 2018-06-29 22:28:51

Comparing /work/SRC/openSUSE:Factory/libgpiod (Old)
 and  /work/SRC/openSUSE:Factory/.libgpiod.new (New)


Package is "libgpiod"

Fri Jun 29 22:28:51 2018 rev:1 rq:617513 version:1.1

Changes:

New Changes file:

--- /dev/null   2018-06-28 02:21:07.430254147 +0200
+++ /work/SRC/openSUSE:Factory/.libgpiod.new/libgpiod.changes   2018-06-29 
22:28:51.714371733 +0200
@@ -0,0 +1,9 @@
+---
+Thu Jun 14 13:02:12 UTC 2018 - guillaume.gar...@opensuse.org
+
+- Add C++ bindings
+
+---
+Thu Jun 14 12:22:29 UTC 2018 - guillaume.gar...@opensuse.org
+
+- Initial package version 1.1

New:

  libgpiod-1.1.tar.gz
  libgpiod.changes
  libgpiod.spec



Other differences:
--
++ libgpiod.spec ++
#
# spec file for package libgpiod
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define libname libgpiod1

Name:   libgpiod
Version:1.1
Release:0
Summary:Tools for interacting with the linux GPIO character device
License:LGPL-2.1+
Group:  Development/Libraries/C and C++
Url:https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
Source0:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/snapshot/libgpiod-1.1.tar.gz
BuildRequires:  autoconf
BuildRequires:  autoconf-archive
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  kernel-devel >= 4.8
BuildRequires:  libkmod-devel
BuildRequires:  libtool
BuildRequires:  make


%description
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
the character device instead. This library encapsulates the ioctl calls and
data structures behind a straightforward API.

%package -n %{libname}
Summary:C library for interacting with the linux GPIO character device
Group:  Development/Languages/C and C++

%description -n %{libname}
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
the character device instead. This library encapsulates the ioctl calls and
data structures behind a straightforward API.

Library part.

%package devel
Summary:Devel files for libgpiod
Group:  Development/Languages/C and C++
Requires:   %{name}

%description devel
Since linux 4.8 the GPIO sysfs interface is deprecated. User space should use
the character device instead. This library encapsulates the ioctl calls and
data structures behind a straightforward API.

Devel files part.

%prep
%setup -q

%build
./autogen.sh
%configure \
--enable-tools=yes \
--enable-bindings-cxx 
make

%install
%make_install
rm -rf %{buildroot}%{_libdir}/*.{a,la}

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig


%files
%{_bindir}/gpio*

%files -n %{libname}
%{_libdir}/libgpiod*.so.*

%files devel
%{_includedir}/*.h*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libgpiod.pc
%{_libdir}/pkgconfig/libgpiodcxx.pc


%changelog