From bbecee79f93aecc316e97af2ca3afec89d714557 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 4 Aug 2014 00:08:03 -0400 Subject: [PATCH] fix license handling --- python-urllib3.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/python-urllib3.spec b/python-urllib3.spec index b9406c1..07c50d2 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -8,7 +8,7 @@ Name: python-%{srcname} Version: 1.8.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python HTTP library with thread-safe connection pooling and file post License: MIT @@ -114,18 +114,24 @@ popd %endif # with_python3 %files -%doc CHANGES.rst LICENSE.txt README.rst CONTRIBUTORS.txt +%{!?_licensedir:%global license %%doc} +%license LICENSE.txt +%doc CHANGES.rst README.rst CONTRIBUTORS.txt # For noarch packages: sitelib %{python_sitelib}/* %if 0%{?with_python3} %files -n python3-%{srcname} -%doc LICENSE.txt +%{!?_licensedir:%global license %%doc} +%license LICENSE.txt # For noarch packages: sitelib %{python3_sitelib}/* %endif # with_python3 %changelog +* Mon Aug 4 2014 Tom Callaway - 1.8.2-4 +- fix license handling + * Sun Jun 08 2014 Fedora Release Engineering - 1.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild