From 7d0e76ee2c68a63018500568a69166bac8285159f45432852147ee9a4de6fc87 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 24 Aug 2017 05:58:28 +0000 Subject: [PATCH] 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 --- odfpy-0.9.6.tar.bz2 | 3 --- odfpy-1.3.5.tar.gz | 3 +++ python-odfpy.changes | 6 ++++++ python-odfpy.spec | 35 +++++++++++++++++------------------ 4 files changed, 26 insertions(+), 21 deletions(-) delete mode 100644 odfpy-0.9.6.tar.bz2 create mode 100644 odfpy-1.3.5.tar.gz diff --git a/odfpy-0.9.6.tar.bz2 b/odfpy-0.9.6.tar.bz2 deleted file mode 100644 index df663d7..0000000 --- a/odfpy-0.9.6.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6f53f82d3e9ef40f74d13cbd45795f5d7b8770ebcc5eea9f4524dd878ccc0db -size 417809 diff --git a/odfpy-1.3.5.tar.gz b/odfpy-1.3.5.tar.gz new file mode 100644 index 0000000..deba7f6 --- /dev/null +++ b/odfpy-1.3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366 +size 492825 diff --git a/python-odfpy.changes b/python-odfpy.changes index 671a493..7fd08db 100644 --- a/python-odfpy.changes +++ b/python-odfpy.changes @@ -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 diff --git a/python-odfpy.spec b/python-odfpy.spec index 9183b24..fa73f8a 100644 --- a/python-odfpy.spec +++ b/python-odfpy.spec @@ -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