Blob Blame History Raw
Name:           calceph
Version:        3.4.7
Release:        2%{?dist}
Summary:        Astronomical library to access planetary ephemeris files

License:        CeCILL or CeCILL-B or CeCILL-C

BuildRequires:  gcc
BuildRequires:  gcc-gfortran

This library is designed to access the binary planetary ephemeris files,
such INPOPxx, JPL DExxx and SPICE ephemeris files.

%package        libs
Summary:        %{name} shared libraries
License:        CeCILL or CeCILL-B or CeCILL-C

%description    libs
Calceph shared libraries.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package        doc
Summary:        Documentation files for %{name}
BuildArch:      noarch

%description    doc
The %{name}-doc package contains documentation for %{name}.

%package        fortran-devel
Summary:        Development files for using %{name} Fortran bindings
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
%if 0%{?fedora}
Requires:       gcc-gfortran%{?_isa}
Requires:       gcc-gfortran

%description    fortran-devel


# Remove executable bit set on license files
chmod -x COPYING*

%configure --enable-fortran=yes \
    --enable-python=no \
    --enable-python-package-system=no \
    --enable-python-package-user=no \
    --enable-thread=yes \
    --disable-static \


# Remove static lib
rm %{buildroot}%{_libdir}/

# Remove sources for Octave / Mathlib interface
rm -r %{buildroot}%{_libexecdir}

# Remove hidden files from docdir
find %{buildroot}%{_pkgdocdir} -name .buildinfo -exec rm -f {} \;

# Needed by EPEL7

make check


%files      libs

%files      devel

%files      doc

%files      fortran-devel

* Sun Nov 08 2020 Mattia Verga <> - 3.4.7-2
- Removed hidden files from docdir
- Move Fortran headers to -fortran-devel subpackage

* Fri Nov 6 2020 Mattia Verga <> - 3.4.7-1
- Update to 3.4.7
- Fix build errors on s390x
- Fix FCFLAGS transmission to fortran compiler
- Enable multi-threading support

* Tue Nov 3 2020 Mattia Verga <> - 3.4.6-3
- Enable fortran module build

* Sun Nov  1 2020 Mattia Verga <> - 3.4.6-2
- Split libs subpackage
- Add ldconfig macro for EPEL7 compatibility

* Sun Nov  1 2020 Mattia Verga <> - 3.4.6-1
- Initial packaging