%global debug_package %{nil} Name: cpp-statsd-client Version: 2.0.1 Release: 1%{?dist} Summary: A header-only StatsD client implemented in C++ License: MIT URL: https://github.com/vthiery/cpp-statsd-client/tree/master Source0: https://github.com/vthiery/cpp-statsd-client/archive/refs/tags/v%{version}.tar.gz BuildRequires: cmake BuildRequires: cmake-rpm-macros BuildRequires: gcc-c++ %description %{summary} %package devel Provides: %{name}-static = %{version}-%{release} Summary: A header-only StatsD client implemented in C++ %description devel A header-only StatsD client implemented in C++. The client allows: - batching, - change of configuration at runtime, - user-defined frequency rate. %prep %autosetup -p1 %build %cmake \ -DCPP_STATSD_STANDALONE=ON %cmake_build %install %cmake_install # install installs to /include by default but we want to use a sub-dir mkdir -p %{buildroot}%{_includedir}/%{name} cp %{buildroot}%{_includedir}/include/%{name}/StatsdClient.hpp %{buildroot}%{_includedir}/%{name}/ cp %{buildroot}%{_includedir}/include/%{name}/UDPSender.hpp %{buildroot}%{_includedir}/%{name}/ rm -rf %{buildroot}%{_includedir}/include/%{name}/ %check # TODO %files devel %license LICENSE.md %doc README.md %{_includedir}/%{name}/ %{_datadir}/%{name}/ %changelog * Sun Oct 04 2026 Alexander Oberlaender - 2.0.1-1 - Initial Fedora spec for the cpp-statsd-client header-only library