14
0
forked from pool/python-PyPDF2

Accepting request 489737 from home:simotek:branches:devel:languages:python

- Convert to single spec
- Update to version 1.26.0

OBS-URL: https://build.opensuse.org/request/show/489737
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPDF2?expand=0&rev=6
This commit is contained in:
2017-04-21 11:20:22 +00:00
committed by Git OBS Bridge
parent f190fd47b4
commit 0471fd5ccb
4 changed files with 75 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyPDF2
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -16,22 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyPDF2
Version: 1.24
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.python.org/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz
Source: https://pypi.io/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
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
A Pure-Python library built as a PDF toolkit. It is capable of:
@@ -54,15 +55,16 @@ It is therefore a useful tool for websites that manage or manipulate PDFs.
sed -i '/^#!/ d' PyPDF2/pagerange.py
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%fdupes %{buildroot}%{_prefix}
chmod a-x CHANGELOG LICENSE README.md
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README.md
%{python_sitelib}
%{python_sitelib}/*
%changelog