## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: fmt11 Version: 11.2.0 Release: %autorelease License: MIT Summary: Small, safe and fast formatting library for C++ URL: https://github.com/fmtlib/fmt Source0: %{url}/archive/%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: ninja-build # Avoid cmake and pkgconfig provides %global __provides_exclude_from ^(%{_libdir}/cmake/fmt/.*|%{_libdir}/pkgconfig/fmt\\.pc)$ %description C++ Format 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 devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} # for usage with -DFMT_HEADER_ONLY Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release} Conflicts: fmt-devel %description devel This package contains the header file for using %{name}. %prep %autosetup -p1 -n fmt-%{version} %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \ -DFMT_CMAKE_DIR:STRING=%{_libdir}/cmake/fmt \ -DFMT_LIB_DIR:STRING=%{_libdir} %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc ChangeLog.md README.md %{_libdir}/libfmt.so.11* %files devel %{_includedir}/fmt %{_libdir}/libfmt.so %{_libdir}/cmake/fmt %{_libdir}/pkgconfig/fmt.pc %changelog ## START: Generated by rpmautospec * Thu Mar 19 2026 John Doe - 11.2.0-1 - Uncommitted changes ## END: Generated by rpmautospec