Hello community, here is the log from the commit of package ndctl for openSUSE:Factory checked in at 2018-11-09 07:55:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ndctl (Old) and /work/SRC/openSUSE:Factory/.ndctl.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ndctl" Fri Nov 9 07:55:58 2018 rev:17 rq:647366 version:63 Changes: -------- --- /work/SRC/openSUSE:Factory/ndctl/ndctl.changes 2018-10-08 17:50:55.002063860 +0200 +++ /work/SRC/openSUSE:Factory/.ndctl.new/ndctl.changes 2018-11-09 07:56:05.927595915 +0100 @@ -1,0 +2,5 @@ +Thu Nov 8 15:30:30 UTC 2018 - r...@suse.com + +- Fix rpmbuild failure on SLE12 SP4 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ndctl.spec ++++++ --- /var/tmp/diff_new_pack.uVBzeg/_old 2018-11-09 07:56:06.395595381 +0100 +++ /var/tmp/diff_new_pack.uVBzeg/_new 2018-11-09 07:56:06.399595376 +0100 @@ -31,7 +31,14 @@ Source0: %{name}-%{version}.tar.gz ExclusiveArch: x86_64 -BuildRequires: ruby2.5-rubygem-asciidoctor +# required for documentation +#if 0%{?suse_version} >= 1330 +%if %{defined rubygem(asciidoctor)} +BuildRequires: rubygem(asciidoctor) +%else +BuildRequires: asciidoc +BuildRequires: libxslt-tools +%endif BuildRequires: autoconf BuildRequires: automake BuildRequires: libjson-c-devel @@ -83,12 +90,18 @@ %build echo "%{version}" > version ./autogen.sh -%configure --disable-static +CONF_FLAGS="--disable-static" +%if ! %{defined rubygem(asciidoctor)} +CONF_FLAGS="$CONF_FLAGS --disable-asciidoctor" +%endif +%configure $CONF_FLAGS make %{?_smp_mflags} %install %make_install find "%buildroot" -type f -name "*.la" -delete +mkdir -p %{buildroot}%{_sbindir} +ln -sf service %{buildroot}%{_sbindir}/rcndctl-monitor %post -n %lname -p /sbin/ldconfig @@ -100,6 +113,9 @@ %post %service_add_post ndctl-monitor.service +%preun +%service_del_preun ndctl-monitor.service + %postun %service_del_postun ndctl-monitor.service @@ -108,9 +124,10 @@ %doc licenses/BSD-MIT licenses/CC0 %{_bindir}/ndctl %{_bindir}/daxctl +%{_sbindir}/rcndctl-monitor %{_mandir}/man1/* %dir %{_sysconfdir}/ndctl -%{_sysconfdir}/ndctl/monitor.conf +%config %{_sysconfdir}/ndctl/monitor.conf %{_unitdir}/ndctl-monitor.service %dir %{_datadir}/bash-completion/ %dir %{_datadir}/bash-completion/completions/