Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
nss-mdns
nss-mdns.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nss-mdns.spec of Package nss-mdns
# # spec file for package nss-mdns # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: nss-mdns # lynx is not needed, text version of README is already present #BuildRequires: lynx Version: 0.10 Release: 0 Url: http://0pointer.de/lennart/projects/nss-mdns/ Summary: Host Name Resolution Via Multicast DNS (Zeroconf) for glibc License: LGPL-2.1+ Group: Productivity/Networking/DNS/Utilities Source: http://0pointer.de/lennart/projects/nss-mdns/%{name}-%{version}.tar.gz Source1: nss-mdns-config Source2: baselibs.conf Patch: unaligned.diff # needed by nss-mdns-config PreReq: sed grep Requires: avahi BuildRoot: %{_tmppath}/%{name}-%{version}-build %description nss-mdns is a plug-in for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing a hostname resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), and effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local. nss-mdns provides only client functionality, which means that you have to run a mDNS responder daemon separately from nss-mdns if you want to register the local hostname via mDNS. I recommend Avahi. By default, nss-mdns tries to contact a running avahi-daemon to resolve hostnames and addresses and makes use of its superior record cacheing. %prep %setup -q %patch %build %configure --libdir=/%{_lib} %install %makeinstall install -D -m0755 %{SOURCE1} %{buildroot}%{_sbindir}/nss-mdns-config %post /sbin/ldconfig if [ "$1" -eq 1 ] ; then # Only enable on first install, to not overwrite changes done by users nss-mdns-config --enable fi %preun if [ "$1" -eq 0 ] ; then # Completely disable when not upgrading (ie, fully uninstalling) nss-mdns-config --disable fi %postun /sbin/ldconfig %files %defattr(-,root,root) %doc LICENSE README doc/*.html doc/*.css %{_sbindir}/nss-mdns-config /%{_lib}/libnss_mdns.so.2 /%{_lib}/libnss_mdns_minimal.so.2 /%{_lib}/libnss_mdns4.so.2 /%{_lib}/libnss_mdns4_minimal.so.2 /%{_lib}/libnss_mdns6.so.2 /%{_lib}/libnss_mdns6_minimal.so.2 %clean rm -rf $RPM_BUILD_ROOT %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor