|
|
@ -8,27 +8,53 @@
|
|
|
|
%bcond_without zchunk
|
|
|
|
%bcond_without zchunk
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10
|
|
|
|
|
|
|
|
%bcond_with use_gpgme
|
|
|
|
|
|
|
|
%bcond_with use_selinux
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without use_gpgme
|
|
|
|
|
|
|
|
%bcond_without use_selinux
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Needs to match how gnupg2 is compiled
|
|
|
|
|
|
|
|
%bcond_with run_gnupg_user_socket
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with use_gpgme} && %{with use_selinux}
|
|
|
|
|
|
|
|
%global need_selinux 1
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%global need_selinux 0
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global dnf_conflict 2.8.8
|
|
|
|
%global dnf_conflict 2.8.8
|
|
|
|
|
|
|
|
|
|
|
|
Name: librepo
|
|
|
|
Name: librepo
|
|
|
|
Version: 1.14.5
|
|
|
|
Version: 1.18.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Repodata downloading library
|
|
|
|
Summary: Repodata downloading library
|
|
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://github.com/rpm-software-management/librepo
|
|
|
|
URL: https://github.com/rpm-software-management/librepo
|
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
Patch1: 0001-Use-rpm-sequoia-on-RHEL-10.patch
|
|
|
|
|
|
|
|
Patch2: 0002-Fix-a-memory-leak-in-select_next_target.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.66
|
|
|
|
|
|
|
|
%if %{with use_gpgme}
|
|
|
|
BuildRequires: gpgme-devel
|
|
|
|
BuildRequires: gpgme-devel
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(rpm) >= 4.18.0
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: libcurl-devel >= %{libcurl_version}
|
|
|
|
BuildRequires: libcurl-devel >= %{libcurl_version}
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
|
|
|
|
|
|
%if %{need_selinux}
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libselinux)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
%if %{with zchunk}
|
|
|
|
%if %{with zchunk}
|
|
|
|
BuildRequires: pkgconfig(zck) >= 0.9.11
|
|
|
|
BuildRequires: pkgconfig(zck) >= 0.9.11
|
|
|
@ -42,6 +68,9 @@ metadata.
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Repodata downloading library
|
|
|
|
Summary: Repodata downloading library
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%if %{with zchunk}
|
|
|
|
|
|
|
|
Requires: zchunk-devel%{?_isa}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
Development files for librepo.
|
|
|
|
Development files for librepo.
|
|
|
@ -66,7 +95,11 @@ Python 3 bindings for the librepo library.
|
|
|
|
%autosetup -p1
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cmake %{!?with_zchunk:-DWITH_ZCHUNK=OFF}
|
|
|
|
%cmake \
|
|
|
|
|
|
|
|
-DWITH_ZCHUNK=%{?with_zchunk:ON}%{!?with_zchunk:OFF} \
|
|
|
|
|
|
|
|
-DUSE_GPGME=%{?with_use_gpgme:ON}%{!?with_use_gpgme:OFF} \
|
|
|
|
|
|
|
|
-DUSE_RUN_GNUPG_USER_SOCKET=%{?with_run_gnupg_user_socket:ON}%{!?with_run_gnupg_user_socket:OFF} \
|
|
|
|
|
|
|
|
-DENABLE_SELINUX=%{?need_selinux:ON}%{!?need_selinux:OFF}
|
|
|
|
%cmake_build
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
@ -96,47 +129,115 @@ Python 3 bindings for the librepo library.
|
|
|
|
%{python3_sitearch}/%{name}/
|
|
|
|
%{python3_sitearch}/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Jul 25 2022 Lukas Hrazky <lhrazky@redhat.com> - 1.14.5-1
|
|
|
|
* Mon Jul 15 2024 Petr Pisar <ppisar@redhat.com> - 1.18.0-2
|
|
|
|
- Update to 1.14.5
|
|
|
|
- Use librpmio instead of gpgme for handling PGP keys (RHEL-47106)
|
|
|
|
- Detailed error message when using non-existing TMPDIR (RhBug:2019993)
|
|
|
|
- Fix a memory leak in select_next_target() (RHEL-35699)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 02 2024 Evan Goode <egoode@redhat.com> - 1.18.0-1
|
|
|
|
|
|
|
|
- Update to 1.18.0 (RHEL-35699)
|
|
|
|
|
|
|
|
- API: Add LRO_USERNAME and LRO_PASSWORD options
|
|
|
|
|
|
|
|
- Add a private dependency on zck to librepo.pc if zchunk support is enabled
|
|
|
|
|
|
|
|
- Hash cache: Improved work with extended file attributes
|
|
|
|
|
|
|
|
- Improve performance of large number of package downloads
|
|
|
|
|
|
|
|
- Fix error handling, Fix examples and build them
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.17.1-2
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Mar 26 2024 Jan Kolarik <jkolarik@redhat.com> - 1.17.1-1
|
|
|
|
|
|
|
|
- Update to 1.17.1 (RHEL-38831)
|
|
|
|
|
|
|
|
- gpg_gpgme.c: fix build errors with older gcc
|
|
|
|
|
|
|
|
- Change header files to match a configured ABI regarding a zchunk support
|
|
|
|
|
|
|
|
- Fix building zchunk code if zchunk is enabled
|
|
|
|
|
|
|
|
- Fix compiler warnings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 18 2023 Jan Kolarik <jkolarik@redhat.com> - 1.17.0-1
|
|
|
|
|
|
|
|
- Update to 1.17.0
|
|
|
|
|
|
|
|
- lr_gpg_check_signature: Forward PGP error messages from RPM
|
|
|
|
|
|
|
|
- PGP: fix: Support importing binary public keys in librpm backend
|
|
|
|
|
|
|
|
- PGP: Enable creating a UID directory for GnuGP agent socket in /run/gnupg/user
|
|
|
|
|
|
|
|
- PGP: Set a default creation SELinux labels on GnuPG directories
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 20 2023 Adam Williamson <awilliam@redhat.com> - 1.16.0-2
|
|
|
|
|
|
|
|
- Rebuild with no changes for Bodhi reasons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 01 2023 Jan Kolarik <jkolarik@redhat.com> - 1.16.0-1
|
|
|
|
|
|
|
|
- Update to 1.16.0
|
|
|
|
|
|
|
|
- Implement OpenPGP using librpm API
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 01 2023 Jan Kolarik <jkolarik@redhat.com> - 1.15.2-1
|
|
|
|
|
|
|
|
- Update to 1.15.2
|
|
|
|
|
|
|
|
- Fixes and optimizations in header files
|
|
|
|
|
|
|
|
- Fix lr_gpg_list_keys function when keys are empty
|
|
|
|
|
|
|
|
- Update PGP test vectors
|
|
|
|
|
|
|
|
- Fix CMake warnings
|
|
|
|
|
|
|
|
- Bump glib version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.15.1-3
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 09 2022 Jaroslav Rohel <jrohel@redhat.com> - 1.15.1-1
|
|
|
|
|
|
|
|
- Update to 1.15.1
|
|
|
|
|
|
|
|
- Adds API support for waiting on network in an event driven manner (new API function lr_handle_network_wait)
|
|
|
|
|
|
|
|
- OpenPGP API extension and fixes (new API functions lr_gpg_*)
|
|
|
|
|
|
|
|
- Update license format to "LGPL-2.1-or-later"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 23 2022 Jaroslav Rohel <jrohel@redhat.com> - 1.14.4-1
|
|
|
|
|
|
|
|
- Update to 1.14.4
|
|
|
|
|
|
|
|
- Use nanosec precision for timestamp of checksum cache (RhBug:2077864)
|
|
|
|
|
|
|
|
- Fix alloc/free mismatches and memory leaks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.14.3-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 05 2022 Jaroslav Rohel <jrohel@redhat.com> - 1.14.3-1
|
|
|
|
|
|
|
|
- Update to 1.14.3
|
|
|
|
- Make error messages about repodata and rpm mismatch more user friendly
|
|
|
|
- Make error messages about repodata and rpm mismatch more user friendly
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 25 2022 Lukas Hrazky <lhrazky@redhat.com> - 1.14.2-3
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.2-2
|
|
|
|
- Fix covscan issues
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 12 2022 Lukas Hrazky <lhrazky@redhat.com> - 1.14.2-2
|
|
|
|
|
|
|
|
- Use nanosec precision for timestamp of checksum cache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 25 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.2-1
|
|
|
|
* Thu Sep 23 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.2-1
|
|
|
|
- Update to 1.14.2
|
|
|
|
- Update to 1.14.2
|
|
|
|
- Reduce time to load metadata
|
|
|
|
- Fix covscan warnings and memory leak
|
|
|
|
- Fix resource leaks and memory leaks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.0-6
|
|
|
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 27 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.0-5
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1.14.1-3
|
|
|
|
- Fix issues detected by static analyzers
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 13 2021 Marek Blaha <mblaha@redhat.com> - 1.14.0-4
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.1-2
|
|
|
|
- Recover from fsync fail on read-only filesystem (RhBug:1981194)
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.0-3
|
|
|
|
* Tue Jun 15 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.1-1
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
- Update to 1.14.1
|
|
|
|
Related: rhbz#1971065
|
|
|
|
- Recover from fsync fail on read-only filesystem (RhBug:1956361)
|
|
|
|
|
|
|
|
- Reduce time to load metadata
|
|
|
|
|
|
|
|
- Fix resource leaks
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 30 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.0-2
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.14.0-2
|
|
|
|
- Remove build dependency on python3-flask
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 26 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.0-1
|
|
|
|
* Thu Apr 15 2021 Nicola Sella <nsella@redhat.com> - 1.14.0-1
|
|
|
|
- Update to 1.14.0
|
|
|
|
- Update to 1.14.0
|
|
|
|
- Reposync does not re-download unchanged packages (RhBug:1931904)
|
|
|
|
- Fix: memory leaks
|
|
|
|
- Return "calculated" checksum if requested w/caching
|
|
|
|
- Support multiple checksums in xattr (RhBz:1931904)
|
|
|
|
- Fixed memory leaks and segfault
|
|
|
|
- Use macros to access extended attributes
|
|
|
|
|
|
|
|
- Remove problematic language
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.13.0-2
|
|
|
|
- CMake: Set minimum version for curl to 7.52.0
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Mar 01 2021 Nicola Sella <nsella@redhat.com> - 1.13.0-1
|
|
|
|
* Mon Mar 01 2021 Nicola Sella <nsella@redhat.com> - 1.13.0-1
|
|
|
|
- Update to 1.13.0
|
|
|
|
- Update to 1.13.0
|
|
|
|