%define major 5 %define minor 2 %define libname %mklibname %{name} %{major} %define devel %mklibname -d %{name} Name: fmt Version: 5.2.1 Release: %mkrel 1 Summary: Small, safe and fast formatting library Group: Development/C++ License: BSD URL: https://fmtlib.org Source0: https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake %description fmt is an open-source formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams. %package -n %{devel} Summary: Development files for libfmt Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel %description -n %{devel} This package contains the development header files, libraries and cmake files for libfmt %package -n %{libname} Summary: The libfmt libraries Group: Development/C++ %description -n %{libname} This package contains the library for libfmt %prep %autosetup %build %cmake %make_build %install %make_install -C build %files -n %{devel} %{_includedir}/%{name}/ %{_libdir}/cmake/%{name}/ %{_libdir}/libfmt.so.%{major} %{_libdir}/libfmt.so.%{major}.%{minor}{,.*} %files -n %{libname} %{_libdir}/libfmt.so %changelog * Mon Oct 15 2018 kekepower <kekepower> 5.2.1-1.mga7 + Revision: 1320431 - Update to version 5.2.1 * Sun Sep 23 2018 umeabot <umeabot> 4.1.0-2.mga7 + Revision: 1297735 - Mageia 7 Mass Rebuild * Wed Jan 31 2018 kekepower <kekepower> 4.1.0-1.mga7 + Revision: 1198207 - imported package fmt