From cd921006874329f274b7147373764bdf076b96e66c1ba5ec83070ed9066e95d1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 15 Jun 2018 21:22:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odfpy?expand=0&rev=14 --- odfpy-1.3.6.tar.gz | 3 +++ python-odfpy.changes | 8 ++++++++ python-odfpy.spec | 23 +++++++++++++++-------- 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 odfpy-1.3.6.tar.gz diff --git a/odfpy-1.3.6.tar.gz b/odfpy-1.3.6.tar.gz new file mode 100644 index 0000000..1df4435 --- /dev/null +++ b/odfpy-1.3.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bcaf3b23aa9e49ed8c8c177266539b211add4e02402748a994451482a10cb1b +size 691122 diff --git a/python-odfpy.changes b/python-odfpy.changes index 7fd08db..ef00d42 100644 --- a/python-odfpy.changes +++ b/python-odfpy.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jun 6 13:52:20 UTC 2018 - mcepl@suse.com + +- Clean SPEC file +- Switched on tests +- Update to 1.3.6 + - Various bugfixes + ------------------------------------------------------------------- Thu Aug 24 05:19:14 UTC 2017 - tbechtold@suse.com diff --git a/python-odfpy.spec b/python-odfpy.spec index fa73f8a..81d9828 100644 --- a/python-odfpy.spec +++ b/python-odfpy.spec @@ -1,7 +1,7 @@ # # spec file for package python-odfpy # -# 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 @@ -16,17 +16,20 @@ # +# +%define modname odfpy + %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-odfpy -Version: 1.3.5 +Name: python-%{modname} +Version: 1.3.6 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 +License: GPL-2.0-or-later AND Apache-2.0 Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/o/odfpy/odfpy-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -62,7 +65,7 @@ In addition to the API, there are a few scripts: Visit http://odfpy.forge.osor.eu/ for documentation and examples. %prep -%setup -q -n odfpy-%{version} +%setup -q -n %{modname}-%{version} sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts %build @@ -72,10 +75,14 @@ sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanif %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%python_expand PYTHONPATH=build/lib py.test-%{$python_version} -v + %files %{python_files} %defattr(-,root,root,-) %python3_only %{_bindir}/* %python3_only %{_mandir}/man1/* -%{python_sitelib}/* +%{python_sitelib}/odf +%{python_sitelib}/%{modname}* %changelog