File oatpp.spec of Package oatpp
#
# spec file for package oatpp
#
# Copyright (c) 2023 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/
#
Name: oatpp
Version: 1.3.0
Release: 0
Summary: A light and powerful C++ web framework
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/oatpp/oatpp/
Source: https://github.com/oatpp/oatpp/archive/%{version}/oatpp-%{version}.tar.gz
BuildRequires: cmake >= 3.1
BuildRequires: gcc-c++
%description
Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
%package -n lib%{name}
Summary: Oat++ library
Group: System/Libraries
%description -n lib%{name}
Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
%package devel
Summary: A light and powerful C++ web framework
Group: Development/Libraries/C and C++
Requires: libstdc++-devel
Requires: lib%{name}%{?_isa} = %{version}-%{release}
%description devel
Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.
Development files.
%prep
%autosetup
%build
%cmake -DBUILD_SHARED_LIBS=ON -DOATPP_BUILD_TESTS=OFF -DOATPP_LINK_TEST_LIBRARY=OFF
%install
%cmake_install
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%license LICENSE
%doc README.md
%{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/lib%{name}.so
%{_libdir}/%{name}-%{version}/lib%{name}-test.so
%files devel
%{_includedir}/%{name}-%{version}
%{_libdir}/cmake/%{name}-%{version}
%changelog