epel8
Adam Goode 7 years ago
parent 05334b6e86
commit 0d7df1f3ed

2
.gitignore vendored

@ -1 +1 @@
nss-mdns-0.10.tar.gz /nss-mdns-0.13.2.tar.gz

@ -1,11 +1,13 @@
Summary: glibc plugin for .local name resolution
Name: nss-mdns Name: nss-mdns
Version: 0.10 Version: 0.13.2
Release: 21%{?dist} Release: 1%{?dist}
Summary: glibc plugin for .local name resolution
License: LGPLv2+ License: LGPLv2+
URL: http://0pointer.de/lennart/projects/nss-mdns/ URL: https://github.com/lathiat/nss-mdns
Group: System Environment/Libraries Source0: https://github.com/lathiat/nss-mdns/releases/download/v%{version}/nss-mdns-%{version}.tar.gz
Source: http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-%{version}.tar.gz
BuildRequires: pkgconfig(check)
Requires: avahi Requires: avahi
%description %description
@ -18,20 +20,25 @@ nss-mdns provides client functionality only, which means that you have to
run a mDNS responder daemon separately from nss-mdns if you want to register run a mDNS responder daemon separately from nss-mdns if you want to register
the local host name via mDNS (e.g. Avahi). the local host name via mDNS (e.g. Avahi).
%prep %prep
%setup -q %autosetup
%build %build
%configure --libdir=/%{_lib} --enable-avahi=yes --enable-legacy=no %configure --libdir=/%{_lib}
make %{?_smp_mflags} %make_build
%check
make check
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install %make_install
%post %post
/sbin/ldconfig /sbin/ldconfig
# Perl-fu to add mdns4_minimal to the hosts line of /etc/nsswitch.conf # sed-fu to add mdns4_minimal to the hosts line of /etc/nsswitch.conf
if [ -f /etc/nsswitch.conf ] ; then if [ -f /etc/nsswitch.conf ] ; then
sed -i.bak ' sed -i.bak '
/^hosts:/ !b /^hosts:/ !b
@ -51,12 +58,18 @@ fi
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-, root, root) %license LICENSE
%doc README %doc README.md NEWS.md ACKNOWLEDGEMENTS.md
/%{_lib}/* /%{_lib}/*.so.*
%changelog %changelog
* Sun Mar 18 2018 Adam Goode <adam@spicenitz.org> - 0.13.2-1
- New upstream release
- Modernize the spec file
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-21 * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@ -147,4 +160,3 @@ fi
* Tue Dec 07 2004 - Bastien Nocera <hadess@hadess.net> 0.1-1 * Tue Dec 07 2004 - Bastien Nocera <hadess@hadess.net> 0.1-1
- Initial package, automatically adds and remove mdns4 as a hosts service - Initial package, automatically adds and remove mdns4 as a hosts service

@ -1 +1 @@
03938f17646efbb50aa70ba5f99f51d7 nss-mdns-0.10.tar.gz SHA512 (nss-mdns-0.13.2.tar.gz) = 1e1aebfcae5ba7f7e5201488cdb2f0e2a1a2def788df8021da4c96a6f4c5002515271d20c4d8b7316f5e389f2e270dd671adfbca458e6c7df853a6e6b6907fc3

Loading…
Cancel
Save