## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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: cpr Version: 1.10.2 Release: %autorelease Summary: C++ Requests: Curl for People, a spiritual port of Python Requests License: MIT URL: https://github.com/libcpr/cpr Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: openssl-devel BuildRequires: curl-devel %description C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project. Despite its name, libcurl's easy interface is anything but, and making mistakes, misusing it is a common source of error and frustration. Using the more expressive language facilities of C++17 (or C++11 in case you use cpr < 1.10.0), this library captures the essence of making network calls into a few concise idioms. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCPR_USE_SYSTEM_CURL=ON %cmake_build %install %cmake_install %files %license LICENSE %doc README.md %{_libdir}/libcpr.so.1* %files devel %{_includedir}/cpr/ %{_libdir}/libcpr.so %{_libdir}/cmake/cpr/ %changelog * Wed Jul 19 2023 Fedora Release Engineering - 1.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Apr 14 2023 topazus - 1.10.2-1 - Initial import (rhbz#2186398)