From 80c310b85e1e6df82340883ed892e504ff680004 Mon Sep 17 00:00:00 2001
From: Dan Callaghan <dcallagh(a)redhat.com>
Date: Wed, 29 Jun 2016 12:09:02 +1000
Subject: use %license and %python_provide, wrap %description
---
python-unidiff.spec | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/python-unidiff.spec b/python-unidiff.spec
index 58298fb..63d56a8 100644
--- a/python-unidiff.spec
+++ b/python-unidiff.spec
@@ -2,7 +2,7 @@
Name: python-%{modname}
Version: 0.5.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python library to parse and interact with unified diffs (patches)
License: MIT
URL:
http://github.com/matiasb/python-unidiff
@@ -16,19 +16,24 @@ Patch1: 0001-don-t-install-tests-as-a-top-level-package.patch
Patch2: 0002-use-setuptools-console_scripts-for-usr-bin-unidiff.patch
%description
-%{name} is a %{summary}.
+python-unidiff is a Python library to parse and interact with unified diffs
+(patches).
%package -n python2-%{modname}
+%{?python_provide:%python_provide python2-%{modname}}
Summary: %{summary}
%description -n python2-%{modname}
-%{name} is a %{summary}.
+python-unidiff is a Python library to parse and interact with unified diffs
+(patches).
%package -n python3-%{modname}
+%{?python_provide:%python_provide python3-%{modname}}
Summary: %{summary}
%description -n python3-%{modname}
-%{name} is a %{summary}.
+python-unidiff is a Python library to parse and interact with unified diffs
+(patches).
%prep
%setup -q -n %{modname}-%{version}
@@ -51,16 +56,21 @@ rm -r unidiff.egg-info
#%%{__python3} setup.py test
%files -n python2-%{modname}
-%doc README.md LICENSE
+%license LICENSE
+%doc README.md
%{python2_sitelib}/%{modname}
%{python2_sitelib}/%{modname}*.egg-info
%files -n python3-%{modname}
-%doc README.md LICENSE
+%license LICENSE
+%doc README.md
%{_bindir}/%{modname}
%{python3_sitelib}/%{modname}
%{python3_sitelib}/%{modname}*.egg-info
%changelog
+* Wed Jun 29 2016 Dan Callaghan <dcallagh(a)redhat.com> - 0.5.2-2
+- use %%license and %%python_provide, wrap %%description
+
* Fri Jun 17 2016 Dan Callaghan <dcallagh(a)redhat.com> - 0.5.2-1
- initial version
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/python-unidiff.git/commit/?h=f23&i...