Todd R 2018-06-15 21:22:17 +00:00 committed by Git OBS Bridge
parent 9c5deb9f3f
commit cd92100687
3 changed files with 26 additions and 8 deletions

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

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

View File

@ -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 Thu Aug 24 05:19:14 UTC 2017 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-odfpy # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,17 +16,20 @@
# #
#
%define modname odfpy
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-odfpy Name: python-%{modname}
Version: 1.3.5 Version: 1.3.6
Release: 0 Release: 0
Url: http://opendocumentfellowship.com/development/projects/odfpy Url: http://opendocumentfellowship.com/development/projects/odfpy
Summary: Python API and tools to manipulate OpenDocument files 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 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros 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. Visit http://odfpy.forge.osor.eu/ for documentation and examples.
%prep %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 sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts
%build %build
@ -72,10 +75,14 @@ sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanif
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=build/lib py.test-%{$python_version} -v
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%python3_only %{_bindir}/* %python3_only %{_bindir}/*
%python3_only %{_mandir}/man1/* %python3_only %{_mandir}/man1/*
%{python_sitelib}/* %{python_sitelib}/odf
%{python_sitelib}/%{modname}*
%changelog %changelog