From b313825cf5451b1eb64e7c2e7e84bfdd9d13d049d449ae868b90177ff55d383f Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 6 Jan 2020 18:02:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=18 --- python-astropy.spec | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/python-astropy.spec b/python-astropy.spec index 21e4e89..f8e9438 100644 --- a/python-astropy.spec +++ b/python-astropy.spec @@ -49,8 +49,6 @@ Requires: hdf5 Requires: liberfa1 >= 1.3.0 Requires: python-matplotlib >= 2.1 Requires: python-numpy >= 1.7.0 -Requires(post): update-alternatives -Requires(preun): update-alternatives Recommends: libxml2-tools Recommends: python-Jinja2 Recommends: python-PyYAML @@ -108,16 +106,6 @@ echo "use_system_libraries=1" >> setup.cfg %install %python_install --use-system-libraries --offline -%python_clone -a %{buildroot}%{_bindir}/fitscheck -%python_clone -a %{buildroot}%{_bindir}/fitsdiff -%python_clone -a %{buildroot}%{_bindir}/fitsheader -%python_clone -a %{buildroot}%{_bindir}/fitsinfo -%python_clone -a %{buildroot}%{_bindir}/fits2bitmap -%python_clone -a %{buildroot}%{_bindir}/samp_hub -%python_clone -a %{buildroot}%{_bindir}/showtable -%python_clone -a %{buildroot}%{_bindir}/volint -%python_clone -a %{buildroot}%{_bindir}/wcslint - # Deduplicating files can generate a RPMLINT warning for pyc mtime %{python_expand %fdupes %{buildroot}%{$python_sitearch} $python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/ @@ -140,24 +128,18 @@ rm -rf %{buildroot}%{$python_sitearch}/astropy/wcs/tests/extension/build } popd -%post -%{python_install_alternative fitscheck fitsdiff fitsheader fitsinfo fits2bitmap samp_hub showtable volint wcslint} - -%preun -%python_uninstall_alternative fitscheck - %files %{python_files} %doc CHANGES.rst README.rst %license licenses/* -%python_alternative %{_bindir}/fitsdiff -%python_alternative %{_bindir}/fitsheader -%python_alternative %{_bindir}/fitscheck -%python_alternative %{_bindir}/fitsinfo -%python_alternative %{_bindir}/fits2bitmap -%python_alternative %{_bindir}/samp_hub -%python_alternative %{_bindir}/showtable -%python_alternative %{_bindir}/volint -%python_alternative %{_bindir}/wcslint +%python3_only %{_bindir}/fitsdiff +%python3_only %{_bindir}/fitsheader +%python3_only %{_bindir}/fitscheck +%python3_only %{_bindir}/fitsinfo +%python3_only %{_bindir}/fits2bitmap +%python3_only %{_bindir}/samp_hub +%python3_only %{_bindir}/showtable +%python3_only %{_bindir}/volint +%python3_only %{_bindir}/wcslint %{python_sitearch}/astropy/ %{python_sitearch}/astropy-%{version}-py*.egg-info