Hello community, here is the log from the commit of package lldpd for openSUSE:Factory checked in at 2020-10-13 15:47:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lldpd (Old) and /work/SRC/openSUSE:Factory/.lldpd.new.3486 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lldpd" Tue Oct 13 15:47:23 2020 rev:12 rq:841541 version:1.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/lldpd/lldpd.changes 2020-09-07 21:35:51.981394944 +0200 +++ /work/SRC/openSUSE:Factory/.lldpd.new.3486/lldpd.changes 2020-10-13 15:47:52.229507326 +0200 @@ -1,0 +2,7 @@ +Tue Oct 13 10:04:13 UTC 2020 - Jan Engelhardt <jeng...@inai.de> + +- Replace old specfile constructs. Do not suppress errors from + useradd. Require right subpackage from lldpd-devel. Trim + redundancies from descriptions. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lldpd.spec ++++++ --- /var/tmp/diff_new_pack.uW5Cc2/_old 2020-10-13 15:47:52.833507587 +0200 +++ /var/tmp/diff_new_pack.uW5Cc2/_new 2020-10-13 15:47:52.833507587 +0200 @@ -64,7 +64,7 @@ protocol. It also handles LLDP-MED extension. %package -n %{libname} -Summary: Implementation of IEEE 802.1ab - Shared library +Summary: Implementation of IEEE 802.1ab License: MIT Group: System/Libraries @@ -78,10 +78,10 @@ to adjacent network devices. %package devel -Summary: Implementation of IEEE 802.1ab - Tools and header files for developers +Summary: Headers for the lldpd implementation License: MIT Group: Development/Languages/C and C++ -Requires: lldpd = %{version}-%{release} +Requires: %{libname} = %{version}-%{release} %description devel This package is required to develop alternate clients for lldpd. @@ -93,7 +93,7 @@ to adjacent network devices. %prep -%setup -q +%autosetup -p1 %build %configure \ @@ -119,7 +119,7 @@ --disable-static [ -f %{_includedir}/net-snmp/agent/struct.h ] || touch src/struct.h -make %{?_smp_mflags} V=1 +%make_build %install %make_install @@ -130,12 +130,11 @@ %pre # Create lldpd user/group -if getent group %{lldpd_group} >/dev/null 2>&1 ; then : ; else \ - %{_sbindir}/groupadd -r %{lldpd_group} > /dev/null 2>&1 || exit 1 ; fi -if getent passwd %{lldpd_user} >/dev/null 2>&1 ; then : ; else \ +getent group %{lldpd_group} >/dev/null || \ + %{_sbindir}/groupadd -r %{lldpd_group} +getent passwd %{lldpd_user} >/dev/null || \ %{_sbindir}/useradd -g %{lldpd_group} -M -r -s /sbin/nologin \ - -c "LLDP daemon" -d %{lldpd_chroot} %{lldpd_user} 2> /dev/null \ - || exit 1 ; fi + -c "LLDP daemon" -d %{lldpd_chroot} %{lldpd_user} %service_add_pre lldpd.service