2016-04-07 12:21:46 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
2014-03-31 11:07:51 +00:00
|
|
|
# Do not build bindings for python3 for RHEL <= 7
|
|
|
|
%bcond_with python3
|
2015-05-12 10:58:53 +00:00
|
|
|
# python-flask is not in RHEL7
|
|
|
|
%bcond_with tests
|
2014-03-31 11:07:51 +00:00
|
|
|
%else
|
|
|
|
%bcond_without python3
|
2016-12-13 22:15:04 +00:00
|
|
|
%bcond_without tests
|
2014-03-31 11:07:51 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: librepo
|
2017-09-15 06:20:02 +00:00
|
|
|
Version: 1.8.1
|
2018-06-18 12:42:42 +00:00
|
|
|
Release: 9%{?dist}
|
2014-03-31 11:07:51 +00:00
|
|
|
Summary: Repodata downloading library
|
|
|
|
|
2014-06-02 11:22:35 +00:00
|
|
|
License: LGPLv2+
|
2016-04-07 12:21:46 +00:00
|
|
|
URL: https://github.com/rpm-software-management/librepo
|
2017-08-23 12:31:50 +00:00
|
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
2017-08-18 15:08:27 +00:00
|
|
|
|
2014-03-31 11:07:51 +00:00
|
|
|
BuildRequires: cmake
|
2016-04-07 12:21:46 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: check-devel
|
2014-03-31 11:07:51 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: expat-devel
|
2015-09-25 13:20:31 +00:00
|
|
|
BuildRequires: glib2-devel >= 2.26.0
|
2014-03-31 11:07:51 +00:00
|
|
|
BuildRequires: gpgme-devel
|
|
|
|
BuildRequires: libattr-devel
|
2014-12-19 14:44:01 +00:00
|
|
|
BuildRequires: libcurl-devel >= 7.19.0
|
2014-03-31 11:07:51 +00:00
|
|
|
BuildRequires: openssl-devel
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2013-03-14 13:42:47 +00:00
|
|
|
%description
|
|
|
|
A library providing C and Python (libcURL like) API to downloading repository
|
|
|
|
metadata.
|
|
|
|
|
|
|
|
%package devel
|
2014-03-31 11:07:51 +00:00
|
|
|
Summary: Repodata downloading library
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-03-14 13:42:47 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for librepo.
|
|
|
|
|
2016-04-07 12:21:46 +00:00
|
|
|
%package -n python2-%{name}
|
2014-03-31 11:07:51 +00:00
|
|
|
Summary: Python bindings for the librepo library
|
2016-04-07 12:21:46 +00:00
|
|
|
%{?python_provide:%python_provide python2-%{name}}
|
2018-02-07 04:36:13 +00:00
|
|
|
BuildRequires: python2-pygpgme
|
2014-03-31 11:07:51 +00:00
|
|
|
BuildRequires: python2-devel
|
2015-05-12 10:58:53 +00:00
|
|
|
%if %{with tests}
|
2018-02-07 04:36:13 +00:00
|
|
|
BuildRequires: python2-flask
|
|
|
|
BuildRequires: python2-nose
|
2015-05-12 10:58:53 +00:00
|
|
|
%endif
|
2018-02-07 04:36:13 +00:00
|
|
|
BuildRequires: python2-sphinx
|
2018-02-08 14:08:13 +00:00
|
|
|
%if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} <= 27)
|
2018-02-08 14:07:37 +00:00
|
|
|
BuildRequires: pyxattr
|
|
|
|
%else
|
2018-02-07 04:36:13 +00:00
|
|
|
BuildRequires: python2-pyxattr
|
2018-02-08 14:07:37 +00:00
|
|
|
%endif
|
2014-03-31 11:07:51 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2016-04-07 12:21:46 +00:00
|
|
|
%description -n python2-%{name}
|
|
|
|
Python 2 bindings for the librepo library.
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2014-03-31 11:07:51 +00:00
|
|
|
%if %{with python3}
|
2016-04-07 12:21:46 +00:00
|
|
|
%package -n python3-%{name}
|
2013-10-03 12:09:54 +00:00
|
|
|
Summary: Python 3 bindings for the librepo library
|
2016-04-07 12:21:46 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
2014-03-31 11:07:51 +00:00
|
|
|
BuildRequires: python3-pygpgme
|
2013-10-03 12:09:54 +00:00
|
|
|
BuildRequires: python3-devel
|
2016-04-07 12:21:46 +00:00
|
|
|
%if %{with tests}
|
2013-10-03 12:09:54 +00:00
|
|
|
BuildRequires: python3-flask
|
|
|
|
BuildRequires: python3-nose
|
2016-04-07 12:21:46 +00:00
|
|
|
%endif
|
2013-10-03 12:09:54 +00:00
|
|
|
BuildRequires: python3-sphinx
|
2015-01-16 15:09:18 +00:00
|
|
|
BuildRequires: python3-pyxattr
|
2013-10-03 12:09:54 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2017-11-07 11:06:37 +00:00
|
|
|
Obsoletes: platform-python-%{name} < %{version}-%{release}
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2016-04-07 12:21:46 +00:00
|
|
|
%description -n python3-%{name}
|
2013-10-03 12:09:54 +00:00
|
|
|
Python 3 bindings for the librepo library.
|
2014-03-31 11:07:51 +00:00
|
|
|
%endif
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2013-03-14 13:42:47 +00:00
|
|
|
%prep
|
2017-08-23 12:31:50 +00:00
|
|
|
%autosetup -p1
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2017-11-03 21:15:22 +00:00
|
|
|
mkdir build build-py3
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2013-03-14 13:42:47 +00:00
|
|
|
%build
|
2016-04-07 12:21:46 +00:00
|
|
|
pushd build
|
|
|
|
%cmake ..
|
|
|
|
%make_build
|
|
|
|
popd
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2014-03-31 11:07:51 +00:00
|
|
|
%if %{with python3}
|
2016-04-07 12:21:46 +00:00
|
|
|
pushd build-py3
|
|
|
|
%cmake -DPYTHON_DESIRED:str=3 ..
|
|
|
|
%make_build
|
2013-10-03 12:09:54 +00:00
|
|
|
popd
|
2014-03-31 11:07:51 +00:00
|
|
|
%endif
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2015-05-12 10:58:53 +00:00
|
|
|
%if %{with tests}
|
2016-04-07 12:21:46 +00:00
|
|
|
%check
|
|
|
|
pushd build
|
2016-08-25 07:07:39 +00:00
|
|
|
#ctest -VV
|
|
|
|
make ARGS="-V" test
|
2016-04-07 12:21:46 +00:00
|
|
|
popd
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2014-03-31 11:07:51 +00:00
|
|
|
%if %{with python3}
|
2016-04-07 12:21:46 +00:00
|
|
|
pushd build-py3
|
2016-08-25 07:07:39 +00:00
|
|
|
#ctest -VV
|
|
|
|
make ARGS="-V" test
|
2013-10-03 12:09:54 +00:00
|
|
|
popd
|
2017-11-03 21:15:22 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2013-03-14 13:42:47 +00:00
|
|
|
%install
|
2016-04-07 12:21:46 +00:00
|
|
|
pushd build
|
|
|
|
%make_install
|
|
|
|
popd
|
2014-03-31 11:07:51 +00:00
|
|
|
%if %{with python3}
|
2016-04-07 12:21:46 +00:00
|
|
|
pushd build-py3
|
|
|
|
%make_install
|
2013-10-03 12:09:54 +00:00
|
|
|
popd
|
2014-03-31 11:07:51 +00:00
|
|
|
%endif
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2018-01-31 16:23:39 +00:00
|
|
|
%ldconfig_scriptlets
|
2013-03-14 13:42:47 +00:00
|
|
|
|
|
|
|
%files
|
2016-04-07 12:21:46 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_libdir}/%{name}.so.*
|
2013-03-14 13:42:47 +00:00
|
|
|
|
|
|
|
%files devel
|
2016-04-07 12:21:46 +00:00
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_includedir}/%{name}/
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2016-04-07 12:21:46 +00:00
|
|
|
%files -n python2-%{name}
|
|
|
|
%{python2_sitearch}/%{name}/
|
2013-03-14 13:42:47 +00:00
|
|
|
|
2014-03-31 11:07:51 +00:00
|
|
|
%if %{with python3}
|
2016-04-07 12:21:46 +00:00
|
|
|
%files -n python3-%{name}
|
|
|
|
%{python3_sitearch}/%{name}/
|
2014-03-31 11:07:51 +00:00
|
|
|
%endif
|
2013-10-03 12:09:54 +00:00
|
|
|
|
2013-03-14 13:42:47 +00:00
|
|
|
%changelog
|
2018-06-18 12:42:42 +00:00
|
|
|
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-9
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-06-15 12:08:45 +00:00
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-8
|
|
|
|
- Bootstrap for Python 3.7
|
|
|
|
|
2018-02-08 14:07:37 +00:00
|
|
|
* Thu Feb 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-7
|
|
|
|
- Add if conditionals around pyxattr
|
|
|
|
|
2018-02-07 04:36:13 +00:00
|
|
|
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.8.1-6
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-01-31 16:23:39 +00:00
|
|
|
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-5
|
|
|
|
- Switch to %%ldconfig_scriptlets
|
|
|
|
|
2017-11-07 11:06:37 +00:00
|
|
|
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-4
|
|
|
|
- Use better Obsoletes for platform-python
|
|
|
|
|
2017-11-04 08:35:56 +00:00
|
|
|
* Sat Nov 04 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-3
|
|
|
|
- Fix typo in Obsoletes
|
|
|
|
|
2017-11-03 21:15:22 +00:00
|
|
|
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1-2
|
|
|
|
- Remove platform-python subpackage
|
|
|
|
|
2017-09-15 06:20:02 +00:00
|
|
|
* Fri Sep 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.1-1
|
|
|
|
- Update to 1.8.1
|
|
|
|
|
2017-09-01 10:21:19 +00:00
|
|
|
* Fri Sep 01 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.0-2
|
|
|
|
- Disable platform python on old releases
|
|
|
|
|
2017-08-23 12:31:50 +00:00
|
|
|
* Wed Aug 23 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.8.0-1
|
|
|
|
- Update to 1.8.0
|
|
|
|
|
2017-08-18 15:08:27 +00:00
|
|
|
* Fri Aug 18 2017 Tomas Orsava <torsava@redhat.com> - 1.7.20-9
|
|
|
|
- Added Patch 0 to fix a tearDown failure in the test suite
|
|
|
|
|
2017-08-15 12:39:17 +00:00
|
|
|
* Thu Aug 10 2017 Petr Viktorin <pviktori@redhat.com> - 1.7.20-8
|
|
|
|
- Add subpackage for platform-python (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-08-03 02:11:26 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.20-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 19:38:39 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.20-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 19:22:57 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.20-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 22:15:04 +00:00
|
|
|
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.7.20-4
|
|
|
|
- Enable tests
|
|
|
|
|
2016-12-13 10:42:27 +00:00
|
|
|
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.7.20-3
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
- Disable tests for now
|
|
|
|
|
2016-12-10 19:06:49 +00:00
|
|
|
* Sat Dec 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.20-2
|
|
|
|
- Rebuild for gpgme 1.18
|
|
|
|
|
2016-08-25 07:07:39 +00:00
|
|
|
* Thu Aug 25 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 1.7.20-1
|
|
|
|
- Tests: Disable test_download_packages_with_resume_02 test
|
|
|
|
- Update build utils to match new fedora spec schema
|
|
|
|
|
2016-08-24 10:40:29 +00:00
|
|
|
* Wed Aug 24 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 1.7.19-1
|
|
|
|
- Add yumrecord substitution mechanism (mluscon)
|
|
|
|
- Fix a memory leak in signature verification (cwalters)
|
|
|
|
|
2016-08-09 14:38:54 +00:00
|
|
|
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.18-4
|
|
|
|
- Add %%{?system_python_abi}
|
|
|
|
- Trim ton of changelog
|
|
|
|
|
2016-07-19 07:44:40 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.18-3
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-04-07 12:21:46 +00:00
|
|
|
* Thu Apr 07 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.18-2
|
|
|
|
- Adopt to new packaging guidelines
|
|
|
|
- Cleanups in spec file
|
|
|
|
|
2016-03-04 09:07:43 +00:00
|
|
|
* Fri Mar 4 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 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
|