From 231eea02cf5246ffb912f6a7aae91765e3db110a8069bf456a54c3c0c7b14771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 14 May 2018 10:11:58 +0000 Subject: [PATCH] - Use license macro OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPDF2?expand=0&rev=8 --- python-PyPDF2.changes | 5 +++++ python-PyPDF2.spec | 14 ++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-PyPDF2.changes b/python-PyPDF2.changes index e0b4c5b..def4f77 100644 --- a/python-PyPDF2.changes +++ b/python-PyPDF2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 14 10:11:40 UTC 2018 - tchvatal@suse.com + +- Use license macro + ------------------------------------------------------------------- Thu Apr 20 04:22:33 UTC 2017 - sflees@suse.de diff --git a/python-PyPDF2.spec b/python-PyPDF2.spec index 10fa038..cfd6c30 100644 --- a/python-PyPDF2.spec +++ b/python-PyPDF2.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyPDF2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,23 +20,21 @@ Name: python-PyPDF2 Version: 1.26.0 Release: 0 -Url: http://mstamy2.github.com/PyPDF2 Summary: PDF toolkit License: BSD-3-Clause Group: Development/Languages/Python -Source: https://pypi.io/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz +URL: http://mstamy2.github.com/PyPDF2 +Source: https://files.pythonhosted.org/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description A Pure-Python library built as a PDF toolkit. It is capable of: - + - extracting document information (title, author, ...), - splitting documents page by page, - merging documents page by page, @@ -63,8 +61,8 @@ sed -i '/^#!/ d' PyPDF2/pagerange.py chmod a-x CHANGELOG LICENSE README.md %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGELOG LICENSE README.md +%license LICENSE +%doc CHANGELOG README.md %{python_sitelib}/* %changelog