!2 nss-mdns升级至0.15.1

Merge pull request !2 from 吴磊磊/openEuler-22.03-LTS-Next
This commit is contained in:
openeuler-ci-bot 2021-12-30 07:47:12 +00:00 committed by Gitee
commit b24415fa4b
3 changed files with 18 additions and 30 deletions

Binary file not shown.

BIN
nss-mdns-0.15.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,12 @@
Name: nss-mdns Name: nss-mdns
Version: 0.14.1 Version: 0.15.1
Release: 3 Release: 1
Summary: Host name resolution for GNU Name Service Switch Summary: Host name resolution for GNU Name Service Switch
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/lathiat/nss-mdns URL: https://github.com/lathiat/nss-mdns
Source0: https://github.com/lathiat/nss-mdns/releases/download/v%{version}/nss-mdns-%{version}.tar.gz 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 Requires: avahi
%description %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 aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by
common Unix/Linux programs in the ad-hoc mDNS domain .local. common Unix/Linux programs in the ad-hoc mDNS domain .local.
%package_help
%prep %prep
%autosetup -n %{name}-%{version} %autosetup
%build %build
%configure --libdir=/%{_lib} %configure --libdir=/%{_lib}
%make_build %make_build
%check
make check || (cat ./test-suite.log; false)
%install %install
rm -rf $RPM_BUILD_ROOT
%make_install %make_install
%check %post
make check %{?ldconfig}
%pre %posttrans
authselect enable-feature with-mdns4 &> /dev/null || :
%preun %preun
if [ "$1" -eq 0 -a -f /etc/nsswitch.conf ] ; then authselect disable-feature with-mdns4 &> /dev/null || :
sed -i.bak '
/^hosts:/ !b
s/[[:blank:]]\+mdns\(4\|6\)\?\(_minimal\( \[NOTFOUND=return\]\)\?\)\?//g
' /etc/nsswitch.conf
fi
%post %ldconfig_postun
/sbin/ldconfig
if [ -f /etc/nsswitch.conf ] ; then
sed -i.bak '
/^hosts:/ !b
/\<mdns\(4\|6\)\?\(_minimal\)\?\>/ b
s/\([[:blank:]]\+\)dns\>/\1mdns4_minimal [NOTFOUND=return] dns/g
' /etc/nsswitch.conf
fi
%postun
/sbin/ldconfig
%files %files
%defattr(-,root,root)
%license LICENSE %license LICENSE
%doc README.md NEWS.md ACKNOWLEDGEMENTS.md
/%{_lib}/*.so.* /%{_lib}/*.so.*
%files help
%doc README.md NEWS.md ACKNOWLEDGEMENTS.md
%changelog %changelog
* Tue Dec 28 2021 wulei <wulei80@huawei.com> - 0.15.1-1
- Package update
* Fri Nov 8 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.14.1-3 * Fri Nov 8 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.14.1-3
- Package init - Package init