From 950a7d44b3fc3beaf30a9ccf4c75ab120abd83c3 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Thu, 31 Jul 2014 11:28:16 -0400 Subject: [PATCH] fix license handling --- python-psutil.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/python-psutil.spec b/python-psutil.spec index 7bb9c8f..0242170 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -9,7 +9,7 @@ Name: python-psutil Version: 1.2.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A process and system utilities module for Python Group: Development/Languages @@ -85,7 +85,9 @@ popd %files -%doc CREDITS HISTORY LICENSE README TODO +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc CREDITS HISTORY README TODO %{python_sitearch}/%{short_name}/ %{python_sitearch}/*.egg-info %{python_sitearch}/*.so @@ -93,7 +95,9 @@ popd %if 0%{?with_python3} %files -n python3-psutil -%doc CREDITS HISTORY LICENSE README TODO +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc CREDITS HISTORY README TODO %{python3_sitearch}/%{short_name}/ %{python3_sitearch}/*.egg-info %{python3_sitearch}/*.so @@ -101,6 +105,9 @@ popd %changelog +* Thu Jul 31 2014 Tom Callaway - 1.2.1-4 +- fix license handling + * Sat Jun 07 2014 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild