936122
%global libcurl_version 7.52.0
936122
936122
%undefine __cmake_in_source_build
936122
936122
%if 0%{?rhel}
936122
%bcond_with zchunk
936122
%else
936122
%bcond_without zchunk
936122
%endif
936122
936122
%global dnf_conflict 2.8.8
936122
936122
Name:           librepo
469bda
Version:        1.14.2
9ad4c0
Release:        3%{?dist}
936122
Summary:        Repodata downloading library
936122
936122
License:        LGPLv2+
936122
URL:            https://github.com/rpm-software-management/librepo
936122
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
936122
9ad4c0
Patch0001:      0001-Use-nanosec-precision-for-timestamp-of-checksum-cach.patch
9ad4c0
Patch0002:      0002-Fix-alloc-free-mismatches-from-covscan.patch
9ad4c0
Patch0003:      0003-More-covscan-fixes.patch
9ad4c0
936122
BuildRequires:  cmake
936122
BuildRequires:  gcc
936122
BuildRequires:  check-devel
936122
BuildRequires:  doxygen
936122
BuildRequires:  pkgconfig(glib-2.0)
936122
BuildRequires:  gpgme-devel
936122
BuildRequires:  libattr-devel
936122
BuildRequires:  libcurl-devel >= %{libcurl_version}
936122
BuildRequires:  pkgconfig(libxml-2.0)
936122
BuildRequires:  pkgconfig(libcrypto)
936122
BuildRequires:  pkgconfig(openssl)
936122
%if %{with zchunk}
936122
BuildRequires:  pkgconfig(zck) >= 0.9.11
936122
%endif
936122
Requires:       libcurl%{?_isa} >= %{libcurl_version}
936122
936122
%description
936122
A library providing C and Python (libcURL like) API to downloading repository
936122
metadata.
936122
936122
%package devel
936122
Summary:        Repodata downloading library
936122
Requires:       %{name}%{?_isa} = %{version}-%{release}
936122
936122
%description devel
936122
Development files for librepo.
936122
936122
%package -n python3-%{name}
936122
Summary:        Python 3 bindings for the librepo library
936122
%{?python_provide:%python_provide python3-%{name}}
936122
BuildRequires:  python3-devel
936122
BuildRequires:  python3-gpg
936122
BuildRequires:  python3-pyxattr
936122
BuildRequires:  python3-requests
936122
BuildRequires:  python3-sphinx
936122
Requires:       %{name}%{?_isa} = %{version}-%{release}
936122
# Obsoletes Fedora 27 package
936122
Obsoletes:      platform-python-%{name} < %{version}-%{release}
936122
Conflicts:      python3-dnf < %{dnf_conflict}
936122
936122
%description -n python3-%{name}
936122
Python 3 bindings for the librepo library.
936122
936122
%prep
936122
%autosetup -p1
936122
936122
%build
936122
%cmake %{!?with_zchunk:-DWITH_ZCHUNK=OFF}
936122
%cmake_build
936122
936122
%check
936122
%ctest
936122
936122
%install
936122
%cmake_install
936122
936122
%if 0%{?rhel} && 0%{?rhel} <= 7
936122
%post -p /sbin/ldconfig
936122
%postun -p /sbin/ldconfig
936122
%else
936122
%ldconfig_scriptlets
936122
%endif
936122
936122
%files
936122
%license COPYING
936122
%doc README.md
936122
%{_libdir}/%{name}.so.*
936122
936122
%files devel
936122
%{_libdir}/%{name}.so
936122
%{_libdir}/pkgconfig/%{name}.pc
936122
%{_includedir}/%{name}/
936122
936122
%files -n python3-%{name}
936122
%{python3_sitearch}/%{name}/
936122
936122
%changelog
9ad4c0
* Mon Jul 25 2022 Lukas Hrazky <lhrazky@redhat.com> - 1.14.2-3
9ad4c0
- Fix covscan issues
9ad4c0
9ad4c0
* Tue Jul 12 2022 Lukas Hrazky <lhrazky@redhat.com> - 1.14.2-2
9ad4c0
- Use nanosec precision for timestamp of checksum cache
9ad4c0
469bda
* Mon Oct 25 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.2-1
469bda
- Update to 1.14.2
469bda
- Reduce time to load metadata
469bda
- Fix resource leaks and memory leaks
469bda
936122
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.0-6
936122
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
936122
  Related: rhbz#1991688
936122
936122
* Tue Jul 27 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.0-5
936122
- Fix issues detected by static analyzers
936122
936122
* Tue Jul 13 2021 Marek Blaha <mblaha@redhat.com> - 1.14.0-4
936122
- Recover from fsync fail on read-only filesystem (RhBug:1981194)
936122
936122
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.0-3
936122
- Rebuilt for RHEL 9 BETA for openssl 3.0
936122
  Related: rhbz#1971065
936122
936122
* Fri Apr 30 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.0-2
936122
- Remove build dependency on python3-flask
936122
936122
* Mon Apr 26 2021 Pavla Kratochvilova <pkratoch@redhat.com> - 1.14.0-1
936122
- Update to 1.14.0
936122
- Reposync does not re-download unchanged packages (RhBug:1931904)
936122
- Return "calculated" checksum if requested w/caching
936122
- Fixed memory leaks and segfault
936122
936122
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.13.0-2
936122
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
936122
936122
* Mon Mar 01 2021 Nicola Sella <nsella@redhat.com> - 1.13.0-1
936122
- Update to 1.13.0
936122
- Add support for working with certificates used with proxy
936122
- Drop Python 2 support
936122
- Fix: lr_perform() - Avoid 100% CPU usage
936122
- Add support for pkcs11 certificate and key for repository authorization
936122
- Fix default value for LRO_SSLVERIFYSTATUS
936122
- Don't use max_ranges to determine if we expect zchunk callback
936122
- Prefer HTTP over FTP mirrors when zchunk is enabled
936122
- Fixed mem leaks and typos
936122
936122
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.1-2
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
936122
936122
* Wed Oct 07 2020 Nicola Sella <nsella@redhat.com> - 1.12.1-1
936122
* Update to 1.12.1
936122
- Validate path read from repomd.xml (RhBug:1868639)
936122
936122
* Fri Aug 07 2020 Nicola Sella <nsella@redhat.com> - 1.12.0-4
936122
spec: Fix building with new cmake macros
936122
936122
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
936122
- Second attempt - Rebuilt for
936122
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
936122
936122
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-2
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
936122
936122
* Tue Jun 02 2020 Nicola Sella <nsella@redhat.com> - 1.12.0-1
936122
- Update to 1.12.0
936122
- Decode package URL when using for local filename (RhBug:1817130)
936122
- Fix memory leak in lr_download_metadata() and lr_yum_download_remote()
936122
- Download sources work when at least one of specified is working (RhBug:1775184)
936122
- Enable building on OSX
936122
936122
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.11.3-3
936122
- Rebuilt for Python 3.9
936122
936122
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.11.3-2
936122
- Bootstrap for Python 3.9
936122
936122
* Wed Apr 01 2020 Ales Matej <amatej@fedoraproject.org> - 1.11.3-1
936122
- Update to 1.11.3
936122
- Prefer mirrorlist/metalink over baseurl (RhBug:1775184)
936122
936122
* Mon Feb 10 2020 Ales Matej <amatej@fedoraproject.org> - 1.11.1-4
936122
- Fix calling Python API without holding GIL (RhBug:1788918)
936122
936122
* Wed Feb 05 2020 Lukas Slebodnik <lslebodn@fedoraproject.org> - 1.11.1-3
936122
- Do not unref LrErr_Exception on exit (RhBug:1778854)
936122
936122
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.1-2
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
936122
936122
* Mon Dec 09 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.11.1-1
936122
- Update to 1.11.1
936122
- Create a directory for gpg sockets in /run/user/ (RhBug:1769831,1771012)
936122
936122
* Wed Nov 06 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.11.0-1
936122
- Update to 1.11.0
936122
- Retry mirrorlist/metalink downloads several times (RhBug:1741931)
936122
- Improve variable substitutions in URLs and add ${variable} support
936122
936122
* Tue Oct 01 2019 Ales Matej <amatej@redhat.com> - 1.10.6-1
936122
- Update to 1.10.6
936122
- Imporove handling of xattr to re-download damadged files (RhBug:1690894)
936122
- Rephrase repository GPG check error message (RhBug:1741442)
936122
- Add sleep before next try when all mirrors were tried (RhBug:1741931)
936122
- Raise logging level of error messages (RhBug:1737709)
936122
936122
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 1.10.5-2
936122
- Rebuilt for Python 3.8
936122
936122
* Mon Jul 29 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.10.5-1
936122
- Update to 1.10.5
936122
- Exit gpg-agent after repokey import (RhBug:1650266)
936122
- Handle webservers that don't support ranges when downloading zck
936122
- Define LRO_SUPPORTS_CACHEDIR only with zchunk (RhBug:1726141)
936122
- Allow to use mirrors multiple times for a target (RhBug:1678588)
936122
- Allow to try baseurl multiple times (RhBug:1678588)
936122
936122
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2-3
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
936122
936122
* Thu May 23 2019 Jonathan Dieter <jdieter@gmail.com> - 1.10.2-2
936122
- Add upstream patch to make sure to check next transfer if current zck
936122
  transfer already exists
936122
936122
* Mon May 20 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.10.2-1
936122
- Update to 1.10.2
936122
- Add an option to preserve timestamps of the downloaded files (RhBug:1688537)
936122
- librepo: append the '?' part of repo URL after the path
936122
- Fix librepo isn't able to load zchunk files from next server on failure
936122
936122
* Tue Apr 02 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.9.6-2
936122
- Backport patch to fix segfault when using zchunk metadata
936122
936122
* Wed Mar 27 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.9.6-1
936122
- Update to 1.9.6
936122
- Fix memory leaks
936122
- Fix CPU usage when downloading packages (RhBug:1691856)
936122
936122
* Mon Mar 11 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.9.5-1
936122
- Update to 1.9.5
936122
- Reduce download delays
936122
936122
* Wed Feb 13 2019 Pavla Kratochvilova <pkratoch@redhat.com> - 1.9.4-1
936122
- Update to 1.9.4-1
936122
- Add zchunk support
936122
936122
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-3
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
936122
936122
* Mon Jan 28 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-2
936122
- Subpackage python2-librepo has been removed
936122
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
936122
936122
* Tue Sep 25 2018 Jaroslav Mracek <jmracek@redhat.com> - 1.9.2-1
936122
- Update to 1.9.2
936122
- Fix major performance regression with libcurl-7.61.1
936122
936122
* Mon Aug 13 2018 Daniel Mach <dmach@redhat.com> - 1.9.1-1
936122
- Update to 1.9.1
936122
936122
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
936122
936122
* Fri Jun 29 2018 Jaroslav Mracek <jmracek@redhat.com> - 1.9.0-3
936122
- Rebuilt for Python 3.7
936122
936122
* Tue Jun 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.9.0-2
936122
- Fix ldconfig_scriptlets once more
936122
936122
* Tue Jun 26 2018 Jaroslav Mracek <jmracek@redhat.com> - 1.9.0-1
936122
- Update to 1.9.0
936122
936122
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-9
936122
- Rebuilt for Python 3.7
936122
936122
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-8
936122
- Bootstrap for Python 3.7
936122
936122
* Thu Feb 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-7
936122
- Add if conditionals around pyxattr
936122
936122
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.8.1-6
936122
- Update Python 2 dependency declarations to new packaging standards
936122
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
936122
936122
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-5
936122
- Switch to %%ldconfig_scriptlets
936122
936122
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-4
936122
- Use better Obsoletes for platform-python
936122
936122
* Sat Nov 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-3
936122
- Fix typo in Obsoletes
936122
936122
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-2
936122
- Remove platform-python subpackage
936122
936122
* Fri Sep 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.1-1
936122
- Update to 1.8.1
936122
936122
* Fri Sep 01 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.0-2
936122
- Disable platform python on old releases
936122
936122
* Wed Aug 23 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.0-1
936122
- Update to 1.8.0
936122
936122
* Fri Aug 18 2017 Tomas Orsava <torsava@redhat.com> - 1.7.20-9
936122
- Added Patch 0 to fix a tearDown failure in the test suite
936122
936122
* Thu Aug 10 2017 Petr Viktorin <pviktori@redhat.com> - 1.7.20-8
936122
- Add subpackage for platform-python (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
936122
936122
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.20-7
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
936122
936122
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.20-6
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
936122
936122
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.20-5
936122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
936122
936122
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.7.20-4
936122
- Enable tests
936122
936122
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.7.20-3
936122
- Rebuild for Python 3.6
936122
- Disable tests for now
936122
936122
* Sat Dec 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.20-2
936122
- Rebuild for gpgme 1.18
936122
936122
* Thu Aug 25 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 1.7.20-1
936122
- Tests: Disable test_download_packages_with_resume_02 test
936122
- Update build utils to match new fedora spec schema
936122
936122
* Wed Aug 24 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 1.7.19-1
936122
- Add yumrecord substitution mechanism (mluscon)
936122
- Fix a memory leak in signature verification (cwalters)
936122
936122
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.18-4
936122
- Add %%{?system_python_abi}
936122
- Trim ton of changelog
936122
936122
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.18-3
936122
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
936122
936122
* Thu Apr 07 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.18-2
936122
- Adopt to new packaging guidelines
936122
- Cleanups in spec file
936122
936122
* Fri Mar  4 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 1.7.18-1
936122
- Add new option LRO_FTPUSEEPSV
936122
- Update AUTHORS
936122
- downloader prepare_next_transfer(): simplify long line
936122
- downloader prepare_next_transfer(): add missing error check
936122
- downloader prepare_next_transfer(): cleanup error path
936122
- downloader prepare_next_transfer() - fix memory leak on error path (Alan Jenkins)
936122
- handle: Don't use proxy cache for downloads of metalink/mirrorlist
936122
- handle: Don't set CURLOPT_HTTPHEADER into curl handle immediately when specified
936122
- downloader: Implement logic for no_cache param in LrDownloadTarget (RhBug: 1297762)
936122
- Add no_cache param to LrDownloadTarget and lr_downloadtarget_new()
936122
- New test: always try to download from the fastest mirror (Alexander Todorov)
936122
- Doc: Fixed minor doc typo (Philippe Ombredanne)
936122
- Doc: Other updates
936122
- Doc: Update default values in doc to reflect reality