4 Commits

4 changed files with 43 additions and 36 deletions

BIN
librepo-1.19.0.tar.gz (Stored with Git LFS)

Binary file not shown.

3
librepo-1.20.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c21dd3caefe97ea58bc865f92095a9d2db2ec8aab49d0c714d4742094db930b6
size 844583

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Jul 25 15:25:09 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update gpgme build requirement for future-proofing
- use cmake macros and other spec file tweaks
-------------------------------------------------------------------
Mon Jun 23 13:42:21 UTC 2025 - Flann van der Eik <fl4nn@opensuse.org>
- Update to 1.20.0:
* Fix and update lr_download_metadata API to enable parallel
downloading of repos
-------------------------------------------------------------------
Mon Nov 18 10:20:42 UTC 2024 - Pedro Monreal <pmonreal@suse.com>

View File

@@ -1,8 +1,9 @@
#
# spec file for package librepo
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2020-2021 Neal Gompa <ngompa13@gmail.com>.
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +18,11 @@
#
%define major 0
%define libname %{name}%{major}
%define devname %{name}-devel
# prevent provides from nonstandard paths:
%global __provides_exclude ^(%{python3_sitearch}/.*\\.so)$
%ifarch %{arm} aarch64 riscv64
# Don't run tests on ARM and RISC-V for now. There are problems
# with performance on the builders and often these time out.
@@ -24,33 +30,27 @@
%else
%bcond_without tests
%endif
# zchunk is only available in Leap 15.1 and newer
%if 0%{?sle_version} >= 150100 || 0%{?suse_version} >= 1550
%bcond_without zchunk
%else
%bcond_with zchunk
%endif
%define major 0
%define libname %{name}%{major}
%define devname %{name}-devel
Name: librepo
Version: 1.19.0
Version: 1.20.0
Release: 0
Summary: Repodata downloading library
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/rpm-software-management/librepo
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gpgme-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(glib-2.0) >= 2.28.0
BuildRequires: pkgconfig(gpgme)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libcurl) >= 7.52.0
BuildRequires: pkgconfig(libxml-2.0)
@@ -58,10 +58,6 @@ BuildRequires: pkgconfig(openssl)
%if %{with zchunk}
BuildRequires: pkgconfig(zck) >= 0.9.11
%endif
BuildRequires: python-rpm-macros
# prevent provides from nonstandard paths:
%global __provides_exclude ^(%{python3_sitearch}/.*\\.so)$
%description
A library providing C and Python (libcURL like) API for downloading repository
@@ -86,17 +82,17 @@ This package provides the development files for %{name}.
%package -n python3-librepo
Summary: Python 3 bindings for the librepo library
Group: Development/Libraries/Python
BuildRequires: python3-Sphinx
BuildRequires: python3-devel
BuildRequires: python3-xattr
Requires: %{libname}%{?_isa} = %{version}-%{release}
# There is no more Python 2 subpackage
Obsoletes: python2-librepo < 1.9.3
%if %{with tests}
BuildRequires: python3-Flask
BuildRequires: python3-gpg
BuildRequires: python3-requests
%endif
BuildRequires: python3-Sphinx
BuildRequires: python3-xattr
Requires: %{libname}%{?_isa} = %{version}-%{release}
# There is no more Python 2 subpackage
Obsoletes: python2-librepo < 1.9.3
%description -n python3-librepo
This package provides the Python 3 bindings for the librepo library.
@@ -105,37 +101,35 @@ This package provides the Python 3 bindings for the librepo library.
%autosetup -p1
%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPYTHON_DESIRED:str=3 %{!?with_zchunk:-DWITH_ZCHUNK=OFF}
%make_build
%cmake \
-DPYTHON_DESIRED:str=3 \
%{!?with_zchunk:-DWITH_ZCHUNK=OFF} \
%{nil}
%cmake_build
%check
%if %{with tests}
pushd ./build
make ARGS="-V" test
make clean
popd
%ctest
%endif
%install
pushd ./build
%make_install
popd
%cmake_install
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{libname}
%files -n %{libname}
%doc README.md
%license COPYING
%doc README.md
%{_libdir}/librepo.so.%{major}
%files -n %{devname}
%license COPYING
%{_libdir}/librepo.so
%{_libdir}/pkgconfig/librepo.pc
%{_includedir}/librepo/
%files -n python3-librepo
%license COPYING
%{python3_sitearch}/librepo
%changelog