- Make sure to install license files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odfpy?expand=0&rev=20
This commit is contained in:
Tomáš Chvátal 2018-08-29 10:52:51 +00:00 committed by Git OBS Bridge
parent 5d1d78bdf5
commit eae8ce793b
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 29 10:52:40 UTC 2018 - tchvatal@suse.com
- Make sure to install license files
-------------------------------------------------------------------
Wed Jun 6 13:52:20 UTC 2018 - mcepl@suse.com

View File

@ -18,23 +18,20 @@
#
%define modname odfpy
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
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-or-later AND Apache-2.0
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: http://opendocumentfellowship.com/development/projects/odfpy
Source: https://files.pythonhosted.org/packages/source/o/odfpy/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@ -76,10 +73,10 @@ sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanif
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=build/lib py.test-%{$python_version} -v
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} -v
%files %{python_files}
%defattr(-,root,root,-)
%license APACHE-LICENSE-2.0.txt GPL-LICENSE-2.txt
%python3_only %{_bindir}/*
%python3_only %{_mandir}/man1/*
%{python_sitelib}/odf