From 1e01f3eec0d32e038861cc3e7f8f510c37544501 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Thu, 31 Jul 2014 10:02:24 -0400 Subject: [PATCH] fix license handling --- python-chardet.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python-chardet.spec b/python-chardet.spec index 245b62b..32895c8 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -2,7 +2,7 @@ %global pypi_name chardet Name: python-%{pypi_name} Version: 2.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Character encoding auto-detection in Python Group: Development/Languages @@ -63,19 +63,26 @@ popd %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files -%doc README.rst LICENSE +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.rst %{python2_sitelib}/* %{_bindir}/chardetect %if 0%{?with_python3} %files -n python3-%{pypi_name} -%doc README.rst LICENSE +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc README.rst %{python3_sitelib}/* %{_bindir}/python3-chardetect %endif # with_python3 %changelog +* Thu Jul 31 2014 Tom Callaway - 2.2.1-2 +- fix license handling + * Wed Jul 02 2014 Miro HronĨok - 2.2.1-1 - Updated to 2.2.1 - Introduced Python 3 subpackage (upstream has merged the codebase)