diff --git a/libnss_usrfiles.changes b/libnss_usrfiles.changes index e92f65a..4692da0 100644 --- a/libnss_usrfiles.changes +++ b/libnss_usrfiles.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 19 12:01:45 CET 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + ------------------------------------------------------------------- Mon Jan 8 15:54:04 CET 2018 - kukuk@suse.de diff --git a/libnss_usrfiles.spec b/libnss_usrfiles.spec index a3d6d35..653c5c1 100644 --- a/libnss_usrfiles.spec +++ b/libnss_usrfiles.spec @@ -22,14 +22,13 @@ Name: libnss_usrfiles Version: 2.25 Release: 0 Summary: NSS usrfiles plugin for glibc -License: LGPL-2.1 +License: LGPL-2.1-only Group: System/Base -Url: http://github.com/thkukuk/libnss_usrfiles +URL: http://github.com/thkukuk/libnss_usrfiles Source: %{name}-%{version}.tar.bz2 Source1: baselibs.conf BuildRequires: autoconf BuildRequires: libtool -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The NSS usrfiles plugin additionally looks in %{_prefix}%{_sysconfdir} for passwd and @@ -55,9 +54,9 @@ group data. make %{?_smp_mflags} %install -make %{?_smp_mflags} DESTDIR=%{buildroot} install +%make_install rm -v %{buildroot}/%{_lib}/%{name}.{a,la,so} -mkdir -p %{buildroot}%{_prefix}/etc +mkdir -p %{buildroot}%{_prefix}%{_sysconfdir} %post -n libnss_usrfiles2 /sbin/ldconfig @@ -67,9 +66,9 @@ sed -i -e 's|^passwd: compat$|passwd: files usrfiles|g' -e 's|^group: compat$|g %postun -n libnss_usrfiles2 -p /sbin/ldconfig %files -n libnss_usrfiles2 -%defattr(-,root,root) -%doc README.md COPYING +%license COPYING +%doc README.md /%{_lib}/libnss_usrfiles.so.2* -%dir %{_prefix}/etc +%dir %{_prefix}%{_sysconfdir} %changelog