Accepting request 518468 from devel:languages:python

- update to 1.3.5
- convert to singlespec (forwarded request 518467 from tbechtold)

OBS-URL: https://build.opensuse.org/request/show/518468
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-odfpy?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2017-08-28 13:13:22 +00:00 committed by Git OBS Bridge
commit bce88e5ef9
4 changed files with 26 additions and 21 deletions

View File

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

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

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

View File

@ -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 Fri Sep 13 14:58:14 UTC 2013 - os-dev@jacraig.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-odfpy # 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 # 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
@ -11,30 +11,28 @@
# case the license is the MIT License). An "Open Source License" is a # case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-odfpy Name: python-odfpy
Version: 0.9.6 Version: 1.3.5
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+ and Apache-2.0
Group: Development/Languages/Python 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
%if 0%{?suse_version} BuildRequires: fdupes
%py_requires BuildRequires: python-rpm-macros
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch BuildArch: noarch
%endif
%endif %python_subpackages
%description %description
Odfpy is a library to read and write OpenDocument v. 1.1 files. 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 sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/* %python3_only %{_bindir}/*
%{_mandir}/man1/* %python3_only %{_mandir}/man1/*
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog