From f0041a4e4d63665c9e3a8fbb8b6f5f09bbe13c2a Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Oct 15 2020 15:25:04 +0000 Subject: RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/librepo#23a1e543ad4919a3e063f13be2e812e1387d8f19 --- diff --git a/.gitignore b/.gitignore index e69de29..210234e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,59 @@ +/librepo-714e828.tar.xz +/librepo-b3c3323.tar.xz +/librepo-720d68d.tar.xz +/librepo-6df340e.tar.xz +/librepo-55c1c08.tar.xz +/librepo-cd5291e.tar.xz +/librepo-57f5f9a.tar.xz +/librepo-024ef3d.tar.xz +/librepo-b28e796.tar.xz +/librepo-29872d4.tar.xz +/librepo-c4ee6d2.tar.xz +/librepo-4a8f93b.tar.xz +/librepo-bc2c8a5.tar.xz +/librepo-09b3052.tar.xz +/librepo-9ea2f0c.tar.xz +/librepo-a65e3d3.tar.xz +/librepo-ef864f0.tar.xz +/librepo-9106f73.tar.xz +/librepo-8a1bac3.tar.xz +/librepo-2b2c02f.tar.xz +/librepo-4ed3868.tar.xz +/librepo-d09298c.tar.xz +/librepo-cebcef0.tar.xz +/librepo-5585ff7.tar.xz +/librepo-9226730.tar.xz +/librepo-8f10101.tar.xz +/librepo-f9ca1a4.tar.xz +/librepo-22581e4.tar.xz +/librepo-1639724.tar.xz +/librepo-0c6d257.tar.xz +/librepo-3108931.tar.xz +/librepo-d9fb706.tar.xz +/librepo-a064e9a.tar.xz +/librepo-116b875.tar.xz +/librepo-8f931e8.tar.xz +/librepo-d970c44.tar.xz +/librepo-6f8e5b0.tar.xz +/librepo-d9bed0d.tar.xz +/librepo-7ba0722.tar.xz +/librepo-68724dc.tar.xz +/librepo-1.7.18.tar.gz +/librepo-1.7.19.tar.gz +/librepo-1.7.20.tar.gz +/librepo-1.8.0.tar.gz +/librepo-1.8.1.tar.gz +/librepo-1.9.0.tar.gz +/librepo-1.9.1.tar.gz +/librepo-1.9.2.tar.gz +/librepo-1.9.4.tar.gz +/librepo-1.9.5.tar.gz +/librepo-1.9.6.tar.gz +/librepo-1.10.2.tar.gz +/librepo-1.10.5.tar.gz +/librepo-1.10.6.tar.gz +/librepo-1.11.0.tar.gz +/librepo-1.11.1.tar.gz +/librepo-1.11.3.tar.gz +/librepo-1.12.0.tar.gz +/librepo-1.12.1.tar.gz diff --git a/librepo.spec b/librepo.spec new file mode 100644 index 0000000..5e43d27 --- /dev/null +++ b/librepo.spec @@ -0,0 +1,409 @@ +%global libcurl_version 7.28.0 + +%define __cmake_in_source_build 1 + +%if 0%{?rhel} && 0%{?rhel} <= 7 +# Do not build bindings for python3 for RHEL <= 7 +%bcond_with python3 +# python-flask is not in RHEL7 +%bcond_with pythontests +%else +%bcond_without python3 +%bcond_without pythontests +%endif + +%if 0%{?rhel} > 7 || 0%{?fedora} > 29 +# Do not build bindings for python2 for RHEL > 7 and Fedora > 29 +%bcond_with python2 +%else +%bcond_without python2 +%endif + +%if 0%{?rhel} +%bcond_with zchunk +%else +%bcond_without zchunk +%endif + +%global dnf_conflict 2.8.8 + +Name: librepo +Version: 1.12.1 +Release: 1%{?dist} +Summary: Repodata downloading library + +License: LGPLv2+ +URL: https://github.com/rpm-software-management/librepo +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: check-devel +BuildRequires: doxygen +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: gpgme-devel +BuildRequires: libattr-devel +BuildRequires: libcurl-devel >= %{libcurl_version} +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(libcrypto) +BuildRequires: pkgconfig(openssl) +%if %{with zchunk} +BuildRequires: pkgconfig(zck) >= 0.9.11 +%endif +Requires: libcurl%{?_isa} >= %{libcurl_version} + +%description +A library providing C and Python (libcURL like) API to downloading repository +metadata. + +%package devel +Summary: Repodata downloading library +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files for librepo. + +%if %{with python2} +%package -n python2-%{name} +Summary: Python bindings for the librepo library +%{?python_provide:%python_provide python2-%{name}} +%if 0%{?rhel} && 0%{?rhel} <= 7 +BuildRequires: python-sphinx +%else +BuildRequires: python2-sphinx +%endif +BuildRequires: python2-devel +%if %{with pythontests} +BuildRequires: python2-flask +BuildRequires: python2-nose +BuildRequires: python2-requests +%if (0%{?rhel} && 0%{?rhel} <= 7) +BuildRequires: pyxattr +BuildRequires: pygpgme +%else +BuildRequires: python2-pyxattr +BuildRequires: python2-gpg +%endif +%endif +# endif with pythontests +Requires: %{name}%{?_isa} = %{version}-%{release} +Conflicts: python2-dnf < %{dnf_conflict} + +%description -n python2-%{name} +Python 2 bindings for the librepo library. +%endif + +%if %{with python3} +%package -n python3-%{name} +Summary: Python 3 bindings for the librepo library +%{?python_provide:%python_provide python3-%{name}} +BuildRequires: python3-devel +%if %{with pythontests} +BuildRequires: python3-gpg +BuildRequires: python3-flask +BuildRequires: python3-nose +BuildRequires: python3-pyxattr +BuildRequires: python3-requests +%endif +BuildRequires: python3-sphinx +Requires: %{name}%{?_isa} = %{version}-%{release} +# Obsoletes Fedora 27 package +Obsoletes: platform-python-%{name} < %{version}-%{release} +Conflicts: python3-dnf < %{dnf_conflict} + +%description -n python3-%{name} +Python 3 bindings for the librepo library. +%endif + +%prep +%autosetup -p1 + +mkdir build-py2 +mkdir build-py3 + +%build +%if %{with python2} +pushd build-py2 + %cmake -DPYTHON_DESIRED:FILEPATH=%{__python2} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} -DENABLE_PYTHON_TESTS=%{?with_pythontests:ON}%{!?with_pythontests:OFF} .. + %make_build +popd +%endif + +%if %{with python3} +pushd build-py3 + %cmake -DPYTHON_DESIRED:FILEPATH=%{__python3} %{!?with_zchunk:-DWITH_ZCHUNK=OFF} -DENABLE_PYTHON_TESTS=%{?with_pythontests:ON}%{!?with_pythontests:OFF} .. + %make_build +popd +%endif + +%check +%if %{with python2} +pushd build-py2 + #ctest -VV + make ARGS="-V" test +popd +%endif + +%if %{with python3} +pushd build-py3 + #ctest -VV + make ARGS="-V" test +popd +%endif + +%install +%if %{with python2} +pushd build-py2 + %make_install +popd +%endif + +%if %{with python3} +pushd build-py3 + %make_install +popd +%endif + +%if 0%{?rhel} && 0%{?rhel} <= 7 +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig +%else +%ldconfig_scriptlets +%endif + +%files +%license COPYING +%doc README.md +%{_libdir}/%{name}.so.* + +%files devel +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc +%{_includedir}/%{name}/ + +%if %{with python2} +%files -n python2-%{name} +%{python2_sitearch}/%{name}/ +%endif + +%if %{with python3} +%files -n python3-%{name} +%{python3_sitearch}/%{name}/ +%endif + +%changelog +* Wed Oct 07 2020 Nicola Sella - 1.12.1-1 +* Update to 1.12.1 +- Validate path read from repomd.xml (RhBug:1868639) + +* Fri Aug 07 2020 Nicola Sella - 1.12.0-4 +spec: Fix building with new cmake macros + +* Sat Aug 01 2020 Fedora Release Engineering - 1.12.0-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 02 2020 Nicola Sella - 1.12.0-1 +- Update to 1.12.0 +- Decode package URL when using for local filename (RhBug:1817130) +- Fix memory leak in lr_download_metadata() and lr_yum_download_remote() +- Download sources work when at least one of specified is working (RhBug:1775184) +- Enable building on OSX + +* Mon May 25 2020 Miro Hrončok - 1.11.3-3 +- Rebuilt for Python 3.9 + +* Fri May 22 2020 Miro Hrončok - 1.11.3-2 +- Bootstrap for Python 3.9 + +* Wed Apr 01 2020 Ales Matej - 1.11.3-1 +- Update to 1.11.3 +- Prefer mirrorlist/metalink over baseurl (RhBug:1775184) + +* Mon Feb 10 2020 Ales Matej - 1.11.1-4 +- Fix calling Python API without holding GIL (RhBug:1788918) + +* Wed Feb 05 2020 Lukas Slebodnik - 1.11.1-3 +- Do not unref LrErr_Exception on exit (RhBug:1778854) + +* Wed Jan 29 2020 Fedora Release Engineering - 1.11.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Dec 09 2019 Pavla Kratochvilova - 1.11.1-1 +- Update to 1.11.1 +- Create a directory for gpg sockets in /run/user/ (RhBug:1769831,1771012) + +* Wed Nov 06 2019 Pavla Kratochvilova - 1.11.0-1 +- Update to 1.11.0 +- Retry mirrorlist/metalink downloads several times (RhBug:1741931) +- Improve variable substitutions in URLs and add ${variable} support + +* Tue Oct 01 2019 Ales Matej - 1.10.6-1 +- Update to 1.10.6 +- Imporove handling of xattr to re-download damadged files (RhBug:1690894) +- Rephrase repository GPG check error message (RhBug:1741442) +- Add sleep before next try when all mirrors were tried (RhBug:1741931) +- Raise logging level of error messages (RhBug:1737709) + +* Sun Aug 18 2019 Miro Hrončok - 1.10.5-2 +- Rebuilt for Python 3.8 + +* Mon Jul 29 2019 Pavla Kratochvilova - 1.10.5-1 +- Update to 1.10.5 +- Exit gpg-agent after repokey import (RhBug:1650266) +- Handle webservers that don't support ranges when downloading zck +- Define LRO_SUPPORTS_CACHEDIR only with zchunk (RhBug:1726141) +- Allow to use mirrors multiple times for a target (RhBug:1678588) +- Allow to try baseurl multiple times (RhBug:1678588) + +* Thu Jul 25 2019 Fedora Release Engineering - 1.10.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 23 2019 Jonathan Dieter - 1.10.2-2 +- Add upstream patch to make sure to check next transfer if current zck + transfer already exists + +* Mon May 20 2019 Pavla Kratochvilova - 1.10.2-1 +- Update to 1.10.2 +- Add an option to preserve timestamps of the downloaded files (RhBug:1688537) +- librepo: append the '?' part of repo URL after the path +- Fix librepo isn't able to load zchunk files from next server on failure + +* Tue Apr 02 2019 Pavla Kratochvilova - 1.9.6-2 +- Backport patch to fix segfault when using zchunk metadata + +* Wed Mar 27 2019 Pavla Kratochvilova - 1.9.6-1 +- Update to 1.9.6 +- Fix memory leaks +- Fix CPU usage when downloading packages (RhBug:1691856) + +* Mon Mar 11 2019 Pavla Kratochvilova - 1.9.5-1 +- Update to 1.9.5 +- Reduce download delays + +* Wed Feb 13 2019 Pavla Kratochvilova - 1.9.4-1 +- Update to 1.9.4-1 +- Add zchunk support + +* Fri Feb 01 2019 Fedora Release Engineering - 1.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jan 28 2019 Miro Hrončok - 1.9.2-2 +- Subpackage python2-librepo has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Tue Sep 25 2018 Jaroslav Mracek - 1.9.2-1 +- Update to 1.9.2 +- Fix major performance regression with libcurl-7.61.1 + +* Mon Aug 13 2018 Daniel Mach - 1.9.1-1 +- Update to 1.9.1 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.9.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 29 2018 Jaroslav Mracek - 1.9.0-3 +- Rebuilt for Python 3.7 + +* Tue Jun 26 2018 Igor Gnatenko - 1.9.0-2 +- Fix ldconfig_scriptlets once more + +* Tue Jun 26 2018 Jaroslav Mracek - 1.9.0-1 +- Update to 1.9.0 + +* Mon Jun 18 2018 Miro Hrončok - 1.8.1-9 +- Rebuilt for Python 3.7 + +* Fri Jun 15 2018 Miro Hrončok - 1.8.1-8 +- Bootstrap for Python 3.7 + +* Thu Feb 08 2018 Igor Gnatenko - 1.8.1-7 +- Add if conditionals around pyxattr + +* Wed Feb 07 2018 Iryna Shcherbina - 1.8.1-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Jan 31 2018 Igor Gnatenko - 1.8.1-5 +- Switch to %%ldconfig_scriptlets + +* Tue Nov 07 2017 Igor Gnatenko - 1.8.1-4 +- Use better Obsoletes for platform-python + +* Sat Nov 04 2017 Igor Gnatenko - 1.8.1-3 +- Fix typo in Obsoletes + +* Fri Nov 03 2017 Igor Gnatenko - 1.8.1-2 +- Remove platform-python subpackage + +* Fri Sep 15 2017 Igor Gnatenko - 1.8.1-1 +- Update to 1.8.1 + +* Fri Sep 01 2017 Igor Gnatenko - 1.8.0-2 +- Disable platform python on old releases + +* Wed Aug 23 2017 Igor Gnatenko - 1.8.0-1 +- Update to 1.8.0 + +* Fri Aug 18 2017 Tomas Orsava - 1.7.20-9 +- Added Patch 0 to fix a tearDown failure in the test suite + +* Thu Aug 10 2017 Petr Viktorin - 1.7.20-8 +- Add subpackage for platform-python (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack) + +* Thu Aug 03 2017 Fedora Release Engineering - 1.7.20-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.7.20-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.7.20-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Charalampos Stratakis - 1.7.20-4 +- Enable tests + +* Tue Dec 13 2016 Charalampos Stratakis - 1.7.20-3 +- Rebuild for Python 3.6 +- Disable tests for now + +* Sat Dec 10 2016 Igor Gnatenko - 1.7.20-2 +- Rebuild for gpgme 1.18 + +* Thu Aug 25 2016 Tomas Mlcoch - 1.7.20-1 +- Tests: Disable test_download_packages_with_resume_02 test +- Update build utils to match new fedora spec schema + +* Wed Aug 24 2016 Tomas Mlcoch - 1.7.19-1 +- Add yumrecord substitution mechanism (mluscon) +- Fix a memory leak in signature verification (cwalters) + +* Tue Aug 09 2016 Igor Gnatenko - 1.7.18-4 +- Add %%{?system_python_abi} +- Trim ton of changelog + +* Tue Jul 19 2016 Fedora Release Engineering - 1.7.18-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Apr 07 2016 Igor Gnatenko - 1.7.18-2 +- Adopt to new packaging guidelines +- Cleanups in spec file + +* Fri Mar 4 2016 Tomas Mlcoch - 1.7.18-1 +- Add new option LRO_FTPUSEEPSV +- Update AUTHORS +- downloader prepare_next_transfer(): simplify long line +- downloader prepare_next_transfer(): add missing error check +- downloader prepare_next_transfer(): cleanup error path +- downloader prepare_next_transfer() - fix memory leak on error path (Alan Jenkins) +- handle: Don't use proxy cache for downloads of metalink/mirrorlist +- handle: Don't set CURLOPT_HTTPHEADER into curl handle immediately when specified +- downloader: Implement logic for no_cache param in LrDownloadTarget (RhBug: 1297762) +- Add no_cache param to LrDownloadTarget and lr_downloadtarget_new() +- New test: always try to download from the fastest mirror (Alexander Todorov) +- Doc: Fixed minor doc typo (Philippe Ombredanne) +- Doc: Other updates +- Doc: Update default values in doc to reflect reality diff --git a/sources b/sources new file mode 100644 index 0000000..c603d5b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (librepo-1.12.1.tar.gz) = eff4eaa5206e6cbe13b253d7cc37b5a6085e05c807a56a75ad25f9b4c4035bf564336292bdea35d83d80e2953eeac299b7336f8dc485eed71480abfec6bcbe69