|
|
|
@ -1,37 +1,44 @@
|
|
|
|
|
Summary: glibc plugin for .local name resolution
|
|
|
|
|
Name: nss-mdns
|
|
|
|
|
Version: 0.10
|
|
|
|
|
Release: 21%{?dist}
|
|
|
|
|
Version: 0.13.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: glibc plugin for .local name resolution
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
URL: http://0pointer.de/lennart/projects/nss-mdns/
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Source: http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-%{version}.tar.gz
|
|
|
|
|
URL: https://github.com/lathiat/nss-mdns
|
|
|
|
|
Source0: https://github.com/lathiat/nss-mdns/releases/download/v%{version}/nss-mdns-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: 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
|
|
|
|
|
(aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing
|
|
|
|
|
name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local.
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
the local host name via mDNS (e.g. Avahi).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --libdir=/%{_lib} --enable-avahi=yes --enable-legacy=no
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%configure --libdir=/%{_lib}
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/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
|
|
|
|
|
sed -i.bak '
|
|
|
|
|
/^hosts:/ !b
|
|
|
|
@ -51,12 +58,18 @@ fi
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%doc README
|
|
|
|
|
/%{_lib}/*
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md NEWS.md ACKNOWLEDGEMENTS.md
|
|
|
|
|
/%{_lib}/*.so.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
@ -121,7 +134,7 @@ fi
|
|
|
|
|
- Rebuild for selinux ppc32 issue.
|
|
|
|
|
|
|
|
|
|
* Fri Jun 22 2007 - Lennart Poettering <lpoetter@redhat.com> - 0.10-2
|
|
|
|
|
- Fix up post/preun/postun dependencies, add "avahi" to the dependencies,
|
|
|
|
|
- Fix up post/preun/postun dependencies, add "avahi" to the dependencies,
|
|
|
|
|
include dist tag in Release field, use _lib directory instead of literal /lib.
|
|
|
|
|
|
|
|
|
|
* Fri Jun 22 2007 - Lennart Poettering <lpoetter@redhat.com> - 0.10-1
|
|
|
|
@ -147,4 +160,3 @@ fi
|
|
|
|
|
|
|
|
|
|
* Tue Dec 07 2004 - Bastien Nocera <hadess@hadess.net> 0.1-1
|
|
|
|
|
- Initial package, automatically adds and remove mdns4 as a hosts service
|
|
|
|
|
|
|
|
|
|