public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/createrepo_c] f44: 1.2.6 bump
@ 2026-11-02 13:01 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-02 13:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/createrepo_c
Branch : f44
Commit : e4496e9f284a91c62e674fdbe56d04e4b761573e
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-11-02T13:57:49+01:00
Stats  : +21/-843 in 14 file(s)
URL    : https://src.fedoraproject.org/rpms/createrepo_c/c/e4496e9f284a91c62e674fdbe56d04e4b761573e?branch=f44

Log:
1.2.6 bump

---
diff --git a/0001-Fix-libname-of-Libs.private.patch b/0001-Fix-libname-of-Libs.private.patch
deleted file mode 100644
index bf16c49..0000000
--- a/0001-Fix-libname-of-Libs.private.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 1c712194e604f6dd4f8a881e09d8236d4f770b67 Mon Sep 17 00:00:00 2001
-From: fundawang <fundawang@yeah.net>
-Date: Mon, 17 Mar 2025 19:05:08 +0800
-Subject: [PATCH] Fix libname of Libs.private
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- src/createrepo_c.pc.cmake | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/createrepo_c.pc.cmake b/src/createrepo_c.pc.cmake
-index 466487e..b7eb663 100644
---- a/src/createrepo_c.pc.cmake
-+++ b/src/createrepo_c.pc.cmake
-@@ -8,5 +8,5 @@ Version: @VERSION@
- Requires: glib-2.0 rpm libcurl sqlite3
- Requires.private: zlib libxml-2.0
- Libs: -L${libdir} -lcreaterepo_c
--Libs.private: -lbz2 -lzma
-+Libs.private: -lbz2 -llzma
- Cflags: -I${includedir}
--- 
-2.50.1
-

diff --git a/0002-Use-IMPORTED_TARGET-for-3rd-party-dependencies.patch b/0002-Use-IMPORTED_TARGET-for-3rd-party-dependencies.patch
deleted file mode 100644
index 784f2ac..0000000
--- a/0002-Use-IMPORTED_TARGET-for-3rd-party-dependencies.patch
+++ /dev/null
@@ -1,231 +0,0 @@
-From 89fa02828cdaf1c710c38bde5fcbcf59538a9cce Mon Sep 17 00:00:00 2001
-From: Pietro Cerutti <gahr@gahr.ch>
-Date: Tue, 1 Oct 2024 12:10:40 +0000
-Subject: [PATCH 2/4] Use IMPORTED_TARGET for 3rd-party dependencies
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-The current CMakeLists.txt fails to include the required link directories for 3rd-party packages.
-As an example, on FreeBSD where packages are installed under /usr/local, the link lines include -lgio-2.0 but not -L/usr/local/lib.
-
-The suggested solution is to use the IMPORTED_TARGET mode of pkg_check_modules. This requires CMake 3.6, so I have bumped the minimum required version.
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- CMakeLists.txt       | 22 +++++++++++-----------
- src/CMakeLists.txt   | 36 ++++++++++++++++++------------------
- tests/CMakeLists.txt | 30 +++++++++++++++---------------
- 3 files changed, 44 insertions(+), 44 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 9a18393..c4bf525 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,4 +1,4 @@
--CMAKE_MINIMUM_REQUIRED (VERSION 2.8.12)
-+CMAKE_MINIMUM_REQUIRED (VERSION 3.7)
- PROJECT (createrepo_c C)
- 
- include(GNUInstallDirs)
-@@ -39,13 +39,13 @@ find_package(LibXml2 REQUIRED)
- find_package(OpenSSL REQUIRED)
- find_package(ZLIB REQUIRED)
- 
--pkg_check_modules(GLIB2 REQUIRED glib-2.0)
--pkg_check_modules(GIO REQUIRED gio-2.0)
--pkg_check_modules(GTHREAD2 REQUIRED gthread-2.0)
--pkg_check_modules(LZMA REQUIRED liblzma)
--pkg_check_modules(SQLITE3 REQUIRED sqlite3>=3.6.18)
--pkg_check_modules(RPM REQUIRED rpm)
--pkg_check_modules(ZSTD REQUIRED libzstd)
-+pkg_check_modules(GLIB2 REQUIRED IMPORTED_TARGET glib-2.0)
-+pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
-+pkg_check_modules(GTHREAD2 REQUIRED IMPORTED_TARGET gthread-2.0)
-+pkg_check_modules(LZMA REQUIRED IMPORTED_TARGET liblzma)
-+pkg_check_modules(SQLITE3 REQUIRED IMPORTED_TARGET sqlite3>=3.6.18)
-+pkg_check_modules(RPM REQUIRED IMPORTED_TARGET rpm)
-+pkg_check_modules(ZSTD REQUIRED IMPORTED_TARGET libzstd)
- 
- # Add include dirs
- 
-@@ -73,7 +73,7 @@ ENDIF (WITH_LEGACY_HASHES)
- # drpm
- OPTION (ENABLE_DRPM "Enable delta RPM support?" OFF)
- IF (ENABLE_DRPM)
--    pkg_check_modules(DRPM REQUIRED drpm>=0.4.0)
-+    pkg_check_modules(DRPM REQUIRED IMPORTED_TARGET drpm>=0.4.0)
-     include_directories (${DRPM_INCLUDE_DIRS})
-     ADD_DEFINITIONS("-DCR_DELTA_RPM_SUPPORT")
- ENDIF (ENABLE_DRPM)
-@@ -83,7 +83,7 @@ OPTION (ENABLE_PYTHON "Enable python support?" ON)
- 
- OPTION (WITH_ZCHUNK "Build with zchunk support" ON)
- IF (WITH_ZCHUNK)
--    pkg_check_modules(ZCK REQUIRED zck)
-+    pkg_check_modules(ZCK REQUIRED IMPORTED_TARGET zck)
-     include_directories(${ZCK_INCLUDE_DIRS})
-     SET (CMAKE_C_FLAGS          "${CMAKE_C_FLAGS} -DWITH_ZCHUNK")
-     SET (CMAKE_C_FLAGS_DEBUG    "${CMAKE_C_FLAGS_DEBUG} -DWITH_ZCHUNK")
-@@ -91,7 +91,7 @@ ENDIF (WITH_ZCHUNK)
- 
- OPTION (WITH_LIBMODULEMD "Build with libmodulemd support" ON)
- IF (WITH_LIBMODULEMD)
--    pkg_check_modules(LIBMODULEMD REQUIRED modulemd-2.0)
-+    pkg_check_modules(LIBMODULEMD REQUIRED IMPORTED_TARGET modulemd-2.0)
-     include_directories(${LIBMODULEMD_INCLUDE_DIRS})
-     SET (CMAKE_C_FLAGS          "${CMAKE_C_FLAGS} -DWITH_LIBMODULEMD")
-     SET (CMAKE_C_FLAGS_DEBUG    "${CMAKE_C_FLAGS_DEBUG} -DWITH_LIBMODULEMD")
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index 61b0480..5309050 100644
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -86,18 +86,18 @@ ENDIF ()
- ADD_LIBRARY(libcreaterepo_c ${createrepo_c_library_type} ${createrepo_c_SRCS})
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${BZIP2_LIBRARIES})
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${CURL_LIBRARY})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${GLIB2_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${GIO_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${LIBMODULEMD_LIBRARIES})
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::GLIB2)
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::GIO)
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::LIBMODULEMD)
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${LIBXML2_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${LZMA_LIBRARIES})
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::LZMA)
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${OPENSSL_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${RPM_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${SQLITE3_LIBRARIES})
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::RPM)
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::SQLITE3)
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${ZLIB_LIBRARY})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${ZCK_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${DRPM_LIBRARIES})
--TARGET_LINK_LIBRARIES(libcreaterepo_c ${ZSTD_LIBRARIES})
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::ZCK)
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::DRPM)
-+TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::ZSTD)
- 
- SET_TARGET_PROPERTIES(libcreaterepo_c PROPERTIES
-                       OUTPUT_NAME "createrepo_c"
-@@ -108,27 +108,27 @@ SET_TARGET_PROPERTIES(libcreaterepo_c PROPERTIES
- ADD_EXECUTABLE(createrepo_c createrepo_c.c cmd_parser.c)
- TARGET_LINK_LIBRARIES(createrepo_c
-                         libcreaterepo_c
--                        ${GLIB2_LIBRARIES}
--                        ${GTHREAD2_LIBRARIES})
-+                        PkgConfig::GLIB2
-+                        PkgConfig::GTHREAD2)
- 
- ADD_EXECUTABLE(mergerepo_c mergerepo_c.c)
- TARGET_LINK_LIBRARIES(mergerepo_c
-                         libcreaterepo_c
--                        ${GLIB2_LIBRARIES}
--                        ${GTHREAD2_LIBRARIES}
--                        ${LIBMODULEMD_LIBRARIES})
-+                        PkgConfig::GLIB2
-+                        PkgConfig::GTHREAD2
-+                        PkgConfig::LIBMODULEMD)
- 
- ADD_EXECUTABLE(modifyrepo_c modifyrepo_c.c)
- TARGET_LINK_LIBRARIES(modifyrepo_c
-                         libcreaterepo_c
--                        ${GLIB2_LIBRARIES}
--                        ${GTHREAD2_LIBRARIES})
-+                        PkgConfig::GLIB2
-+                        PkgConfig::GTHREAD2)
- 
- ADD_EXECUTABLE(sqliterepo_c sqliterepo_c.c)
- TARGET_LINK_LIBRARIES(sqliterepo_c
-                         libcreaterepo_c
--                        ${GLIB2_LIBRARIES}
--                        ${GTHREAD2_LIBRARIES})
-+                        PkgConfig::GLIB2
-+                        PkgConfig::GTHREAD2)
- 
- CONFIGURE_FILE("createrepo_c.pc.cmake" "${CMAKE_SOURCE_DIR}/src/createrepo_c.pc" @ONLY)
- CONFIGURE_FILE("version.h.in" "${CMAKE_CURRENT_SOURCE_DIR}/version.h" @ONLY)
-diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
-index 4ffe837..37339ad 100644
---- a/tests/CMakeLists.txt
-+++ b/tests/CMakeLists.txt
-@@ -1,61 +1,61 @@
- ADD_EXECUTABLE(test_checksum test_checksum.c)
--TARGET_LINK_LIBRARIES(test_checksum libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_checksum libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_checksum)
- 
- ADD_EXECUTABLE(test_compression_wrapper test_compression_wrapper.c)
--TARGET_LINK_LIBRARIES(test_compression_wrapper libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_compression_wrapper libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_compression_wrapper)
- 
- ADD_EXECUTABLE(test_load_metadata test_load_metadata.c)
--TARGET_LINK_LIBRARIES(test_load_metadata libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_load_metadata libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_load_metadata)
- 
- ADD_EXECUTABLE(test_locate_metadata test_locate_metadata.c)
--TARGET_LINK_LIBRARIES(test_locate_metadata libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_locate_metadata libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_locate_metadata)
- 
- ADD_EXECUTABLE(test_misc test_misc.c)
--TARGET_LINK_LIBRARIES(test_misc libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_misc libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_misc)
- 
- ADD_EXECUTABLE(test_sqlite test_sqlite.c)
--TARGET_LINK_LIBRARIES(test_sqlite libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_sqlite libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_sqlite)
- 
- ADD_EXECUTABLE(test_xml_file test_xml_file.c)
--TARGET_LINK_LIBRARIES(test_xml_file libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_file libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_file)
- 
- ADD_EXECUTABLE(test_xml_parser_filelists test_xml_parser_filelists.c)
--TARGET_LINK_LIBRARIES(test_xml_parser_filelists libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_parser_filelists libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_parser_filelists)
- 
- ADD_EXECUTABLE(test_xml_parser_repomd test_xml_parser_repomd.c)
--TARGET_LINK_LIBRARIES(test_xml_parser_repomd libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_parser_repomd libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_parser_repomd)
- 
- ADD_EXECUTABLE(test_xml_parser_updateinfo test_xml_parser_updateinfo.c)
--TARGET_LINK_LIBRARIES(test_xml_parser_updateinfo libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_parser_updateinfo libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_parser_updateinfo)
- 
- ADD_EXECUTABLE(test_xml_parser_main_metadata_together test_xml_parser_main_metadata_together.c)
--TARGET_LINK_LIBRARIES(test_xml_parser_main_metadata_together libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_parser_main_metadata_together libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_parser_main_metadata_together)
- 
- ADD_EXECUTABLE(test_xml_dump test_xml_dump.c)
--TARGET_LINK_LIBRARIES(test_xml_dump libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_dump libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_dump)
- 
- ADD_EXECUTABLE(test_xml_dump_primary test_xml_dump_primary.c)
--TARGET_LINK_LIBRARIES(test_xml_dump_primary libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_xml_dump_primary libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_xml_dump_primary)
- 
- ADD_EXECUTABLE(test_koji test_koji.c)
--TARGET_LINK_LIBRARIES(test_koji libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_koji libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_koji)
- 
- ADD_EXECUTABLE(test_modifyrepo_shared test_modifyrepo_shared.c)
--TARGET_LINK_LIBRARIES(test_modifyrepo_shared libcreaterepo_c ${GLIB2_LIBRARIES})
-+TARGET_LINK_LIBRARIES(test_modifyrepo_shared libcreaterepo_c PkgConfig::GLIB2)
- ADD_DEPENDENCIES(tests test_modifyrepo_shared)
- 
- CONFIGURE_FILE("run_tests.sh.in"  "${CMAKE_BINARY_DIR}/tests/run_tests.sh")
--- 
-2.50.1
-

diff --git a/0003-Don-t-try-to-use-imported-targets-of-turned-off-depe.patch b/0003-Don-t-try-to-use-imported-targets-of-turned-off-depe.patch
deleted file mode 100644
index 9402106..0000000
--- a/0003-Don-t-try-to-use-imported-targets-of-turned-off-depe.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From 0a2da7c87ae9b7e3e11e77416a8e75633d4608a0 Mon Sep 17 00:00:00 2001
-From: Pietro Cerutti <gahr@gahr.ch>
-Date: Mon, 14 Oct 2024 11:49:42 +0000
-Subject: [PATCH 3/4] Don't try to use imported targets of turned-off
- dependencies
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- src/CMakeLists.txt | 18 +++++++++++++-----
- 1 file changed, 13 insertions(+), 5 deletions(-)
-
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index 5309050..9444875 100644
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -88,15 +88,21 @@ TARGET_LINK_LIBRARIES(libcreaterepo_c ${BZIP2_LIBRARIES})
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${CURL_LIBRARY})
- TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::GLIB2)
- TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::GIO)
--TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::LIBMODULEMD)
-+IF (WITH_LIBMODULEMD)
-+    TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::LIBMODULEMD)
-+ENDIF (WITH_LIBMODULEMD)
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${LIBXML2_LIBRARIES})
- TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::LZMA)
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${OPENSSL_LIBRARIES})
- TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::RPM)
- TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::SQLITE3)
- TARGET_LINK_LIBRARIES(libcreaterepo_c ${ZLIB_LIBRARY})
--TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::ZCK)
--TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::DRPM)
-+IF (WITH_ZCHUNK)
-+    TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::ZCK)
-+ENDIF (WITH_ZCHUNK)
-+IF (ENABLE_DRPM)
-+    TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::DRPM)
-+ENDIF (ENABLE_DRPM)
- TARGET_LINK_LIBRARIES(libcreaterepo_c PkgConfig::ZSTD)
- 
- SET_TARGET_PROPERTIES(libcreaterepo_c PROPERTIES
-@@ -115,8 +121,10 @@ ADD_EXECUTABLE(mergerepo_c mergerepo_c.c)
- TARGET_LINK_LIBRARIES(mergerepo_c
-                         libcreaterepo_c
-                         PkgConfig::GLIB2
--                        PkgConfig::GTHREAD2
--                        PkgConfig::LIBMODULEMD)
-+                        PkgConfig::GTHREAD2)
-+IF (WITH_LIBMODULEMD)
-+    TARGET_LINK_LIBRARIES(mergerepo_c PkgConfig::LIBMODULEMD)
-+ENDIF (WITH_LIBMODULEMD)
- 
- ADD_EXECUTABLE(modifyrepo_c modifyrepo_c.c)
- TARGET_LINK_LIBRARIES(modifyrepo_c
--- 
-2.50.1
-

diff --git a/0004-spec-require-cmake-3.7.0.patch b/0004-spec-require-cmake-3.7.0.patch
deleted file mode 100644
index 066e566..0000000
--- a/0004-spec-require-cmake-3.7.0.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 3d93fbdb905d7c4f8007699ba7c2648370f0a031 Mon Sep 17 00:00:00 2001
-From: Evan Goode <mail@evangoo.de>
-Date: Wed, 9 Apr 2025 15:07:41 +0000
-Subject: [PATCH 4/4] spec: require cmake >= 3.7.0
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- createrepo_c.spec | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/createrepo_c.spec b/createrepo_c.spec
-index 2a39df4..ef631a8 100644
---- a/createrepo_c.spec
-+++ b/createrepo_c.spec
-@@ -48,7 +48,7 @@ Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
- 
- %global epoch_dep %{?epoch:%{epoch}:}
- 
--BuildRequires:  cmake
-+BuildRequires:  cmake >= 3.7.0
- BuildRequires:  gcc
- BuildRequires:  bzip2-devel
- BuildRequires:  doxygen
--- 
-2.50.1
-

diff --git a/0005-Include-unistd.h-for-STDOUT_FILENO.patch b/0005-Include-unistd.h-for-STDOUT_FILENO.patch
deleted file mode 100644
index a5abedd..0000000
--- a/0005-Include-unistd.h-for-STDOUT_FILENO.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 70e92f6a802059f1f8d003299cea925e838745b1 Mon Sep 17 00:00:00 2001
-From: Pietro Cerutti <gahr@gahr.ch>
-Date: Tue, 1 Oct 2024 12:17:46 +0000
-Subject: [PATCH] Include unistd.h for STDOUT_FILENO
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-STDOUT_FILENO is defined in unistd.h, see [POSIX](https://pubs.opengroup.org/onlinepubs/9799919799/).
-
-This is required on FreeBSD.
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- src/compression_wrapper.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/compression_wrapper.c b/src/compression_wrapper.c
-index bcaa661..8bc2043 100644
---- a/src/compression_wrapper.c
-+++ b/src/compression_wrapper.c
-@@ -31,6 +31,7 @@
- #include <lzma.h>
- #ifdef WITH_ZCHUNK
- #include <zck.h>
-+#include <unistd.h>
- #endif  // WITH_ZCHUNK
- #include "error.h"
- #include "compression_wrapper.h"
--- 
-2.50.1
-

diff --git a/0006-Use-RPMTAG_SHA1HEADER-instead-of-RPMTAG_HDRID.patch b/0006-Use-RPMTAG_SHA1HEADER-instead-of-RPMTAG_HDRID.patch
deleted file mode 100644
index 3bb5557..0000000
--- a/0006-Use-RPMTAG_SHA1HEADER-instead-of-RPMTAG_HDRID.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 4e37bc582b1673ff767dbd0b570ef1c8871d3e8c Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Tue, 22 Jul 2025 15:10:40 +0200
-Subject: [PATCH] Use RPMTAG_SHA1HEADER instead of RPMTAG_HDRID
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Building against rpm-5.99.91 failed:
-
-    /home/test/createrepo_c/src/parsehdr.c: In function ‘cr_package_from_header’:
-    /home/test/createrepo_c/src/parsehdr.c:669:71: error: ‘RPMTAG_HDRID’ undeclared (first use in this function); did you mean ‘RPMTAG_CVSID’?
-      669 |                                                  headerGetString(hdr, RPMTAG_HDRID));
-	  |                                                                       ^~~~~~~~~~~~
-	  |                                                                       RPMTAG_CVSID
-
-RPM intentionally removed RPMTAG_HDRID tag alias in commit
-79ba4a3c41702e46edd5a4ce7e17a1f3361eb0e7 ("Drop irrepairable pkgid and
-hdrid tag aliases, rename SOURCEPKGID to go").
-
-This patch fixes building against RPMv6 by using RPMTAG_SHA1HEADER
-which RPMTAG_HDRID was aliased to. RPMTAG_SHA1HEADER has existed in
-RPM since the year 2001. RPMTAG_HDRID was an alias to
-RPMTAG_SHA1HEADER all the time RPMTAG_HDRID existed.
-
-In the features we should look for another digest header RPMv6
-packages will use.
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- src/parsehdr.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/parsehdr.c b/src/parsehdr.c
-index 2b75e99..180e4ae 100644
---- a/src/parsehdr.c
-+++ b/src/parsehdr.c
-@@ -666,7 +666,7 @@ cr_package_from_header(Header hdr,
- 
-     if (hdrrflags & CR_HDRR_LOADHDRID)
-         pkg->hdrid = cr_safe_string_chunk_insert(pkg->chunk,
--                                                 headerGetString(hdr, RPMTAG_HDRID));
-+                                                 headerGetString(hdr, RPMTAG_SHA1HEADER));
- 
-     if (hdrrflags & CR_HDRR_LOADSIGNATURES) {
-         rpmtd gpgtd = rpmtdNew();
--- 
-2.50.1
-

diff --git a/0007-spec-Consistently-use-CMake-RPM-macros.patch b/0007-spec-Consistently-use-CMake-RPM-macros.patch
deleted file mode 100644
index 73da259..0000000
--- a/0007-spec-Consistently-use-CMake-RPM-macros.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From c673138669790c970e3147c0d3ec2504ea0b2425 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Wed, 23 Jul 2025 10:31:35 +0200
-Subject: [PATCH] spec: Consistently use CMake RPM macros
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Fedora is going to move from cmake with make to cmake with ninja
-<https://fedoraproject.org/wiki/Changes/CMake_ninja_default>.
-That would break building an RPM package from our spec file because
-the new %cmake macro won't produce Makefiles:
-
-    + make -j8 'RPM_OPT_FLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer'
-    make: *** No targets specified and no makefile found.  Stop.
-
-The fix is to use CMake RPM macros for everything, especially not
-executing make manually.
-
-I tested this fix with old (make-based) and new (ninja-based)
-cmake-rpm-macros package successfully.
-
-Resolve: https://bugzilla.redhat.com/show_bug.cgi?id=2380983
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- createrepo_c.spec | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/createrepo_c.spec b/createrepo_c.spec
-index ef631a8..d45440a 100644
---- a/createrepo_c.spec
-+++ b/createrepo_c.spec
-@@ -145,25 +145,25 @@ pushd build-py3
-       -DWITH_LEGACY_HASHES=%{?with_legacy_hashes:ON}%{!?with_legacy_hashes:OFF} \
-       -DENABLE_DRPM=%{?with_drpm:ON}%{!?with_drpm:OFF} \
-       -DWITH_SANITIZERS=%{?with_sanitizers:ON}%{!?with_sanitizers:OFF}
--  make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}"
-+  %cmake_build
-   # Build C documentation
--  make doc-c
-+  %cmake_build -t doc-c
- popd
- 
- %check
- # Run Python 3 tests
- pushd build-py3
-   # Compile C tests
--  make tests
-+  %cmake_build -t tests
- 
-   # Run Python 3 tests
--  make ARGS="-V" test
-+  %ctest -V
- popd
- 
- %install
- pushd build-py3
-   # Install createrepo_c with Python 3
--  make install DESTDIR=%{buildroot}
-+  %cmake_install
- popd
- 
- %if 0%{?fedora} || 0%{?rhel} > 7
--- 
-2.50.1
-

diff --git a/0008-cmake-Allow-builds-without-Doxygen-being-present-wit.patch b/0008-cmake-Allow-builds-without-Doxygen-being-present-wit.patch
deleted file mode 100644
index 6045afd..0000000
--- a/0008-cmake-Allow-builds-without-Doxygen-being-present-wit.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 908e3a4a5909ab107da41c2631a06c6b23617f3c Mon Sep 17 00:00:00 2001
-From: Moritz Haase <Moritz.Haase@bmw.de>
-Date: Mon, 23 Jun 2025 09:21:07 +0200
-Subject: [PATCH] cmake: Allow builds without Doxygen being present with CMake
- 4+
-
-With CMake 4+, the initial CMake run fails with
-
-    CMake Error at doc/CMakeLists.txt:18 (ADD_DEPENDENCIES):
-      The dependency target "doc-c" of target "doc" does not exist.
-
-in case Doxygen is not installed on the system, since non-existent dependencies
-are not ignored anymore (see [0]). Rectify that by making sure that we only add
-the dependency in case Doxygen has been found.
-
-[0]: https://cmake.org/cmake/help/latest/policy/CMP0046.html
----
- doc/CMakeLists.txt | 7 ++++---
- 1 file changed, 4 insertions(+), 3 deletions(-)
-
-diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
-index 6b2ef5e..6332b91 100644
---- a/doc/CMakeLists.txt
-+++ b/doc/CMakeLists.txt
-@@ -1,11 +1,15 @@
- ADD_SUBDIRECTORY (python)
- 
-+ADD_CUSTOM_TARGET (doc)
-+ADD_DEPENDENCIES (doc doc-python)
-+
- find_package(Doxygen)
- if(DOXYGEN_FOUND)
-     CONFIGURE_FILE("Doxyfile.in.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in" @ONLY)
-     add_custom_target(doc-c
-         ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in
-         COMMENT "Building C API documentation with Doxygen" VERBATIM)
-+    ADD_DEPENDENCIES (doc doc-c)
- endif(DOXYGEN_FOUND)
- 
- IF(CREATEREPO_C_INSTALL_MANPAGES)
-@@ -13,6 +17,3 @@ IF(CREATEREPO_C_INSTALL_MANPAGES)
-             DESTINATION "${CMAKE_INSTALL_MANDIR}/man8"
-             COMPONENT bin)
- ENDIF(CREATEREPO_C_INSTALL_MANPAGES)
--
--ADD_CUSTOM_TARGET (doc)
--ADD_DEPENDENCIES (doc doc-python doc-c)
--- 
-2.55.0
-

diff --git a/0009-Make-building-of-doxygen-based-C-API-docs-configurab.patch b/0009-Make-building-of-doxygen-based-C-API-docs-configurab.patch
deleted file mode 100644
index 5b7e51f..0000000
--- a/0009-Make-building-of-doxygen-based-C-API-docs-configurab.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From e2ce40a8191b76165a68289bb3a9876171f42dea Mon Sep 17 00:00:00 2001
-From: Jaco Kroon <jaco@uls.co.za>
-Date: Tue, 16 Sep 2025 16:44:01 +0200
-Subject: [PATCH] Make building of doxygen based C API docs configurable.
-
-Signed-off-by: Jaco Kroon <jaco@uls.co.za>
----
- README.md          | 6 ++++++
- doc/CMakeLists.txt | 7 ++++---
- 2 files changed, 10 insertions(+), 3 deletions(-)
-
-diff --git a/README.md b/README.md
-index 79ee3b0..4c90feb 100644
---- a/README.md
-+++ b/README.md
-@@ -61,6 +61,12 @@ Commands I am using for building the RPM:
-     make clean && make
- ## Other build options
- 
-+### ``-DBUILD_DOC_C=OFF``
-+
-+Build C API documentation (Default: ON)
-+
-+Disable building of C API documentation, which requires doxygen to be present.
-+
- ### ``-DENABLE_LEGACY_WEAKDEPS=ON``
- 
- Enable legacy SUSE/Mageia/Mandriva weakdeps support (Default: ON)
-diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
-index 6332b91..f14520d 100644
---- a/doc/CMakeLists.txt
-+++ b/doc/CMakeLists.txt
-@@ -3,14 +3,15 @@ ADD_SUBDIRECTORY (python)
- ADD_CUSTOM_TARGET (doc)
- ADD_DEPENDENCIES (doc doc-python)
- 
--find_package(Doxygen)
--if(DOXYGEN_FOUND)
-+option(BUILD_DOC_C "Build C API documentation" ON)
-+if(BUILD_DOC_C)
-+    find_package(Doxygen REQUIRED)
-     CONFIGURE_FILE("Doxyfile.in.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in" @ONLY)
-     add_custom_target(doc-c
-         ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.in
-         COMMENT "Building C API documentation with Doxygen" VERBATIM)
-     ADD_DEPENDENCIES (doc doc-c)
--endif(DOXYGEN_FOUND)
-+endif(BUILD_DOC_C)
- 
- IF(CREATEREPO_C_INSTALL_MANPAGES)
-     INSTALL(FILES createrepo_c.8 mergerepo_c.8 modifyrepo_c.8 sqliterepo_c.8
--- 
-2.55.0
-

diff --git a/0010-Omit-delta-rpm-related-info-from-bash-completion-and.patch b/0010-Omit-delta-rpm-related-info-from-bash-completion-and.patch
deleted file mode 100644
index c2f3132..0000000
--- a/0010-Omit-delta-rpm-related-info-from-bash-completion-and.patch
+++ /dev/null
@@ -1,153 +0,0 @@
-From e8cac4f0e3eee39970fc095cdb3ae5b625a003e3 Mon Sep 17 00:00:00 2001
-From: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
-Date: Wed, 25 Feb 2026 00:36:08 +0530
-Subject: [PATCH] Omit delta rpm related info from bash completion and man
- pages
-
-Add these info to respective files when delta rpm feature is enabled.
-
-Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
----
- CMakeLists.txt                            | 10 ++++++++--
- createrepo_c.bash => createrepo_c.bash.in | 13 ++++++++++---
- doc/CMakeLists.txt                        |  9 ++++++++-
- doc/{createrepo_c.8 => createrepo_c.8.in} |  2 ++
- 4 files changed, 28 insertions(+), 6 deletions(-)
- rename createrepo_c.bash => createrepo_c.bash.in (91%)
- rename doc/{createrepo_c.8 => createrepo_c.8.in} (99%)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index c4bf525..e118853 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -77,6 +77,11 @@ IF (ENABLE_DRPM)
-     include_directories (${DRPM_INCLUDE_DIRS})
-     ADD_DEFINITIONS("-DCR_DELTA_RPM_SUPPORT")
- ENDIF (ENABLE_DRPM)
-+IF (ENABLE_DRPM)
-+    SET (ENABLE_DRPM_BASH 1)
-+ELSE ()
-+    SET (ENABLE_DRPM_BASH 0)
-+ENDIF ()
- 
- # option to enable/disable python support
- OPTION (ENABLE_PYTHON "Enable python support?" ON)
-@@ -125,18 +130,19 @@ message("Package version: ${VERSION}")
- 
- OPTION(ENABLE_BASHCOMP "Install Bash autocompletions?" ON)
- IF (ENABLE_BASHCOMP)
-+    CONFIGURE_FILE(createrepo_c.bash.in ${CMAKE_BINARY_DIR}/createrepo_c.bash @ONLY)
-     pkg_check_modules(BASHCOMP bash-completion)
-     IF (BASHCOMP_FOUND)
-         execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=completionsdir bash-completion OUTPUT_VARIABLE BASHCOMP_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
-         message("Bash completion directory: ${BASHCOMP_DIR}")
--        INSTALL(FILES createrepo_c.bash DESTINATION ${BASHCOMP_DIR} RENAME createrepo_c)
-+        INSTALL(FILES ${CMAKE_BINARY_DIR}/createrepo_c.bash DESTINATION ${BASHCOMP_DIR} RENAME createrepo_c)
-         INSTALL(CODE "
-             execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink createrepo_c \$ENV{DESTDIR}${BASHCOMP_DIR}/mergerepo_c)
-             execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink createrepo_c \$ENV{DESTDIR}${BASHCOMP_DIR}/modifyrepo_c)
-             execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink createrepo_c \$ENV{DESTDIR}${BASHCOMP_DIR}/sqliterepo_c)
-             ")
-     ELSEIF (BASHCOMP_FOUND)
--        INSTALL(FILES createrepo_c.bash DESTINATION "/etc/bash_completion.d")
-+        INSTALL(FILES ${CMAKE_BINARY_DIR}/createrepo_c.bash DESTINATION "/etc/bash_completion.d")
-         message("Bash completion directory: /etc/bash_completion.d")
-     ENDIF (BASHCOMP_FOUND)
- ENDIF (ENABLE_BASHCOMP)
-diff --git a/createrepo_c.bash b/createrepo_c.bash.in
-similarity index 91%
-rename from createrepo_c.bash
-rename to createrepo_c.bash.in
-index e3f7f36..31ec392 100644
---- a/createrepo_c.bash
-+++ b/createrepo_c.bash.in
-@@ -13,15 +13,19 @@ _cr_checksum_type()
- _cr_createrepo()
- {
-     COMPREPLY=()
-+    local _cr_has_drpm=@ENABLE_DRPM_BASH@
- 
-     case $3 in
-         -V|--version|-h|--help)
-             return 0
-             ;;
--        --update-md-path|-o|--outputdir|--oldpackagedirs)
-+        --update-md-path|-o|--outputdir)
-             COMPREPLY=( $( compgen -d -- "$2" ) )
-             return 0
-             ;;
-+        --oldpackagedirs)
-+            (( _cr_has_drpm )) && COMPREPLY=( $( compgen -d -- "$2" ) ) && return 0
-+            ;;
-         -g|--groupfile)
-             COMPREPLY=( $( compgen -f -o plusdirs -X '!*.xml' -- "$2" ) )
-             return 0
-@@ -59,7 +63,7 @@ _cr_createrepo()
-     esac
- 
-     if [[ $2 == -* ]] ; then
--        COMPREPLY=( $( compgen -W '--help --version --quiet --verbose
-+        local cr_opts='--help --version --quiet --verbose
-             --excludes --basedir --baseurl --groupfile --checksum
-             --pretty --database --no-database --update --update-md-path
-             --skip-stat --pkglist --includepkg --outputdir
-@@ -69,8 +73,11 @@ _cr_createrepo()
-             --compress-type --keep-all-metadata --compatibility
-             --retain-old-md-by-age --cachedir --local-sqlite
-             --cut-dirs --location-prefix
-+            --recycle-pkglist'
-+        (( _cr_has_drpm )) && cr_opts="$cr_opts
-             --deltas --oldpackagedirs
--            --num-deltas --max-delta-rpm-size --recycle-pkglist' -- "$2" ) )
-+            --num-deltas --max-delta-rpm-size"
-+        COMPREPLY=( $( compgen -W "$cr_opts" -- "$2" ) )
-     else
-         COMPREPLY=( $( compgen -d -- "$2" ) )
-     fi
-diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
-index 704e6a5..6f523e6 100644
---- a/doc/CMakeLists.txt
-+++ b/doc/CMakeLists.txt
-@@ -15,8 +15,15 @@ if(BUILD_DOC_C)
-     ADD_DEPENDENCIES (doc doc-c)
- endif(BUILD_DOC_C)
- 
-+IF(ENABLE_DRPM)
-+    SET(ENABLE_DRPM_MAN 1)
-+ELSE()
-+    SET(ENABLE_DRPM_MAN 0)
-+ENDIF()
-+CONFIGURE_FILE(createrepo_c.8.in ${CMAKE_CURRENT_BINARY_DIR}/createrepo_c.8 @ONLY)
-+
- IF(CREATEREPO_C_INSTALL_MANPAGES)
--    INSTALL(FILES createrepo_c.8 mergerepo_c.8 modifyrepo_c.8 sqliterepo_c.8
-+    INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/createrepo_c.8 mergerepo_c.8 modifyrepo_c.8 sqliterepo_c.8
-             DESTINATION "${CMAKE_INSTALL_MANDIR}/man8"
-             COMPONENT bin)
- ENDIF(CREATEREPO_C_INSTALL_MANPAGES)
-diff --git a/doc/createrepo_c.8 b/doc/createrepo_c.8.in
-similarity index 99%
-rename from doc/createrepo_c.8
-rename to doc/createrepo_c.8.in
-index d76cd62..539e603 100644
---- a/doc/createrepo_c.8
-+++ b/doc/createrepo_c.8.in
-@@ -189,6 +189,7 @@ During \-\-update, remove all files in repodata/ which are older then the specif
- .SS \-c \-\-cachedir CACHEDIR.
- .sp
- Set path to cache dir
-+.if @ENABLE_DRPM_MAN@ \{\
- .SS \-\-deltas
- .sp
- Tells createrepo to generate deltarpms and the delta metadata.
-@@ -201,6 +202,7 @@ The number of older versions to make deltas against. Defaults to 1.
- .SS \-\-max\-delta\-rpm\-size MAX_DELTA_RPM_SIZE
- .sp
- Max size of an rpm that to run deltarpm against (in bytes).
-+.\}
- .SS \-\-local\-sqlite
- .sp
- Gen sqlite DBs locally (into a directory for temporary files). Sometimes, sqlite has a trouble to gen DBs on a NFS mount, use this option in such cases. This option could lead to a higher memory consumption if TMPDIR is set to /tmp or not set at all, because then the /tmp is used and /tmp dir is often a ramdisk.
--- 
-2.55.0
-

diff --git a/0011-doc-Omit-modularity-related-texts-if-built-without-m.patch b/0011-doc-Omit-modularity-related-texts-if-built-without-m.patch
deleted file mode 100644
index 67163a5..0000000
--- a/0011-doc-Omit-modularity-related-texts-if-built-without-m.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 681106422208da62008f48456656f699d91e7178 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Fri, 6 Mar 2026 13:22:28 +0100
-Subject: [PATCH 8/9] doc: Omit modularity-related texts if built without
- modularity support
-
----
- doc/CMakeLists.txt    | 5 +++++
- doc/createrepo_c.8.in | 2 ++
- 2 files changed, 7 insertions(+)
-
-diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
-index 6f523e6..6cc635f 100644
---- a/doc/CMakeLists.txt
-+++ b/doc/CMakeLists.txt
-@@ -20,6 +20,11 @@ IF(ENABLE_DRPM)
- ELSE()
-     SET(ENABLE_DRPM_MAN 0)
- ENDIF()
-+IF(WITH_LIBMODULEMD)
-+    SET(WITH_LIBMODULEMD_MAN 1)
-+ELSE()
-+    SET(WITH_LIBMODULEMD_MAN 0)
-+ENDIF()
- CONFIGURE_FILE(createrepo_c.8.in ${CMAKE_CURRENT_BINARY_DIR}/createrepo_c.8 @ONLY)
- 
- IF(CREATEREPO_C_INSTALL_MANPAGES)
-diff --git a/doc/createrepo_c.8.in b/doc/createrepo_c.8.in
-index 539e603..217ce20 100644
---- a/doc/createrepo_c.8.in
-+++ b/doc/createrepo_c.8.in
-@@ -38,6 +38,7 @@ createrepo_c [options] <directory>
- .SH DESCRIPTION
- .sp
- Uses rpm packages from <directory> to create repodata.
-+.if @WITH_LIBMODULEMD_MAN@ \{\
- .sp
- If compiled with libmodulemd support modular metadata inside <directory> identified by the patterns below and all their compressed variants are automatically collected, merged and added to the repodata.
- .sp
-@@ -54,6 +55,7 @@ modules.yaml (recommended way of importing multiple documents at once)
- .UNINDENT
- .UNINDENT
- .UNINDENT
-+.\}
- .SH OPTIONS
- .SS \-V \-\-version
- .sp
--- 
-2.55.0
-

diff --git a/0012-spec-Disable-modularity-from-RHEL-11.patch b/0012-spec-Disable-modularity-from-RHEL-11.patch
deleted file mode 100644
index 1c3935b..0000000
--- a/0012-spec-Disable-modularity-from-RHEL-11.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 843c0e4fd0e11fea4219cf5c55ca952edfdab6d9 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Tue, 3 Mar 2026 10:33:57 +0100
-Subject: [PATCH 9/9] spec: Disable modularity from RHEL 11
-
----
- createrepo_c.spec | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/createrepo_c.spec b/createrepo_c.spec
-index 96d4de1..f2a1014 100644
---- a/createrepo_c.spec
-+++ b/createrepo_c.spec
-@@ -21,7 +21,7 @@
- %bcond_without zchunk
- %endif
- 
--%if 0%{?rhel} && 0%{?rhel} < 7
-+%if 0%{?rhel} && ( 0%{?rhel} < 7 || 0%{?rhel} >= 11 )
- %bcond_with libmodulemd
- %else
- %bcond_without libmodulemd
--- 
-2.55.0
-

diff --git a/createrepo_c.spec b/createrepo_c.spec
index b1b1e75..a78b2dc 100644
--- a/createrepo_c.spec
+++ b/createrepo_c.spec
@@ -4,6 +4,9 @@
 
 %global bash_completion %{_datadir}/bash-completion/completions/*
 
+# Generate API documentation from the sources
+%bcond_without doc_c
+
 # Fedora infrastructure needs it for producing Fedora ≤ 39 and EPEL ≤ 7 repositories
 # See https://github.com/rpm-software-management/createrepo_c/issues/398
 %if ( 0%{?rhel} && ( 0%{?rhel} <= 7 || 0%{?rhel} >= 9 ) ) || ( 0%{?fedora} && 0%{?fedora} >= 45 )
@@ -35,28 +38,16 @@
 %if %{defined gitrev}
 %define package_version %{?gitrev}
 %else
-%define package_version 1.2.1
+%define package_version 1.2.6
 %endif
 
 Summary:        Creates a common metadata repository
 Name:           createrepo_c
 Version:        %{package_version}
-Release:        6%{?dist}
+Release:        1%{?dist}
 License:        GPL-2.0-or-later
 URL:            https://github.com/rpm-software-management/createrepo_c
 Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
-Patch1:         0001-Fix-libname-of-Libs.private.patch
-Patch2:         0002-Use-IMPORTED_TARGET-for-3rd-party-dependencies.patch
-Patch3:         0003-Don-t-try-to-use-imported-targets-of-turned-off-depe.patch
-Patch4:         0004-spec-require-cmake-3.7.0.patch
-Patch5:         0005-Include-unistd.h-for-STDOUT_FILENO.patch
-Patch6:         0006-Use-RPMTAG_SHA1HEADER-instead-of-RPMTAG_HDRID.patch
-Patch7:         0007-spec-Consistently-use-CMake-RPM-macros.patch
-Patch8:         0008-cmake-Allow-builds-without-Doxygen-being-present-wit.patch
-Patch9:         0009-Make-building-of-doxygen-based-C-API-docs-configurab.patch
-Patch10:        0010-Omit-delta-rpm-related-info-from-bash-completion-and.patch
-Patch11:        0011-doc-Omit-modularity-related-texts-if-built-without-m.patch
-Patch12:        0012-spec-Disable-modularity-from-RHEL-11.patch
 
 %global epoch_dep %{?epoch:%{epoch}:}
 
@@ -64,7 +55,9 @@ BuildRequires:  cmake >= 3.7.0
 BuildRequires:  gcc
 BuildRequires:  git-core
 BuildRequires:  bzip2-devel
+%if %{with doc_c}
 BuildRequires:  doxygen
+%endif
 BuildRequires:  glib2-devel >= 2.22.0
 BuildRequires:  libcurl-devel
 BuildRequires:  libxml2-devel
@@ -137,8 +130,6 @@ These development files are for easy manipulation with a repodata.
 Summary:        Python 3 bindings for the createrepo_c library
 %{?python_provide:%python_provide python3-%{name}}
 BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  python3-sphinx
 Requires:       %{name}-libs = %{epoch_dep}%{version}-%{release}
 
 %description -n python3-%{name}
@@ -153,14 +144,17 @@ mkdir build-py3
 # Build createrepo_c with Pyhon 3
 pushd build-py3
   %cmake .. \
+      -DBUILD_DOC_C=%{?with_doc_c:ON}%{!?with_doc_c:OFF} \
       -DWITH_ZCHUNK=%{?with_zchunk:ON}%{!?with_zchunk:OFF} \
       -DWITH_LIBMODULEMD=%{?with_libmodulemd:ON}%{!?with_libmodulemd:OFF} \
       -DWITH_LEGACY_HASHES=%{?with_legacy_hashes:ON}%{!?with_legacy_hashes:OFF} \
       -DENABLE_DRPM=%{?with_drpm:ON}%{!?with_drpm:OFF} \
       -DWITH_SANITIZERS=%{?with_sanitizers:ON}%{!?with_sanitizers:OFF}
   %cmake_build
+%if %{with doc_c}
   # Build C documentation
   %cmake_build -t doc-c
+%endif
 popd
 
 %check
@@ -170,6 +164,10 @@ pushd build-py3
   %cmake_build -t tests
 
   # Run Python 3 tests
+  %if 0%{?rhel} == 9 && %{defined ctest}
+    # Work around broken passing options to ctest macro, RHEL-120543
+    %global ctest(-) %{expand:%{macrobody:ctest}}
+  %endif
   %ctest -V
 popd
 
@@ -215,7 +213,9 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
 %{_libdir}/lib%{name}.so.*
 
 %files devel
+%if %{with doc_c}
 %doc build-py3/doc/html
+%endif
 %{_libdir}/lib%{name}.so
 %{_libdir}/pkgconfig/%{name}.pc
 %{_includedir}/%{name}/
@@ -223,9 +223,12 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo
 %files -n python3-%{name}
 %doc examples/python/*
 %{python3_sitearch}/%{name}/
-%{python3_sitearch}/%{name}-*-py%{python3_version}.egg-info
+%{python3_sitearch}/%{name}-*.dist-info
 
 %changelog
+* Mon Nov 02 2026 Petr Pisar <ppisar@redhat.com> - 1.2.6-1
+- 1.2.6 bump
+
 * Wed Jul 08 2026 Petr Pisar <ppisar@redhat.com> - 1.2.1-6
 - Omit delta RPM from bash completion and manual pages if built without delta
   RPM support

diff --git a/sources b/sources
index 3c7b564..524ee3b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (createrepo_c-1.2.1.tar.gz) = 3acd54e5848ad3995d8b140b9d338fb8588c46d163e029b7203e49b3ff1a9984b55d403c3a5c590be23ebb5c5c74de369883eb51bba6fb51e8b247f9f10ab383
+SHA512 (createrepo_c-1.2.6.tar.gz) = e4acbbad95af840435bdbe858aa716a554058c5c5d8d7d780525ae11de646a17fda6cbe91019e27a1dfb30aec5aaf4a9eefdeb17b1e15944a37cb94b27307e01

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-02 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 13:01 [rpms/createrepo_c] f44: 1.2.6 bump 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox