#global pre RC1 %global kashmir_commit 2f3913f49c4ac7f9bff9224db5178f6f8f0ff3ee Name: restbed Version: 4.5 Release: 1%{?pre:.%pre}%{?dist} Summary: RESTful functionality for C++11 applications License: AGPLv3+ URL: https://github.com/Corvusoft/restbed Source0: https://github.com/Corvusoft/restbed/archive/%{version}%{?pre:-%pre}/%{name}-%{version}%{?pre:-%pre}.tar.gz # Code based on https://sourceforge.net/p/kashmir/code/HEAD/tree/ but original upstream never did a release Source1: https://github.com/Corvusoft/kashmir-dependency/archive/%{kashmir_commit}/kashmir-%{kashmir_commit}.tar.gz # Look for catch headers in correct folder Patch1: restbed_catchdir.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: asio-devel BuildRequires: catch-devel BuildRequires: openssl-devel %description Restbed is a comprehensive and consistent programming model for building applications that require seamless and secure communication over HTTP, with the ability to model a range of business processes, designed to target mobile, tablet, desktop and embedded production environments. %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 -a1 -p1 -n %{name}-%{version}%{?pre:-%pre} # Move kashmir headers to location where Findkashmir.cmake finds them mv kashmir-dependency-%{kashmir_commit}/kashmir/ dependency/kashmir/kashmir/ %build %cmake -DBUILD_TESTS=ON -DBUILD_SHARED=ON -DCMAKE_INSTALL_LIBDIR=%{_lib} %make_build %install %make_install %check # Don't run tests requiring network access ctest -E '^http.*' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc README.md %{_libdir}/librestbed.so.* %files devel %{_includedir}/restbed %{_includedir}/corvusoft/ %{_libdir}/librestbed.so %changelog * Wed May 31 2017 Sandro Mani - 4.5-1 - Update to 4.5 * Wed Jan 04 2017 Sandro Mani - 4.5-0.1.RC1 - Initial package