Name: fortran-fpm Version: 0.14.0 Release: 2%{?dist} Summary: Fortran Package Manager License: MIT AND LicenseRef-Fedora-Public-Domain URL: https://fpm.fortran-lang.org/ Source0: https://github.com/fortran-lang/fpm/releases/download/v%{version}/fpm-%{version}.F90 Source1: https://github.com/fortran-lang/fpm/releases/download/v%{version}/fpm-%{version}.zip BuildRequires: gcc BuildRequires: unzip BuildRequires: util-linux BuildRequires: gcc-gfortran BuildRequires: git-core Requires: git-core Requires: /usr/bin/curl Requires: tar Requires: gzip Recommends: gcc-gfortran %description Build, test and package Fortran projects using an fpm.toml manifest. Includes OpenMP parallel builds and the native filesystem and process helpers. %prep echo 'a620bbb6dcb6f704badb63dd0d3b944fd437b3a8e2e4e3acd54ac23ea06bd81b %{SOURCE0}' | sha256sum -c echo '80d4caa2438ab68794685ad18e46605beef0d44beb4c7c3f34de7c14a4fde40e %{SOURCE1}' | sha256sum -c %setup -q -T -b 1 -n fpm-%{version} # Die Release-Einzeldatei enthält die Fortran-Quellen samt Abhängigkeiten. # Ohne den Bootstrap-Schalter verwendet fpm die nativen Implementierungen. sed '/^#define FPM_BOOTSTRAP$/d' %{SOURCE0} > fpm.F90 cat > THIRD-PARTY-NOTICES <<'NOTICES' fortran-regex (C) Federico Perini, 2022 (MIT) fortran-shlex (C) Federico Perini, 2023 (MIT) toml-f and jonquil: Apache-2.0 OR MIT, used under MIT. M_CLI2 and public-domain string routines: public domain. NOTICES %build gcc %{build_cflags} -c src/*.c src/ptycheck/isatty.c gfortran %{build_fflags} -fopenmp fpm.F90 *.o %{build_ldflags} -o fpm %install install -Dpm0755 fpm %{buildroot}%{_bindir}/fpm %check fpm_bin="$PWD/fpm" "$fpm_bin" --version | grep -F '%{version}' "$fpm_bin" new smoke cd smoke printf '\n[library]\ntype = "shared"\n' >> fpm.toml unset LD_LIBRARY_PATH "$fpm_bin" test --flag=-fPIC "$fpm_bin" run --flag=-fPIC | grep -F 'Hello, smoke!' readelf -d "$(find build -type f -name smoke -print -quit)" | grep NEEDED | grep -F 'libsmoke.so' test -f build/.fpm-lock # Bei belegter Sperre muss fpm warten. Nach der Freigabe muss der Bau gelingen. exec 9>build/.fpm-lock flock -x 9 status=0 GFORTRAN_UNBUFFERED_PRECONNECTED=y timeout 4 "$fpm_bin" build --flag=-fPIC 9>&- >lock.log 2>&1 || status=$? test "$status" -eq 124 grep -F 'Waiting for another fpm process' lock.log flock -u 9 timeout 30 "$fpm_bin" build --flag=-fPIC %files %license LICENSE THIRD-PARTY-NOTICES %{_bindir}/fpm %changelog * Fri Nov 20 2026 fortran-fpm COPR maintainers - 0.14.0-2 - Vollständigen Build mit nativen Hilfsfunktionen, Bausperre und OpenMP ausliefern. * Fri Nov 20 2026 fortran-fpm COPR maintainers - 0.14.0-1 - Erstes Paket auf Grundlage der Bootstrap-Quelle.