## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; 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 %global forgeurl https://github.com/SRombauts/BoostHttpServer %global commit cd5245f068833f3b0b7907b5cb1fd1ec39f7f29b %forgemeta %global _description %{expand: This is a simple C++ embeddable web server build from the Boost.Asio multithreaded HTTP 1.0 Server Example.} Name: boost-http-server Version: 0 Release: %autorelease Summary: Improvements on top of the Boost Asio HTTP server example # Automatically converted from old format: Boost - review is highly recommended. License: BSL-1.0 URL: %{forgeurl} Source0: %{forgesource} BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: make BuildRequires: sed BuildRequires: boost-devel BuildRequires: CTML-devel %description %{_description} %package devel Summary: %{summary} Provides: %{name}-static = %{version}-%{release} %description devel %{_description} %package doc Summary: Documentation for %{name} BuildArch: noarch Requires: js-jquery %description doc This package contains documentation for %{name}. %prep %forgesetup # Fix CTML include to point to the system one sed -i 's:"../../CTML/include/ctml.hpp"::' src/example2_dynamic/main.cpp # Remove bundled copy of jquery rm docs/jquery.js %build mkdir Debug %set_build_flags %make_build LINK_FLAGS="%{build_ldflags}" doxygen docs ln -sf %{_datadir}/javascript/jquery/latest/jquery.js html/jquery.js %install install -Dpm0755 Debug/example1_static %{buildroot}%{_bindir}/http_server_static install -Dpm0755 Debug/example2_dynamic %{buildroot}%{_bindir}/http_server_dynamic install -Dpm0644 -t %{buildroot}%{_includedir}/%{name} src/server/* %files %license LICENSE_1_0.txt %doc README.md %{_bindir}/* %files devel %license LICENSE_1_0.txt %doc README.md %{_includedir}/%{name} %files doc %license LICENSE_1_0.txt %doc html %changelog ## START: Generated by rpmautospec * Wed Jul 24 2024 Miroslav Suchý - 0-12 - convert Boost license to SPDX * Wed Jul 17 2024 Fedora Release Engineering - 0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jan 23 2024 Fedora Release Engineering - 0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Jonathan Wakely - 0-8 - Rebuilt for Boost 1.83 * Wed Jul 19 2023 Fedora Release Engineering - 0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Feb 20 2023 Jonathan Wakely - 0-6 - Rebuilt for Boost 1.81 * Wed Jan 18 2023 Fedora Release Engineering - 0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 20 2022 Fedora Release Engineering - 0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed May 04 2022 Thomas Rodgers - 0-3 - Rebuilt for Boost 1.78 * Wed Jan 19 2022 Fedora Release Engineering - 0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 16 2022 Davide Cavalca - 0-1 - Initial import; Fixes: RHBZ#1988840 ## END: Generated by rpmautospec