2 Commits

2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 21 23:08:30 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
- Add %check section
- Remove Group: definitions, no longer used
-------------------------------------------------------------------
Tue Feb 20 15:18:45 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package websocketpp
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,13 +21,12 @@ Version: 0.8.2
Release: 0
Summary: C++ WebSocket Protocol Library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: http://www.zaphoyd.com/websocketpp
Source0: https://github.com/zaphoyd/websocketpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: websocketpp.pc
# PATCH-FIX-UPSTREAM - https://github.com/zaphoyd/websocketpp/pull/888
Patch0: Update-websocketpp-configVersion.cmake.patch
BuildRequires: cmake >= 2.6
BuildRequires: cmake >= 3.5
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildArch: noarch
@@ -46,7 +45,6 @@ iostreams and one based on Boost Asio.
%package devel
Summary: Development files for websocketpp, a C++ WebSocket Protocol Library
Group: Development/Libraries/C and C++
%description devel
WebSocket++ is a header-only C++ library
@@ -60,7 +58,7 @@ iostreams and one based on Boost Asio.
%build
%if 0%{?suse_version} >= 1310
%cmake
%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5
%else
mkdir build
pushd build
@@ -80,6 +78,9 @@ pushd build
%endif
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pkgconfig/websocketpp.pc
%check
%ctest
%files devel
%license COPYING
%doc changelog.md readme.md roadmap.md