## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?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 License: Boost 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 * 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