From 2daaeadc25f5d571d1cb70eb2438d15bc14ec473 Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Nov 09 2020 19:10:18 +0000 Subject: Initial import (#1893539) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f550c1f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/calceph-3.4.7.tar.gz diff --git a/calceph.spec b/calceph.spec new file mode 100644 index 0000000..6219f6a --- /dev/null +++ b/calceph.spec @@ -0,0 +1,137 @@ +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 +URL: https://www.imcce.fr/inpop/calceph +Source0: https://www.imcce.fr/content/medias/recherche/equipes/asd/%{name}/%{name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: gcc-gfortran + +%description +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} +%else +Requires: gcc-gfortran +%endif + +%description fortran-devel +%{summary}. + + +%prep +%autosetup + +# Remove executable bit set on license files +chmod -x COPYING* + + +%build +%configure --enable-fortran=yes \ + --enable-python=no \ + --enable-python-package-system=no \ + --enable-python-package-user=no \ + --enable-thread=yes \ + --disable-static \ + --docdir=%{_pkgdocdir} +%make_build + + +%install +%make_install + +# Remove static lib +rm %{buildroot}%{_libdir}/libcalceph.la + +# 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 +%ldconfig_scriptlets + + +%check +make check + + +%files +%{_bindir}/* + + +%files libs +%license COPYING_CECILL_V2.1.LIB COPYING_CECILL_B.LIB COPYING_CECILL_C.LIB +%{_libdir}/*.so.1 +%{_libdir}/*.so.1.* + + +%files devel +%{_libdir}/*.so +%{_includedir}/*.h + + +%files doc +%{_pkgdocdir} + + +%files fortran-devel +%{_includedir}/%{name}.mod + + +%changelog +* 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 diff --git a/sources b/sources new file mode 100644 index 0000000..fd6265f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (calceph-3.4.7.tar.gz) = 7deadcfcc36fecbf4c137de3ed8574d16171637cceb604dcbfbdf87a8bcb536d98d12595a4dbd6313b1e6409528886900b4ce0a385d5aa90b0343b2acb440497