diff --git a/nss-mdns-0.14.1.tar.gz b/nss-mdns-0.14.1.tar.gz deleted file mode 100644 index c7e74df..0000000 Binary files a/nss-mdns-0.14.1.tar.gz and /dev/null differ diff --git a/nss-mdns-0.15.1.tar.gz b/nss-mdns-0.15.1.tar.gz new file mode 100644 index 0000000..4f844d1 Binary files /dev/null and b/nss-mdns-0.15.1.tar.gz differ diff --git a/nss-mdns.spec b/nss-mdns.spec index fe211f6..81de4e4 100644 --- a/nss-mdns.spec +++ b/nss-mdns.spec @@ -1,12 +1,12 @@ Name: nss-mdns -Version: 0.14.1 -Release: 3 +Version: 0.15.1 +Release: 1 Summary: Host name resolution for GNU Name Service Switch License: LGPLv2+ URL: https://github.com/lathiat/nss-mdns Source0: https://github.com/lathiat/nss-mdns/releases/download/v%{version}/nss-mdns-%{version}.tar.gz -BuildRequires: gcc pkgconfig(check) +BuildRequires: make gcc pkgconfig(check) Requires: avahi %description @@ -15,52 +15,40 @@ GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zero aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local. -%package_help - %prep -%autosetup -n %{name}-%{version} +%autosetup %build %configure --libdir=/%{_lib} %make_build +%check +make check || (cat ./test-suite.log; false) + %install +rm -rf $RPM_BUILD_ROOT %make_install -%check -make check +%post +%{?ldconfig} -%pre +%posttrans +authselect enable-feature with-mdns4 &> /dev/null || : %preun -if [ "$1" -eq 0 -a -f /etc/nsswitch.conf ] ; then - sed -i.bak ' - /^hosts:/ !b - s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g - ' /etc/nsswitch.conf -fi +authselect disable-feature with-mdns4 &> /dev/null || : -%post -/sbin/ldconfig -if [ -f /etc/nsswitch.conf ] ; then - sed -i.bak ' - /^hosts:/ !b - /\/ b - s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g - ' /etc/nsswitch.conf -fi - -%postun -/sbin/ldconfig +%ldconfig_postun %files -%defattr(-,root,root) %license LICENSE +%doc README.md NEWS.md ACKNOWLEDGEMENTS.md /%{_lib}/*.so.* -%files help -%doc README.md NEWS.md ACKNOWLEDGEMENTS.md %changelog +* Tue Dec 28 2021 wulei - 0.15.1-1 +- Package update + * Fri Nov 8 2019 openEuler Buildteam - 0.14.1-3 - Package init