2018-08-12 14:31:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package gnuastro
|
|
|
|
#
|
2021-02-01 17:39:10 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-08-12 14:31:32 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-28 21:44:46 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-12 14:31:32 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-06-02 01:57:15 +02:00
|
|
|
%define sover 13
|
2019-11-13 22:14:46 +01:00
|
|
|
%bcond_with tests
|
2018-08-12 14:31:32 +02:00
|
|
|
Name: gnuastro
|
2021-06-02 01:57:15 +02:00
|
|
|
Version: 0.15
|
2018-08-12 14:31:32 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GNU Astronomy Utilities
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: https://www.gnu.org/software/gnuastro/
|
|
|
|
Source: https://ftp.gnu.org/pub/gnu/gnuastro/%{name}-%{version}.tar.gz
|
|
|
|
Source2: https://ftp.gnu.org/pub/gnu/gnuastro/%{name}-%{version}.tar.gz.sig
|
2021-06-02 01:57:15 +02:00
|
|
|
Source3: https://akhlaghi.org/public-pgp-key.txt#/%{name}.keyring
|
2018-08-12 14:31:32 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(cfitsio)
|
|
|
|
BuildRequires: pkgconfig(gsl)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
BuildRequires: pkgconfig(libgit2)
|
|
|
|
BuildRequires: pkgconfig(libjpeg)
|
|
|
|
BuildRequires: pkgconfig(libtiff-4)
|
|
|
|
BuildRequires: pkgconfig(wcslib)
|
|
|
|
Recommends: %{name}-doc
|
2021-02-01 17:39:10 +01:00
|
|
|
Recommends: curl
|
2019-11-13 22:14:46 +01:00
|
|
|
Recommends: ghostscript_any >= 9.10
|
2020-09-12 12:02:09 +02:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghostscript_any
|
|
|
|
%endif
|
2018-08-12 14:31:32 +02:00
|
|
|
|
|
|
|
%description
|
2018-08-13 09:11:04 +02:00
|
|
|
The GNU Astronomy Utilities (Gnuastro) contains various programs and
|
|
|
|
library functions for the manipulation and analysis of astronomical
|
|
|
|
data.
|
2018-08-12 14:31:32 +02:00
|
|
|
|
|
|
|
%package -n libgnuastro%{sover}
|
2018-08-13 09:11:04 +02:00
|
|
|
Summary: Libraries for the GNU Astronomy Utilities
|
2018-08-12 14:31:32 +02:00
|
|
|
|
|
|
|
%description -n libgnuastro%{sover}
|
|
|
|
Libraries for the manipulation and analysis of astronomical data,
|
2018-08-13 09:11:04 +02:00
|
|
|
part of the GNU Astronomy Utilities (Gnuastro).
|
2018-08-12 14:31:32 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for gnuastro
|
|
|
|
Requires: libgnuastro%{sover} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2018-08-13 09:11:04 +02:00
|
|
|
Development files required for development with GNU Astronomy
|
|
|
|
Utilities (Gnuastro).
|
2018-08-12 14:31:32 +02:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the GNU Astromomy Utilities
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
2018-08-13 09:11:04 +02:00
|
|
|
Additional documentation for the GNU Astromomy Utilities.
|
2018-08-12 14:31:32 +02:00
|
|
|
|
2021-06-02 01:57:15 +02:00
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Requires: bash-completion
|
|
|
|
Supplements: (%{name} and bash)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
Bash command line completion support for %{name}
|
|
|
|
|
2018-08-12 14:31:32 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--disable-static \
|
2019-11-06 10:06:07 +01:00
|
|
|
--disable-rpath \
|
2018-08-13 09:11:04 +02:00
|
|
|
CPPFLAGS="$(pkg-config cfitsio --cflags)"
|
2020-09-12 12:02:09 +02:00
|
|
|
%make_build
|
2018-08-12 14:31:32 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2021-06-02 01:57:15 +02:00
|
|
|
mkdir -p %{buildroot}/%{_datadir}/bash-completion/completions
|
|
|
|
mv -v %{buildroot}/%{_datadir}/%{name}/completion.bash %{buildroot}/%{_datadir}/bash-completion/completions/%{name}
|
2018-08-12 14:31:32 +02:00
|
|
|
|
2019-11-13 22:14:46 +01:00
|
|
|
%check
|
|
|
|
%if %{with tests}
|
2020-09-12 12:02:09 +02:00
|
|
|
%make_build check
|
2019-11-13 22:14:46 +01:00
|
|
|
%endif
|
|
|
|
|
2018-08-12 14:31:32 +02:00
|
|
|
%post -n libgnuastro%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libgnuastro%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2019-11-06 10:06:07 +01:00
|
|
|
%license COPYING*
|
2018-08-12 14:31:32 +02:00
|
|
|
%doc ChangeLog README NEWS THANKS AUTHORS
|
|
|
|
%config %{_sysconfdir}/*.conf
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
|
|
|
|
%files -n libgnuastro%{sover}
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/libgnuastro.so.*
|
|
|
|
|
|
|
|
%files devel
|
2019-11-06 10:06:07 +01:00
|
|
|
%license COPYING*
|
2018-08-12 14:31:32 +02:00
|
|
|
%{_includedir}/gnuastro
|
|
|
|
%{_libdir}/libgnuastro.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%{_infodir}/gnuastro.info*.gz
|
|
|
|
%{_infodir}/gnuastro-figures
|
|
|
|
|
2021-06-02 01:57:15 +02:00
|
|
|
%files bash-completion
|
|
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
|
2018-08-12 14:31:32 +02:00
|
|
|
%changelog
|