Accepting request 617158 from devel:languages:python
- Clean SPEC file - Switched on tests - Update to 1.3.6 - Various bugfixes OBS-URL: https://build.opensuse.org/request/show/617158 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-odfpy?expand=0&rev=17
This commit is contained in:
commit
abdf41fc61
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f8163f8464868cff9421a058f25566e41d73c8f7e849c021b86630941b44366
|
||||
size 492825
|
3
odfpy-1.3.6.tar.gz
Normal file
3
odfpy-1.3.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6bcaf3b23aa9e49ed8c8c177266539b211add4e02402748a994451482a10cb1b
|
||||
size 691122
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user