Name: json-fortran Version: 8.3.0 Release: 3%{?dist} Summary: A Modern Fortran JSON API License: MIT and BSD URL: https://github.com/jacobwilliams/json-fortran Source0: https://github.com/jacobwilliams/json-fortran/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-gfortran %description JSON-Fortran is a user-friendly, thread-safe, and object-oriented API for reading and writing JSON files, written in modern Fortran. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} # For module dir ownership Requires: gcc-gfortran %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %cmake -DUSE_GNU_INSTALL_CONVENTION=TRUE %cmake_build %install %cmake_install # Move modules to correct directory mkdir -p %{buildroot}%{_fmoddir} mv %{buildroot}%{_includedir}/*.mod %{buildroot}%{_fmoddir}/ # Remove static libraries rm -f %{buildroot}%{_libdir}/*.a %files %license LICENSE %doc CHANGELOG.md README.md %{_libdir}/libjsonfortran.so.8* %files devel %{_libdir}/cmake/jsonfortran-gnu-%{version}/ %{_libdir}/pkgconfig/json-fortran.pc %{_libdir}/libjsonfortran.so %{_fmoddir}/json_*.mod %changelog * Thu Jul 21 2022 Fedora Release Engineering - 8.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu May 26 2022 Susi Lehtola - 8.3.0-2 - Require gcc-gfortran for directory ownership. * Tue May 24 2022 Susi Lehtola - 8.3.0-1 - Initial release.