[packages/createrepo_c] - updated to 1.2.4, added drpm bcond
qboosh
qboosh at pld-linux.org
Sun Sep 27 10:38:45 CEST 2026
commit ed7560cfbf45e6d4064bca399d12b19bde1cd581
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 27 10:39:08 2026 +0200
- updated to 1.2.4, added drpm bcond
createrepo_c-pc.patch | 9 +++++++++
createrepo_c-tests.patch | 6 ++++++
createrepo_c.spec | 36 +++++++++++++++++++-----------------
3 files changed, 34 insertions(+), 17 deletions(-)
---
diff --git a/createrepo_c.spec b/createrepo_c.spec
index 9f722cc..294c705 100644
--- a/createrepo_c.spec
+++ b/createrepo_c.spec
@@ -1,38 +1,37 @@
-# TODO:
-# - drpm support?
#
# Conditional build:
%bcond_with rpm5 # build with rpm5, tests may fail (rpm.org vs rpm5 compat problems?)
+%bcond_with drpm # deltarpm support
%bcond_without tests # make tests
Summary: Creates a common metadata repository
Summary(pl.UTF-8): Tworzenie wspólnego repozytorium metadanych
Name: createrepo_c
-Version: 1.2.1
+Version: 1.2.4
Release: 1
License: GPL v2+
Group: Applications/System
#Source0Download: https://github.com/rpm-software-management/createrepo_c/releases
Source0: https://github.com/rpm-software-management/createrepo_c/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: bf9dda4ff181c68b8bd6d063d5945edf
+# Source0-md5: e3d12bbb15fcf02e0b25ad87703929c4
Patch0: %{name}-rpm5.patch
+Patch1: %{name}-tests.patch
+Patch2: %{name}-pc.patch
URL: https://github.com/rpm-software-management/createrepo_c
BuildRequires: bash-completion-devel >= 1:2.0
BuildRequires: bzip2-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.7
BuildRequires: curl-devel
BuildRequires: doxygen
-#BuildRequires: drpm-devel
+BuildRequires: drpm-devel >= 0.4.0
+BuildRequires: gcc >= 5:3.2
BuildRequires: glib2-devel >= 1:2.22.0
-BuildRequires: libmodulemd-devel
+BuildRequires: libmodulemd-devel >= 2.0
BuildRequires: libxml2-devel >= 2
BuildRequires: openssl-devel
BuildRequires: pkgconfig
-%{?with_tests:BuildRequires: python-nose}
-BuildRequires: python3-devel >= 1:3.2
-BuildRequires: python3-modules
-%{?with_tests:BuildRequires: python3-nose}
-BuildRequires: python3-setuptools
+BuildRequires: python3-devel >= 1:3.10
+BuildRequires: python3-modules >= 1:3.10
BuildRequires: rpm-build >= 4.6
BuildRequires: rpm-devel
BuildRequires: rpm-pythonprov
@@ -138,12 +137,15 @@ mergerepo_c, modifyrepo_c).
%prep
%setup -q
%{?with_rpm5:%patch -P0 -p1}
+%patch -P1 -p1
+%patch -P2 -p1
%build
install -d build
cd build
%cmake .. \
-DBASHCOMP_DIR=%{bash_compdir} \
+ %{?with_drpm:-DENABLE_DRPM=ON} \
-DPYTHON_DESIRED=3
%{__make}
@@ -184,12 +186,12 @@ rm -rf $RPM_BUILD_ROOT
%files libs
%defattr(644,root,root,755)
%doc AUTHORS README.md
-%attr(755,root,root) %{_libdir}/libcreaterepo_c.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcreaterepo_c.so.1
+%{_libdir}/libcreaterepo_c.so.*.*.*
+%ghost %{_libdir}/libcreaterepo_c.so.1
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libcreaterepo_c.so
+%{_libdir}/libcreaterepo_c.so
%{_pkgconfigdir}/createrepo_c.pc
%{_includedir}/createrepo_c
@@ -200,10 +202,10 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-createrepo_c
%defattr(644,root,root,755)
%dir %{py3_sitedir}/createrepo_c
-%attr(755,root,root) %{py3_sitedir}/createrepo_c/_createrepo_c.so
+%{py3_sitedir}/createrepo_c/_createrepo_c.so
%{py3_sitedir}/createrepo_c/__init__.py
%{py3_sitedir}/createrepo_c/__pycache__
-%{py3_sitedir}/createrepo_c-%{version}-py*.egg-info
+%{py3_sitedir}/createrepo_c-%{version}.dist-info
%files -n bash-completion-createrepo_c
%defattr(644,root,root,755)
diff --git a/createrepo_c-pc.patch b/createrepo_c-pc.patch
new file mode 100644
index 0000000..e5deee6
--- /dev/null
+++ b/createrepo_c-pc.patch
@@ -0,0 +1,9 @@
+--- createrepo_c-1.2.4/src/createrepo_c.pc.cmake.orig 2026-06-10 12:56:24.000000000 +0200
++++ createrepo_c-1.2.4/src/createrepo_c.pc.cmake 2026-09-27 09:43:12.240247890 +0200
+@@ -1,5 +1,5 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@LIB_INSTALL_DIR@
++libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+ includedir=@CMAKE_INSTALL_PREFIX@/include
+
+ Name: createrepo_c
diff --git a/createrepo_c-tests.patch b/createrepo_c-tests.patch
new file mode 100644
index 0000000..6355568
--- /dev/null
+++ b/createrepo_c-tests.patch
@@ -0,0 +1,6 @@
+--- createrepo_c-1.2.4/tests/python/tests/run_unittests.sh.in.orig 2026-06-10 12:56:24.000000000 +0200
++++ createrepo_c-1.2.4/tests/python/tests/run_unittests.sh.in 2026-09-27 09:19:16.064694988 +0200
+@@ -1 +1,3 @@
++#!/bin/sh
++
+ LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src/: PYTHONPATH=${CMAKE_BINARY_DIR}/src/python/ WITH_LIBMODULEMD=${WITH_LIBMODULEMD} ${PYTHON_EXECUTABLE} -m unittest discover -s ${CMAKE_CURRENT_SOURCE_DIR}/../
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/createrepo_c.git/commitdiff/ed7560cfbf45e6d4064bca399d12b19bde1cd581
More information about the pld-cvs-commit
mailing list