Files
oatpp/oatpp.spec

79 lines
2.3 KiB
RPMSpec

#
# 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 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
A C++ web framework for web applications. It offers both a Simple API
and an asynchronous API, the latter which is targeted for tasks with
high concurrency levels (1K or more).
%package -n lib%{name}
Summary: A C++ web framework
Group: System/Libraries
%description -n lib%{name}
A C++ web framework for web applications.
%package devel
Summary: Header files or oatpp, a C++ web framework
Group: Development/Libraries/C and C++
Requires: libstdc++-devel
Requires: lib%{name}%{?_isa} = %{version}-%{release}
%description devel
A C++ web framework for web applications. It offers both a Simple API
and an asynchronous API, the latter which is targeted for tasks with
high concurrency levels (1K or more).
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