File crow.spec of Package crow
#
# spec file for package crow
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define nameC Crow
Name: crow
Version: 1.3.0
Release: 1
Summary: A Fast and Easy to use microframework for the web
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: BSD-3-Clause
URL: https://github.com/CrowCpp/Crow
Source: %{nameC}-%{version}.tar.gz
BuildRequires: cmake asio-devel boost-devel libboost_headers-devel gcc-c++
Recommends: openssl libz1
%package devel
Summary: Crow development files
%description devel
This package contains necessary header files for the Crow webframework development
%description
Crow is a C++ microframework for running web services. It uses routing similar to Python's Flask which makes it easy to use. It is also extremely fast, beating multiple existing C++ frameworks as well as non C++ frameworks.
%prep
%setup -q -n %{nameC}-%{version}
%build
mkdir -p build
export CPM="$PWD"
cd build
cmake .. -DCROW_BUILD_EXAMPLES=OFF -DCROW_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCPM_SOURCE_CACHE=$CPM
%install
rm -rf %{buildroot}
cd build
DESTDIR=%{buildroot} make install
%post
%postun
%files devel
%license LICENSE
%doc README.md
%dir %{_includedir}
%dir %{_libdir}
%{_includedir}/*
%{_libdir}/*
%changelog