diff --git a/python-odfpy.changes b/python-odfpy.changes index ef00d42..f27c126 100644 --- a/python-odfpy.changes +++ b/python-odfpy.changes @@ -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 diff --git a/python-odfpy.spec b/python-odfpy.spec index 81d9828..e1150c6 100644 --- a/python-odfpy.spec +++ b/python-odfpy.spec @@ -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