Files
oatpp-swagger/oatpp-swagger.spec

72 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package oatpp-swagger
#
# 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-swagger
Version: 1.3.0
Release: 0
Summary: Swagger UI for oatpp services
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/oatpp/oatpp-swagger/
Source: https://github.com/oatpp/oatpp-swagger/archive/%{version}/oatpp-swagger-%{version}.tar.gz
BuildRequires: cmake >= 3.1
BuildRequires: gcc-c++
BuildRequires: oatpp-devel
%description
A Swagger-UI for oatpp applications which supports both "Simple" and
"Async" oatpp APIs.
%package -n lib%{name}
Summary: Swagger UI for oatpp services
Group: System/Libraries
%description -n lib%{name}
A Swagger-UI for oatpp applications which supports both "Simple" and
"Async" oatpp APIs.
%package devel
Summary: Header files for Oat++ Swagger UI module
Group: Development/Libraries/C and C++
Requires: libstdc++-devel
Requires: oatpp-devel
%description devel
Development files for Swagger-UI module
%prep
%autosetup
%build
%cmake -DBUILD_SHARED_LIBS=ON -DOATPP_BUILD_TESTS=OFF
%install
%cmake_install
%files -n lib%{name}
%{_libdir}/oatpp-%{version}/lib%{name}.so
%files devel
%license LICENSE
%doc README.md
%{_includedir}/oatpp-%{version}/bin
%{_includedir}/oatpp-%{version}/%{name}
%{_libdir}/cmake/%{name}-%{version}
%changelog