[pyxattr] fix license handling

Tom Callaway spot at fedoraproject.org
Mon Aug 4 04:16:26 UTC 2014


commit 24d7240bb4a6819b3669bf1594a3357c00ffcf7a
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Mon Aug 4 00:16:21 2014 -0400

    fix license handling

 pyxattr.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/pyxattr.spec b/pyxattr.spec
index 287e677..22d587b 100644
--- a/pyxattr.spec
+++ b/pyxattr.spec
@@ -2,7 +2,7 @@
 Name:		pyxattr
 Summary:	Extended attributes library wrapper for Python
 Version:	0.5.3
-Release:	1%{?dist}
+Release:	2%{?dist}
 License:	LGPLv2+
 Group:		Development/Libraries
 URL:		http://pyxattr.k1024.org/
@@ -74,17 +74,24 @@ popd
 %defattr(0644,root,root,0755)
 %{python2_sitearch}/xattr.so
 %{python2_sitearch}/*egg-info
-%doc COPYING NEWS README
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc NEWS README
 
 %if %{?with_python3}
 %files -n python3-%{name}
 %defattr(0644,root,root,0755)
 %{python3_sitearch}/xattr.cpython-??m.so
 %{python3_sitearch}/*egg-info
-%doc COPYING NEWS README
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc NEWS README
 %endif # with_python3
 
 %changelog
+* Mon Aug  4 2014 Tom Callaway <spot at fedoraproject.org> - 0.5.3-2
+- fix license handling
+
 * Sat Jun 28 2014 Miro HronĨok <mhroncok at redhat.com> - 0.5.3-1
 - Updated to 0.5.3
 - Updated the website


More information about the scm-commits mailing list