Todd R 2018-06-15 21:21:14 +00:00 committed by Git OBS Bridge
parent 207220cff1
commit 9c5deb9f3f
4 changed files with 8 additions and 29 deletions

View File

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

View File

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

View File

@ -1,11 +1,3 @@
-------------------------------------------------------------------
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

View File

@ -1,7 +1,7 @@
#
# spec file for package python-odfpy
#
# Copyright (c) 2018 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,20 +16,17 @@
#
#
%define modname odfpy
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname}
Version: 1.3.6
Name: python-odfpy
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-or-later AND Apache-2.0
License: GPL-2.0+ and Apache-2.0
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/o/odfpy/odfpy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -65,7 +62,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 %{modname}-%{version}
%setup -q -n odfpy-%{version}
sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts
%build
@ -75,14 +72,10 @@ 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}/odf
%{python_sitelib}/%{modname}*
%{python_sitelib}/*
%changelog