nss-mdns/nss-mdns.spec
2021-12-29 09:25:20 +08:00

55 lines
1.3 KiB
RPMSpec

Name: nss-mdns
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: make gcc pkgconfig(check)
Requires: avahi
%description
Nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the
GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zeroconf,
aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by
common Unix/Linux programs in the ad-hoc mDNS domain .local.
%prep
%autosetup
%build
%configure --libdir=/%{_lib}
%make_build
%check
make check || (cat ./test-suite.log; false)
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%post
%{?ldconfig}
%posttrans
authselect enable-feature with-mdns4 &> /dev/null || :
%preun
authselect disable-feature with-mdns4 &> /dev/null || :
%ldconfig_postun
%files
%license LICENSE
%doc README.md NEWS.md ACKNOWLEDGEMENTS.md
/%{_lib}/*.so.*
%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
- Package init