Accepting request 809518 from home:pgajdos:python
- %python3_only -> %python_alternative OBS-URL: https://build.opensuse.org/request/show/809518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geomet?expand=0&rev=4
This commit is contained in:
parent
cba0cb5fa8
commit
1bc4995454
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 26 06:34:21 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 20 08:14:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Mon Jan 20 08:14:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-click
|
Requires: python-click
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module click}
|
BuildRequires: %{python_module click}
|
||||||
@ -49,17 +51,29 @@ GeoJSON <-> WKT/WKB conversion utilities
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/geomet
|
||||||
rm %{buildroot}%{_prefix}/LICENSE
|
rm %{buildroot}%{_prefix}/LICENSE
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PATH=$PATH:%{buildroot}%{_bindir}
|
export PATH=$PATH:%{buildroot}%{_bindir}
|
||||||
%pytest
|
export PYTHONDONTWRITEBYTECODE=1
|
||||||
|
%{python_expand \
|
||||||
|
sed -i 's:geomet:geomet-%{$python_version}:' geomet/tests/test_cli.py
|
||||||
|
export PYTHONPATH=:%{buildroot}%{$python_sitelib}
|
||||||
|
$python -m pytest
|
||||||
|
}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative geomet
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative geomet
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS.txt README.md
|
%doc AUTHORS.txt README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/geomet
|
%python_alternative %{_bindir}/geomet
|
||||||
%{python_sitelib}/geomet
|
%{python_sitelib}/geomet
|
||||||
%{python_sitelib}/geomet-%{version}-py*.egg-info
|
%{python_sitelib}/geomet-%{version}-py*.egg-info
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user