diff --git a/attr.changes b/attr.changes index ce1ddb2..96d4743 100644 --- a/attr.changes +++ b/attr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 20 13:10:52 CET 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + ------------------------------------------------------------------- Mon May 11 07:33:07 UTC 2015 - pgajdos@suse.com diff --git a/attr.spec b/attr.spec index 8c9820c..268fc4d 100644 --- a/attr.spec +++ b/attr.spec @@ -1,7 +1,7 @@ # # spec file for package attr # -# Copyright (c) 2015 SUSE LINUX 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 @@ -19,7 +19,7 @@ Name: attr %define lname libattr1 Summary: Commands for Manipulating Extended Attributes -License: GPL-2.0+ and LGPL-2.1+ +License: GPL-2.0-or-later AND LGPL-2.1-or-later Group: System/Filesystems Version: 2.4.47 Release: 0 @@ -45,8 +45,8 @@ the same name. %package -n %lname Summary: A dynamic library for filesystem extended attribute support -Group: System/Libraries # bug437293 +Group: System/Libraries %ifarch ppc64 Obsoletes: libattr-64bit %endif @@ -107,6 +107,7 @@ ln -sf "/%_lib/$t" "$b/%_libdir/libattr.so" rm -f "$b/%_libdir"/*.la rm -fv $RPM_BUILD_ROOT%{_mandir}/man2/*xattr.2* rm $b%{_mandir}/man5/attr.5 +rm -fv $b%_defaultdocdir/attr/COPYING* install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir} install -m 644 %_sourcedir/xattr.conf $RPM_BUILD_ROOT/%{_sysconfdir} %find_lang %name @@ -117,10 +118,10 @@ install -m 644 %_sourcedir/xattr.conf $RPM_BUILD_ROOT/%{_sysconfdir} %files -f %{name}.lang %defattr (-,root,root) +%license doc/COPYING %dir %_defaultdocdir/attr %_defaultdocdir/attr/README %_defaultdocdir/attr/CHANGES.gz -%_defaultdocdir/attr/COPYING %_defaultdocdir/attr/PORTING %_mandir/man1/*.1* %_bindir/attr @@ -139,9 +140,8 @@ install -m 644 %_sourcedir/xattr.conf $RPM_BUILD_ROOT/%{_sysconfdir} %files -n %lname %defattr (-,root,root) +%license doc/COPYING.LGPL /%{_lib}/libattr.so.1* %config %{_sysconfdir}/xattr.conf -%dir %_defaultdocdir/attr -%_defaultdocdir/attr/COPYING.LGPL %changelog