Hello community,
here is the log from the commit of package multipath-tools for openSUSE:Factory checked in at 2017-11-10 14:41:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/multipath-tools (Old)
and /work/SRC/openSUSE:Factory/.multipath-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "multipath-tools"
Fri Nov 10 14:41:52 2017 rev:94 rq:539332 version:0.7.3+13+suse.db431514
Changes:
--------
--- /work/SRC/openSUSE:Factory/multipath-tools/multipath-tools.changes 2017-11-03 16:33:20.269675339 +0100
+++ /work/SRC/openSUSE:Factory/.multipath-tools.new/multipath-tools.changes 2017-11-10 14:42:08.169188430 +0100
@@ -1,0 +2,9 @@
+Mon Nov 6 14:46:03 UTC 2017 - mwilck@suse.com
+
+- added sample code for libmpathpersist (bsc#1066376)
+ * added libmpathpersist-example.c
+- multipath-tools.spec: package libmultipath.so symlink in -devel
+ package (bsc#1066376). We *do not* package header files for
+ libmultipath, as the APIs are not public.
+
+-------------------------------------------------------------------
New:
----
libmpathpersist-example.c
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ multipath-tools.spec ++++++
--- /var/tmp/diff_new_pack.o0nHh8/_old 2017-11-10 14:42:09.001158356 +0100
+++ /var/tmp/diff_new_pack.o0nHh8/_new 2017-11-10 14:42:09.001158356 +0100
@@ -108,6 +108,7 @@
Source2: dont-del-part-nodes.rules
# Dracut conf file to make sure 11-dm-parts.rules is included in initrd
Source3: dm-parts.conf
+Source4: libmpathpersist-example.c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
BuildRequires: device-mapper-devel
@@ -201,6 +202,7 @@
%prep
%setup -q -n multipath-tools-%{version}
+cp %{SOURCE4} .
%build
[ -n "$SOURCE_DATE_EPOCH" ] && export KBUILD_BUILD_TIMESTAMP=@$SOURCE_DATE_EPOCH
@@ -209,7 +211,6 @@
%install
make DESTDIR=%{buildroot} %{dirflags} %{makeflags} install
mkdir -p %{buildroot}/var/cache/multipath/
-rm %{buildroot}/%_lib/libmultipath.so
mkdir -p %{buildroot}/usr/sbin
ln -sf /usr/sbin/service %{buildroot}/usr/sbin/rcmultipathd
mkdir -p %{buildroot}/usr/lib/modules-load.d
@@ -275,11 +276,13 @@
%files devel
%defattr(-,root,root)
+/%{_lib}/libmultipath.so
/%{_lib}/libmpathcmd.so
/%{_lib}/libmpathpersist.so
/usr/include/mpath_cmd.h
/usr/include/mpath_persist.h
%{_mandir}/man3/mpath_persistent_*
+%doc libmpathpersist-example.c
%files -n kpartx
%defattr(-,root,root)
++++++ libmpathpersist-example.c ++++++
/*
* This is a minimal skeleton for code using libmpathpersist.
* Compile with "-lmpathpersist -lmultipath -ludev".
*
* Header files for libmultipath are intentionally not included
* in the multipath-tools-devel package, because libmultipath has
* no well defined API for external programs at this time.
*/
#include