Accepting request 807247 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807247
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sherpa?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal 2020-05-19 12:14:25 +00:00 committed by Git OBS Bridge
parent a9249c5ebb
commit 18219ebf9c
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:28:01 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 12 12:56:22 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com> Thu Mar 12 12:56:22 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -41,6 +41,8 @@ BuildRequires: gcc-fortran
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-numpy Requires: python-numpy
Requires: python-six Requires: python-six
Requires(post): update-alternatives
Requires(postun): update-alternatives
ExcludeArch: %{ix86} ExcludeArch: %{ix86}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module mock} BuildRequires: %{python_module mock}
@ -74,6 +76,8 @@ sed -i 's|group-location=.*|group-location=build/%{_lib}/python%{$python_version
sed -i 's|group-location=.*|group-location=build/%{_lib}/python%{$python_version}/site-packages/group.so|' setup.cfg sed -i 's|group-location=.*|group-location=build/%{_lib}/python%{$python_version}/site-packages/group.so|' setup.cfg
%{$python_install} %{$python_install}
} }
%python_clone -a %{buildroot}%{_bindir}/sherpa_test
%python_clone -a %{buildroot}%{_bindir}/sherpa_smoke
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
# REMOVE HASHBANGS FROM NON-EXEC FILES # REMOVE HASHBANGS FROM NON-EXEC FILES
@ -90,11 +94,19 @@ ls -l *build*/*/*/
%pytest_arch %{buildroot}%{$python_sitearch}/sherpa/ %pytest_arch %{buildroot}%{$python_sitearch}/sherpa/
mv sherpa_temp sherpa mv sherpa_temp sherpa
%post
%python_install_alternative sherpa_smoke
%python_install_alternative sherpa_test
%postun
%python_uninstall_alternative sherpa_smoke
%python_uninstall_alternative sherpa_test
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%python3_only %{_bindir}/sherpa_test %python_alternative %{_bindir}/sherpa_test
%python3_only %{_bindir}/sherpa_smoke %python_alternative %{_bindir}/sherpa_smoke
%{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog