1.58
All checks were successful
Run CI/CD... / main (push) Successful in 8m42s

This commit is contained in:
Sergey Zhemoytel 2025-02-09 17:16:22 +03:00
parent 023a3188b2
commit e39200a115
2 changed files with 7 additions and 21 deletions

2
cppdap.rpmlintrc Normal file
View file

@ -0,0 +1,2 @@
addFilter("E: incoherent-version-in-name")

View file

@ -1,14 +1,13 @@
%define major 0 %define major 0
%define libname %mklibname cppdap %define libname %mklibname cppdap
%define devname %mklibname cppdap -d %define devname %mklibname cppdap -d
%define sdevname %mklibname cppdap -d -s
Name: cppdap Name: cppdap
Version: 1.58.0_a Version: 1.58.0_a
Release: 1 Release: 1
URL: https://github.com/google/cppdap URL: https://github.com/google/cppdap
Source0: %{url}/archive/refs/tags/dap-%(echo %{version}|sed -e 's,_,-,g').tar.gz Source0: %{url}/archive/refs/tags/dap-%(echo %{version}|sed -e 's,_,-,g').tar.gz
Source1000: %{name}.rpmlintrc
Patch0: cppdap-shared-lib.patch Patch0: cppdap-shared-lib.patch
Summary: C++ Library for the Debug Adapter Protocol Summary: C++ Library for the Debug Adapter Protocol
License: ASL 2.0 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 cppdap provides C++ type-safe structures for the full DAP specification, and
provides a simple way to add custom protocol messages. 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 %prep
%setup -qn cppdap-dap-%(echo %{version} |sed -e 's,_,-,g') %setup -qn cppdap-dap-%(echo %{version} |sed -e 's,_,-,g')
%patch0 -p1
%build %build
%cmake \ %cmake \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE:BOOL=ON \ -DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE:BOOL=ON \
-DBUILD_STATIC_LIBS:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=ON \
-G Ninja -G Ninja
%ninja_build %ninja_build
@ -77,8 +66,6 @@ provides a simple way to add custom protocol messages.
%install %install
%ninja_install -C build %ninja_install -C build
%files
%files -n %{libname} %files -n %{libname}
%{_libdir}/*.so.%{major}* %{_libdir}/*.so.%{major}*
@ -87,6 +74,3 @@ provides a simple way to add custom protocol messages.
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/cmake/* %{_libdir}/cmake/*
%files -n %{sdevname}
%{_libdir}/libcppdap.a