2daaead
Name:           calceph
4bf1532
Version:        3.5.0
4bf1532
Release:        1%{?dist}
2daaead
Summary:        Astronomical library to access planetary ephemeris files
2daaead
2daaead
License:        CeCILL or CeCILL-B or CeCILL-C
2daaead
URL:            https://www.imcce.fr/inpop/calceph
2daaead
Source0:        https://www.imcce.fr/content/medias/recherche/equipes/asd/%{name}/%{name}-%{version}.tar.gz
2daaead
2daaead
BuildRequires:  gcc
2daaead
BuildRequires:  gcc-gfortran
4bf1532
BuildRequires:  make
2daaead
2daaead
%description
2daaead
This library is designed to access the binary planetary ephemeris files,
2daaead
such INPOPxx, JPL DExxx and SPICE ephemeris files.
2daaead
2daaead
2daaead
%package        libs
2daaead
Summary:        %{name} shared libraries
2daaead
License:        CeCILL or CeCILL-B or CeCILL-C
2daaead
2daaead
%description    libs
2daaead
Calceph shared libraries.
2daaead
2daaead
2daaead
%package        devel
2daaead
Summary:        Development files for %{name}
2daaead
Requires:       %{name}%{?_isa} = %{version}-%{release}
2daaead
2daaead
%description    devel
2daaead
The %{name}-devel package contains libraries and header files for
2daaead
developing applications that use %{name}.
2daaead
2daaead
2daaead
%package        doc
2daaead
Summary:        Documentation files for %{name}
2daaead
BuildArch:      noarch
2daaead
2daaead
%description    doc
2daaead
The %{name}-doc package contains documentation for %{name}.
2daaead
2daaead
2daaead
%package        fortran-devel
2daaead
Summary:        Development files for using %{name} Fortran bindings
2daaead
Requires:       %{name}%{?_isa} = %{version}-%{release}
2daaead
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
2daaead
%if 0%{?fedora}
2daaead
Requires:       gcc-gfortran%{?_isa}
2daaead
%else
2daaead
Requires:       gcc-gfortran
2daaead
%endif
2daaead
2daaead
%description    fortran-devel
2daaead
%{summary}.
2daaead
2daaead
2daaead
%prep
2daaead
%autosetup
2daaead
2daaead
# Remove executable bit set on license files
2daaead
chmod -x COPYING*
2daaead
2daaead
2daaead
%build
2daaead
%configure --enable-fortran=yes \
2daaead
    --enable-python=no \
2daaead
    --enable-python-package-system=no \
2daaead
    --enable-python-package-user=no \
2daaead
    --enable-thread=yes \
2daaead
    --disable-static \
2daaead
    --docdir=%{_pkgdocdir}
2daaead
%make_build
2daaead
2daaead
2daaead
%install
2daaead
%make_install
2daaead
2daaead
# Remove static lib
2daaead
rm %{buildroot}%{_libdir}/libcalceph.la
2daaead
2daaead
# Remove sources for Octave / Mathlib interface
2daaead
rm -r %{buildroot}%{_libexecdir}
2daaead
2daaead
# Remove hidden files from docdir
2daaead
find %{buildroot}%{_pkgdocdir} -name .buildinfo -exec rm -f {} \;
2daaead
2daaead
# Needed by EPEL7
2daaead
%ldconfig_scriptlets
2daaead
2daaead
2daaead
%check
2daaead
make check
2daaead
2daaead
2daaead
%files
2daaead
%{_bindir}/*
2daaead
2daaead
2daaead
%files      libs
2daaead
%license COPYING_CECILL_V2.1.LIB COPYING_CECILL_B.LIB COPYING_CECILL_C.LIB
2daaead
%{_libdir}/*.so.1
2daaead
%{_libdir}/*.so.1.*
2daaead
2daaead
2daaead
%files      devel
2daaead
%{_libdir}/*.so
2daaead
%{_includedir}/*.h
2daaead
2daaead
2daaead
%files      doc
2daaead
%{_pkgdocdir}
2daaead
2daaead
2daaead
%files      fortran-devel
2daaead
%{_includedir}/%{name}.mod
2daaead
2daaead
2daaead
%changelog
4bf1532
* Sat Aug 28 2021 Mattia Verga <mattia.verga@protonmail.com> - 3.5.0-1
4bf1532
- Update to 3.5.0
4bf1532
411d111
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.7-4
411d111
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
411d111
29ff85e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.7-3
29ff85e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
29ff85e
2daaead
* Sun Nov 08 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.4.7-2
2daaead
- Removed hidden files from docdir
2daaead
- Move Fortran headers to -fortran-devel subpackage
2daaead
2daaead
* Fri Nov 6 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.4.7-1
2daaead
- Update to 3.4.7
2daaead
- Fix build errors on s390x
2daaead
- Fix FCFLAGS transmission to fortran compiler
2daaead
- Enable multi-threading support
2daaead
2daaead
* Tue Nov 3 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.4.6-3
2daaead
- Enable fortran module build
2daaead
2daaead
* Sun Nov  1 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.4.6-2
2daaead
- Split libs subpackage
2daaead
- Add ldconfig macro for EPEL7 compatibility
2daaead
2daaead
* Sun Nov  1 2020 Mattia Verga <mattia.verga@protonmail.com> - 3.4.6-1
2daaead
- Initial packaging