Accepting request 1300556 from home:fstegmeier:branches:devel:tools
- Add fix-cmake-min-version.patch for cmake compatibility OBS-URL: https://build.opensuse.org/request/show/1300556 OBS-URL: https://build.opensuse.org/package/show/devel:tools/python-hotdoc?expand=0&rev=23
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 14 14:06:21 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||
|
||||
- Add fix-cmake-min-version.patch for cmake compatibility
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 12 11:41:46 UTC 2025 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
|
||||
+4
-3
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-hotdoc
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,6 +26,8 @@ Group: Development/Tools/Doc Generators
|
||||
URL: https://github.com/hotdoc/hotdoc
|
||||
Source: https://files.pythonhosted.org/packages/source/h/hotdoc/hotdoc-%{version}.tar.gz
|
||||
Patch: https://github.com/hotdoc/hotdoc/commit/adf8518431fafb78c9b47862a0a9a58824b6a421.patch#/fix-function-prototypes.patch
|
||||
#PATCH-FIX-UPSTREAM https://github.com/MathieuDuponchelle/cmark/pull/2
|
||||
Patch1: fix-cmake-min-version.patch
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module lxml}
|
||||
@@ -49,9 +51,8 @@ Requires: llvm-devel
|
||||
Requires: python-PyYAML >= 5.4.1
|
||||
Requires: python-appdirs
|
||||
Requires: python-backports.entry_points_selectable
|
||||
Requires: python-cchardet
|
||||
Requires: python-dbus-deviation >= 0.6.1
|
||||
Requires: python-feedgen
|
||||
Requires: python-faust-cchardet
|
||||
Requires: python-lxml >= 4.9.1
|
||||
Requires: python-networkx >= 2.8.8
|
||||
Requires: python-pkgconfig >= 1.5.1
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
Index: hotdoc-0.17.4/cmark/CMakeLists.txt
|
||||
===================================================================
|
||||
--- hotdoc-0.17.4.orig/cmark/CMakeLists.txt
|
||||
+++ hotdoc-0.17.4/cmark/CMakeLists.txt
|
||||
@@ -1,12 +1,5 @@
|
||||
-cmake_minimum_required(VERSION 2.8.9)
|
||||
-
|
||||
-# prevent ugly developer warnings because version is set directly, not through project()
|
||||
-# it should be redone properly by using VERSION in project() if on CMake 3.x
|
||||
-if(CMAKE_MAJOR_VERSION GREATER 2)
|
||||
- cmake_policy(SET CMP0048 OLD)
|
||||
-endif()
|
||||
-
|
||||
-project(cmark)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
+project(cmark VERSION 0.28.3)
|
||||
|
||||
include("FindAsan.cmake")
|
||||
|
||||
@@ -16,11 +9,6 @@ endif()
|
||||
|
||||
set(PROJECT_NAME "cmark")
|
||||
|
||||
-set(PROJECT_VERSION_MAJOR 0)
|
||||
-set(PROJECT_VERSION_MINOR 28)
|
||||
-set(PROJECT_VERSION_PATCH 3)
|
||||
-set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} )
|
||||
-
|
||||
option(CMARK_TESTS "Build cmark tests and enable testing" ON)
|
||||
option(CMARK_STATIC "Build static libcmark library" ON)
|
||||
option(CMARK_SHARED "Build shared libcmark library" ON)
|
||||
Index: hotdoc-0.17.4/cmark/extensions/CMakeLists.txt
|
||||
===================================================================
|
||||
--- hotdoc-0.17.4.orig/cmark/extensions/CMakeLists.txt
|
||||
+++ hotdoc-0.17.4/cmark/extensions/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.8)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
set(LIBRARY "cmarkextensions")
|
||||
set(LIBRARY_SOURCES
|
||||
core-extensions.c
|
||||
@@ -0,0 +1 @@
|
||||
addFilter("python-bytecode-inconsistent-mtime")`
|
||||
Reference in New Issue
Block a user