Todd R 2020-01-06 18:02:07 +00:00 committed by Git OBS Bridge
parent 8f433b58fd
commit b313825cf5

View File

@ -49,8 +49,6 @@ Requires: hdf5
Requires: liberfa1 >= 1.3.0 Requires: liberfa1 >= 1.3.0
Requires: python-matplotlib >= 2.1 Requires: python-matplotlib >= 2.1
Requires: python-numpy >= 1.7.0 Requires: python-numpy >= 1.7.0
Requires(post): update-alternatives
Requires(preun): update-alternatives
Recommends: libxml2-tools Recommends: libxml2-tools
Recommends: python-Jinja2 Recommends: python-Jinja2
Recommends: python-PyYAML Recommends: python-PyYAML
@ -108,16 +106,6 @@ echo "use_system_libraries=1" >> setup.cfg
%install %install
%python_install --use-system-libraries --offline %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 # Deduplicating files can generate a RPMLINT warning for pyc mtime
%{python_expand %fdupes %{buildroot}%{$python_sitearch} %{python_expand %fdupes %{buildroot}%{$python_sitearch}
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/ $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 popd
%post
%{python_install_alternative fitscheck fitsdiff fitsheader fitsinfo fits2bitmap samp_hub showtable volint wcslint}
%preun
%python_uninstall_alternative fitscheck
%files %{python_files} %files %{python_files}
%doc CHANGES.rst README.rst %doc CHANGES.rst README.rst
%license licenses/* %license licenses/*
%python_alternative %{_bindir}/fitsdiff %python3_only %{_bindir}/fitsdiff
%python_alternative %{_bindir}/fitsheader %python3_only %{_bindir}/fitsheader
%python_alternative %{_bindir}/fitscheck %python3_only %{_bindir}/fitscheck
%python_alternative %{_bindir}/fitsinfo %python3_only %{_bindir}/fitsinfo
%python_alternative %{_bindir}/fits2bitmap %python3_only %{_bindir}/fits2bitmap
%python_alternative %{_bindir}/samp_hub %python3_only %{_bindir}/samp_hub
%python_alternative %{_bindir}/showtable %python3_only %{_bindir}/showtable
%python_alternative %{_bindir}/volint %python3_only %{_bindir}/volint
%python_alternative %{_bindir}/wcslint %python3_only %{_bindir}/wcslint
%{python_sitearch}/astropy/ %{python_sitearch}/astropy/
%{python_sitearch}/astropy-%{version}-py*.egg-info %{python_sitearch}/astropy-%{version}-py*.egg-info