forked from pool/python-odfpy
Accepting request 632135 from devel:languages:python
- Make sure to install license files OBS-URL: https://build.opensuse.org/request/show/632135 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-odfpy?expand=0&rev=18
This commit is contained in:
commit
327efaa922
@ -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
|
Wed Jun 6 13:52:20 UTC 2018 - mcepl@suse.com
|
||||||
|
|
||||||
|
@ -18,23 +18,20 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
%define modname odfpy
|
%define modname odfpy
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.3.6
|
Version: 1.3.6
|
||||||
Release: 0
|
Release: 0
|
||||||
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-or-later 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/%{modname}/%{modname}-%{version}.tar.gz
|
URL: http://opendocumentfellowship.com/development/projects/odfpy
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://files.pythonhosted.org/packages/source/o/odfpy/%{modname}-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -76,10 +73,10 @@ sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanif
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%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}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license APACHE-LICENSE-2.0.txt GPL-LICENSE-2.txt
|
||||||
%python3_only %{_bindir}/*
|
%python3_only %{_bindir}/*
|
||||||
%python3_only %{_mandir}/man1/*
|
%python3_only %{_mandir}/man1/*
|
||||||
%{python_sitelib}/odf
|
%{python_sitelib}/odf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user