Accepting request 518467 from home:tbechtold:branches:devel:languages:python

- update to 1.3.5
- convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/518467
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odfpy?expand=0&rev=7
This commit is contained in:
Thomas Bechtold 2017-08-24 05:58:28 +00:00 committed by Git OBS Bridge
parent 8f251c5dc9
commit 7d0e76ee2c
4 changed files with 26 additions and 21 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6f53f82d3e9ef40f74d13cbd45795f5d7b8770ebcc5eea9f4524dd878ccc0db
size 417809

3
odfpy-1.3.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366
size 492825

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 24 05:19:14 UTC 2017 - tbechtold@suse.com
- update to 1.3.5
- convert to singlespec
-------------------------------------------------------------------
Fri Sep 13 14:58:14 UTC 2013 - os-dev@jacraig.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-odfpy
#
# Copyright (c) 2011 SUSE LINUX Products 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
@ -11,30 +11,28 @@
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-odfpy
Version: 0.9.6
Version: 1.3.5
Release: 0
Url: http://opendocumentfellowship.com/development/projects/odfpy
Summary: Python API and tools to manipulate OpenDocument files
License: GPL-2.0+ and Apache-2.0
Group: Development/Languages/Python
Source: odfpy-%{version}.tar.bz2
Source: https://files.pythonhosted.org/packages/source/o/odfpy/odfpy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
%endif
%python_subpackages
%description
Odfpy is a library to read and write OpenDocument v. 1.1 files.
@ -68,15 +66,16 @@ Visit http://odfpy.forge.osor.eu/ for documentation and examples.
sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%files %{python_files}
%defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man1/*
%python3_only %{_bindir}/*
%python3_only %{_mandir}/man1/*
%{python_sitelib}/*
%changelog