fix license handling

This commit is contained in:
Tom Callaway 2014-07-31 10:02:24 -04:00
parent 5be0e0171b
commit 1e01f3eec0

View File

@ -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 <spot@fedoraproject.org> - 2.2.1-2
- fix license handling
* Wed Jul 02 2014 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-1
- Updated to 2.2.1
- Introduced Python 3 subpackage (upstream has merged the codebase)