nss-mdns/nss-mdns.spec

55 lines
1.3 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:51:09 +08:00
Name: nss-mdns
2021-12-29 09:25:20 +08:00
Version: 0.15.1
Release: 1
2019-11-19 11:51:09 +08:00
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
2021-12-29 09:25:20 +08:00
BuildRequires: make gcc pkgconfig(check)
2019-11-19 11:51:09 +08:00
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
2021-12-29 09:25:20 +08:00
%autosetup
2019-11-19 11:51:09 +08:00
%build
%configure --libdir=/%{_lib}
%make_build
2021-12-29 09:25:20 +08:00
%check
make check || (cat ./test-suite.log; false)
2019-11-19 11:51:09 +08:00
%install
2021-12-29 09:25:20 +08:00
rm -rf $RPM_BUILD_ROOT
2019-11-19 11:51:09 +08:00
%make_install
2021-12-29 09:25:20 +08:00
%post
%{?ldconfig}
2019-11-19 11:51:09 +08:00
2021-12-29 09:25:20 +08:00
%posttrans
authselect enable-feature with-mdns4 &> /dev/null || :
2019-11-19 11:51:09 +08:00
%preun
2021-12-29 09:25:20 +08:00
authselect disable-feature with-mdns4 &> /dev/null || :
2019-11-19 11:51:09 +08:00
2021-12-29 09:25:20 +08:00
%ldconfig_postun
2019-11-19 11:51:09 +08:00
%files
%license LICENSE
2021-12-29 09:25:20 +08:00
%doc README.md NEWS.md ACKNOWLEDGEMENTS.md
2019-11-19 11:51:09 +08:00
/%{_lib}/*.so.*
%changelog
2021-12-29 09:25:20 +08:00
* Tue Dec 28 2021 wulei <wulei80@huawei.com> - 0.15.1-1
- Package update
2019-11-19 11:51:09 +08:00
* Fri Nov 8 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.14.1-3
- Package init