public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Artur Frenszek-Iwicki <fedora@svgames.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/CSFML] rawhide: Update to v3.0.0
Date: Thu, 19 Nov 2026 10:37:08 GMT [thread overview]
Message-ID: <179508462848.1.15937474282603629617.rpms-CSFML-d6c3bc42b328@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/CSFML
Branch : rawhide
Commit : d6c3bc42b3288f917f7195342d1d285ac03cf62d
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date : 2026-11-18T16:16:16+01:00
Stats : +46/-32 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/CSFML/c/d6c3bc42b3288f917f7195342d1d285ac03cf62d?branch=rawhide
Log:
Update to v3.0.0
---
diff --git a/.gitignore b/.gitignore
index f7d72b5..6cf38be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/CSFML-2.5.2.tar.gz
/CSFML-2.6.0.tar.gz
/CSFML-2.6.1.tar.gz
+/CSFML-3.0.0.tar.gz
diff --git a/0000-unbundle-Catch2.patch b/0000-unbundle-Catch2.patch
new file mode 100644
index 0000000..f0ed3b5
--- /dev/null
+++ b/0000-unbundle-Catch2.patch
@@ -0,0 +1,29 @@
+diff -rU4 CSFML-3.0.0--orig/test/CMakeLists.txt CSFML-3.0.0/test/CMakeLists.txt
+--- CSFML-3.0.0--orig/test/CMakeLists.txt 2026-01-13 16:50:15.000000000 +0100
++++ CSFML-3.0.0/test/CMakeLists.txt 2026-11-18 15:25:09.324099238 +0100
+@@ -1,24 +1,7 @@
+-include(FetchContent)
+-
+-set(CATCH_CONFIG_FAST_COMPILE ON CACHE BOOL "")
+-set(CATCH_CONFIG_NO_EXPERIMENTAL_STATIC_ANALYSIS_SUPPORT ON CACHE BOOL "")
+-FetchContent_Declare(Catch2
+- GIT_REPOSITORY https://github.com/catchorg/Catch2.git
+- GIT_TAG v3.7.0
+- GIT_SHALLOW ON)
+-FetchContent_MakeAvailable(Catch2)
++find_package(Catch2 REQUIRED)
+ include(Catch)
+
+-# Build Catch2 in C++17 mode to enable C++17 features
+-target_compile_features(Catch2 PRIVATE cxx_std_17)
+-
+-# Ensure that Catch2 sources and headers are not analyzed by any tools
+-set_target_properties(Catch2 PROPERTIES COMPILE_OPTIONS "" EXPORT_COMPILE_COMMANDS OFF)
+-set_target_properties(Catch2WithMain PROPERTIES EXPORT_COMPILE_COMMANDS OFF)
+-get_target_property(CATCH2_INCLUDE_DIRS Catch2 INTERFACE_INCLUDE_DIRECTORIES)
+-target_include_directories(Catch2 SYSTEM INTERFACE ${CATCH2_INCLUDE_DIRS})
+-
+ set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
+
+ add_executable(test-csfml-system
+ System/Buffer.test.cpp
diff --git a/CSFML-2.6.1-Use_GNUInstallDirs.patch b/CSFML-2.6.1-Use_GNUInstallDirs.patch
deleted file mode 100644
index f628674..0000000
--- a/CSFML-2.6.1-Use_GNUInstallDirs.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Subject: [PATCH] Remove `LIB_SUFFIX` reference
----
-Index: cmake/Macros.cmake
-IDEA additional info:
-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
-<+>UTF-8
-===================================================================
-diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake
---- a/cmake/Macros.cmake (revision e153a8a4ce524ceeead1c84a24291b29f8c43b0b)
-+++ b/cmake/Macros.cmake (revision 6f2c73d15bdbfc59fae755437f91ecb70d81d5b5)
-@@ -73,8 +73,8 @@
-
- # add the install rule
- install(TARGETS ${target}
-- RUNTIME DESTINATION bin COMPONENT bin
-- LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT bin
-- ARCHIVE DESTINATION lib${LIB_SUFFIX} COMPONENT devel)
-+ RUNTIME COMPONENT bin
-+ LIBRARY COMPONENT bin
-+ ARCHIVE COMPONENT devel)
-
- endmacro()
diff --git a/CSFML.spec b/CSFML.spec
index aebf249..9c44d46 100644
--- a/CSFML.spec
+++ b/CSFML.spec
@@ -2,21 +2,23 @@ Name: CSFML
Summary: C Interface for the Simple and Fast Multimedia Library
License: Zlib
-Version: 2.6.1
-Release: 8%{?dist}
+Version: 3.0.0
+Release: 1%{?dist}
URL: https://www.sfml-dev.org/download/csfml/
Source0: https://github.com/SFML/CSFML/archive/%{version}/CSFML-%{version}.tar.gz
-# Use install paths from GNUInstallDirs
-# Cherr-picked from: https://github.com/SFML/CSFML/pull/398.patch
-Patch0: CSFML-2.6.1-Use_GNUInstallDirs.patch
+# test/CMakeLists.txt try to fetch Catch2 testing library from the internet.
+# Use the system-provided version instead.
+Patch0: 0000-unbundle-Catch2.patch
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc
BuildRequires: gcc-c++
-BuildRequires: SFML-devel
+
+BuildRequires: cmake(Catch2) >= 3.7.0
+BuildRequires: cmake(SFML) >= 3.0.0
%description
CSFML is the official C interface for the SFML library (written in C++),
@@ -45,7 +47,7 @@ This package contains developer documentation (in HTML format) for %{name}.
%build
-%cmake -DCSFML_BUILD_DOC=TRUE
+%cmake -DCSFML_BUILD_DOC=ON -DCSFML_BUILD_TEST_SUITE=ON
%cmake_build
@@ -63,16 +65,20 @@ rm %{buildroot}%{_datadir}/%{name}/license.md
rm %{buildroot}%{_datadir}/%{name}/readme.md
+%check
+%ctest
+
+
%ldconfig_scriptlets
%files
%license license.md
%doc readme.md
-%{_libdir}/libcsfml-*.so.2*
+%{_libdir}/libcsfml-*.so.3*
%files devel
-%{_includedir}/SFML/
+%{_includedir}/CSFML/
%{_libdir}/libcsfml-*.so
%{_libdir}/pkgconfig/csfml*.pc
diff --git a/sources b/sources
index cfc8638..0067926 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (CSFML-2.6.1.tar.gz) = 34c733e0024ffdcbee117fe3d859ab7604cea0241aa56068b86116fe305afec3405ed909b6da96c1cda5660a841abbfd9051b5d3602e36e33085aa52df633561
+SHA512 (CSFML-3.0.0.tar.gz) = d1059fb3ed836564ce94c6854a4fa3111208dc3ffc62e18dd9c817a196984663184e27987510452e1a88a267851716ac25e4e3f2348346c0a26ea1d019adf285
reply other threads:[~2026-11-19 10:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179508462848.1.15937474282603629617.rpms-CSFML-d6c3bc42b328@fedoraproject.org \
--to=fedora@svgames.pl \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox