Accepting request 581287 from GNOME:Next

spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/581287
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/nss-mdns?expand=0&rev=15
This commit is contained in:
2018-03-05 13:58:30 +00:00
committed by Git OBS Bridge
parent 9557ebe809
commit 01060187f4
2 changed files with 18 additions and 16 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 16:37:57 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
-------------------------------------------------------------------
Sat Oct 18 20:14:00 UTC 2014 - Led <ledest@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package nss-mdns
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,18 +21,19 @@ Name: nss-mdns
#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+
License: LGPL-2.1-or-later
Group: Productivity/Networking/DNS/Utilities
URL: http://0pointer.de/lennart/projects/nss-mdns/
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
Patch0: unaligned.diff
Requires: avahi
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: grep
# needed by nss-mdns-config
PreReq: sed
%description
nss-mdns is a plug-in for the GNU Name Service Switch (NSS)
@@ -50,13 +51,13 @@ hostnames and addresses and makes use of its superior record cacheing.
%prep
%setup -q
%patch
%patch0
%build
%configure --libdir=/%{_lib}
%install
%makeinstall
%make_install
install -D -m0755 %{SOURCE1} %{buildroot}%{_sbindir}/nss-mdns-config
%post
@@ -72,12 +73,11 @@ if [ "$1" -eq 0 ] ; then
nss-mdns-config --disable
fi
%postun
/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc LICENSE README doc/*.html doc/*.css
%license LICENSE
%doc README doc/*.html doc/*.css
%{_sbindir}/nss-mdns-config
/%{_lib}/libnss_mdns.so.2
/%{_lib}/libnss_mdns_minimal.so.2
@@ -86,7 +86,4 @@ fi
/%{_lib}/libnss_mdns6.so.2
/%{_lib}/libnss_mdns6_minimal.so.2
%clean
rm -rf $RPM_BUILD_ROOT
%changelog