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