mirror of
https://abf.rosa.ru/djam/cppdap.git
synced 2025-02-23 14:22:56 +00:00
This commit is contained in:
parent
023a3188b2
commit
e39200a115
2 changed files with 7 additions and 21 deletions
2
cppdap.rpmlintrc
Normal file
2
cppdap.rpmlintrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
addFilter("E: incoherent-version-in-name")
|
||||
|
26
cppdap.spec
26
cppdap.spec
|
@ -1,14 +1,13 @@
|
|||
%define major 0
|
||||
%define libname %mklibname cppdap
|
||||
%define devname %mklibname cppdap -d
|
||||
%define sdevname %mklibname cppdap -d -s
|
||||
|
||||
|
||||
Name: cppdap
|
||||
Version: 1.58.0_a
|
||||
Release: 1
|
||||
URL: https://github.com/google/cppdap
|
||||
Source0: %{url}/archive/refs/tags/dap-%(echo %{version}|sed -e 's,_,-,g').tar.gz
|
||||
Source1000: %{name}.rpmlintrc
|
||||
Patch0: cppdap-shared-lib.patch
|
||||
Summary: C++ Library for the Debug Adapter Protocol
|
||||
License: ASL 2.0
|
||||
|
@ -50,26 +49,16 @@ providing an API for implementing a DAP client or server.
|
|||
cppdap provides C++ type-safe structures for the full DAP specification, and
|
||||
provides a simple way to add custom protocol messages.
|
||||
|
||||
%package -n %{sdevname}
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/C
|
||||
Requires: %{libname} = %{EVRD}
|
||||
|
||||
%description -n %{sdevname}
|
||||
Development files (Headers etc.) for %{name}.
|
||||
|
||||
cppdap is a C++11 library ("SDK") implementation of the Debug Adapter Protocol,
|
||||
providing an API for implementing a DAP client or server.
|
||||
|
||||
cppdap provides C++ type-safe structures for the full DAP specification, and
|
||||
provides a simple way to add custom protocol messages.
|
||||
|
||||
%prep
|
||||
%setup -qn cppdap-dap-%(echo %{version} |sed -e 's,_,-,g')
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
|
||||
-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE:BOOL=ON \
|
||||
-DBUILD_STATIC_LIBS:BOOL=OFF \
|
||||
-DBUILD_SHARED_LIBS:BOOL=ON \
|
||||
-G Ninja
|
||||
|
||||
%ninja_build
|
||||
|
@ -77,8 +66,6 @@ provides a simple way to add custom protocol messages.
|
|||
%install
|
||||
%ninja_install -C build
|
||||
|
||||
%files
|
||||
|
||||
%files -n %{libname}
|
||||
%{_libdir}/*.so.%{major}*
|
||||
|
||||
|
@ -87,6 +74,3 @@ provides a simple way to add custom protocol messages.
|
|||
%{_libdir}/*.so
|
||||
%{_libdir}/cmake/*
|
||||
|
||||
%files -n %{sdevname}
|
||||
%{_libdir}/libcppdap.a
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue