File Simple-Web-Server-devel.spec of Package simple-web-server

Name:           Simple-Web-Server-devel
Version:        3.1.1
Release:        1
Summary:        C++ web server library
Group:          Development/Libraries
License:        MIT
BuildArch:      noarch
URL:            https://github.com/eidheim/Simple-Web-Server
Source0:        Simple-Web-Server-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%if 0%{?sle_version}
BuildRequires:  libboost_system-devel >= 1.60
BuildRequires:  libboost_thread-devel >= 1.60
BuildRequires:  libboost_filesystem-devel >= 1.60
BuildRequires:  libboost_coroutine-devel >= 1.60
BuildRequires:  libboost_context-devel >= 1.60
BuildRequires:  libboost_regex-devel >= 1.60
%if 0%{?is_opensuse} == 0
BuildRequires:  libboost_headers-devel-impl >= 1.60
%endif
%else
BuildRequires:  boost-devel
%endif

BuildRequires:  libopenssl-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++

%description

A very simple, fast, multithreaded, platform independent HTTP and
HTTPS server and client library implemented using C++11 and Asio (both
Boost.Asio and standalone Asio can be used). Created to be an easy way
to make REST resources available from C++ applications.

%prep
%setup -q -n Simple-Web-Server-%{version}
%cmake

%build
if [ -d "%{?__cmake_builddir}" ]; then
    %cmake_build
elif [ -d build ]; then
    cd build
    make
else
    make
fi

%install
if [ -d "%{?__cmake_builddir}" ]; then
    cd %{?__cmake_builddir}
elif [ -d build ]; then
    cd build
fi
%make_install

%clean

%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_includedir}/simple-web-server
openSUSE Build Service is sponsored by