|
Igor Gnatenko |
98638e |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
Tomas Mlcoch |
8ac931 |
# Do not build bindings for python3 for RHEL <= 7
|
|
Tomas Mlcoch |
8ac931 |
%bcond_with python3
|
|
Tomas Mlcoch |
000d69 |
# python-flask is not in RHEL7
|
|
Tomas Mlcoch |
000d69 |
%bcond_with tests
|
|
Tomas Mlcoch |
8ac931 |
%else
|
|
Tomas Mlcoch |
8ac931 |
%bcond_without python3
|
|
Tomas Mlcoch |
000d69 |
%bcond_without tests
|
|
Tomas Mlcoch |
8ac931 |
%endif
|
|
Tomas Mlcoch |
8ac931 |
|
|
Tomas Mlcoch |
8ac931 |
Name: librepo
|
|
Tomas Mlcoch |
19670f |
Version: 1.7.18
|
|
Igor Gnatenko |
72804d |
Release: 4%{?dist}
|
|
Tomas Mlcoch |
8ac931 |
Summary: Repodata downloading library
|
|
Tomas Mlcoch |
8ac931 |
|
|
Tomas Mlcoch |
97216d |
License: LGPLv2+
|
|
Igor Gnatenko |
98638e |
URL: https://github.com/rpm-software-management/librepo
|
|
Igor Gnatenko |
98638e |
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: cmake
|
|
Igor Gnatenko |
98638e |
BuildRequires: gcc
|
|
Igor Gnatenko |
98638e |
BuildRequires: check-devel
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: doxygen
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: expat-devel
|
|
Tomas Mlcoch |
3c7e37 |
BuildRequires: glib2-devel >= 2.26.0
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: gpgme-devel
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: libattr-devel
|
|
Tomas Mlcoch |
a35685 |
BuildRequires: libcurl-devel >= 7.19.0
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: openssl-devel
|
|
Tomas Mlcoch |
e8713e |
|
|
Tomas Mlcoch |
e989a8 |
%description
|
|
Tomas Mlcoch |
e989a8 |
A library providing C and Python (libcURL like) API to downloading repository
|
|
Tomas Mlcoch |
e989a8 |
metadata.
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
e989a8 |
%package devel
|
|
Tomas Mlcoch |
8ac931 |
Summary: Repodata downloading library
|
|
Tomas Mlcoch |
8ac931 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
e989a8 |
%description devel
|
|
Tomas Mlcoch |
e989a8 |
Development files for librepo.
|
|
Tomas Mlcoch |
e989a8 |
|
|
Igor Gnatenko |
98638e |
%package -n python2-%{name}
|
|
Tomas Mlcoch |
8ac931 |
Summary: Python bindings for the librepo library
|
|
Igor Gnatenko |
98638e |
%{?python_provide:%python_provide python2-%{name}}
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: pygpgme
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: python2-devel
|
|
Tomas Mlcoch |
000d69 |
%if %{with tests}
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: python-flask
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: python-nose
|
|
Tomas Mlcoch |
000d69 |
%endif
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: python-sphinx
|
|
Tomas Mlcoch |
a33831 |
BuildRequires: pyxattr
|
|
Tomas Mlcoch |
8ac931 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Tomas Mlcoch |
e989a8 |
|
|
Igor Gnatenko |
98638e |
%description -n python2-%{name}
|
|
Igor Gnatenko |
98638e |
Python 2 bindings for the librepo library.
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
8ac931 |
%if %{with python3}
|
|
Igor Gnatenko |
98638e |
%package -n python3-%{name}
|
|
Tomas Mlcoch |
e8713e |
Summary: Python 3 bindings for the librepo library
|
|
Igor Gnatenko |
72804d |
%{?system_python_abi}
|
|
Igor Gnatenko |
98638e |
%{?python_provide:%python_provide python3-%{name}}
|
|
Tomas Mlcoch |
8ac931 |
BuildRequires: python3-pygpgme
|
|
Tomas Mlcoch |
e8713e |
BuildRequires: python3-devel
|
|
Igor Gnatenko |
98638e |
%if %{with tests}
|
|
Tomas Mlcoch |
e8713e |
BuildRequires: python3-flask
|
|
Tomas Mlcoch |
e8713e |
BuildRequires: python3-nose
|
|
Igor Gnatenko |
98638e |
%endif
|
|
Tomas Mlcoch |
e8713e |
BuildRequires: python3-sphinx
|
|
Tomas Mlcoch |
a33831 |
BuildRequires: python3-pyxattr
|
|
Tomas Mlcoch |
e8713e |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Tomas Mlcoch |
e8713e |
|
|
Igor Gnatenko |
98638e |
%description -n python3-%{name}
|
|
Tomas Mlcoch |
e8713e |
Python 3 bindings for the librepo library.
|
|
Tomas Mlcoch |
8ac931 |
%endif
|
|
Tomas Mlcoch |
e8713e |
|
|
Tomas Mlcoch |
e989a8 |
%prep
|
|
Igor Gnatenko |
98638e |
%autosetup -n %{name}-%{name}-%{version}
|
|
Tomas Mlcoch |
e989a8 |
|
|
Igor Gnatenko |
98638e |
mkdir build build-py3
|
|
Tomas Mlcoch |
e8713e |
|
|
Tomas Mlcoch |
e989a8 |
%build
|
|
Igor Gnatenko |
98638e |
pushd build
|
|
Igor Gnatenko |
98638e |
%cmake ..
|
|
Igor Gnatenko |
98638e |
%make_build
|
|
Igor Gnatenko |
98638e |
popd
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
8ac931 |
%if %{with python3}
|
|
Igor Gnatenko |
98638e |
pushd build-py3
|
|
Igor Gnatenko |
98638e |
%cmake -DPYTHON_DESIRED:str=3 ..
|
|
Igor Gnatenko |
98638e |
%make_build
|
|
Tomas Mlcoch |
e8713e |
popd
|
|
Tomas Mlcoch |
8ac931 |
%endif
|
|
Tomas Mlcoch |
e8713e |
|
|
Tomas Mlcoch |
000d69 |
%if %{with tests}
|
|
Igor Gnatenko |
98638e |
%check
|
|
Igor Gnatenko |
98638e |
pushd build
|
|
Igor Gnatenko |
98638e |
ctest -VV
|
|
Igor Gnatenko |
98638e |
popd
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
8ac931 |
%if %{with python3}
|
|
Igor Gnatenko |
98638e |
pushd build-py3
|
|
Igor Gnatenko |
98638e |
ctest -VV
|
|
Tomas Mlcoch |
e8713e |
popd
|
|
Tomas Mlcoch |
8ac931 |
%endif
|
|
Tomas Mlcoch |
000d69 |
%endif
|
|
Tomas Mlcoch |
e8713e |
|
|
Tomas Mlcoch |
e989a8 |
%install
|
|
Igor Gnatenko |
98638e |
pushd build
|
|
Igor Gnatenko |
98638e |
%make_install
|
|
Igor Gnatenko |
98638e |
popd
|
|
Tomas Mlcoch |
8ac931 |
%if %{with python3}
|
|
Igor Gnatenko |
98638e |
pushd build-py3
|
|
Igor Gnatenko |
98638e |
%make_install
|
|
Tomas Mlcoch |
e8713e |
popd
|
|
Tomas Mlcoch |
8ac931 |
%endif
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
e989a8 |
%post -p /sbin/ldconfig
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
e989a8 |
%postun -p /sbin/ldconfig
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
e989a8 |
%files
|
|
Igor Gnatenko |
98638e |
%license COPYING
|
|
Igor Gnatenko |
98638e |
%doc README.md
|
|
Igor Gnatenko |
98638e |
%{_libdir}/%{name}.so.*
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
e989a8 |
%files devel
|
|
Igor Gnatenko |
98638e |
%{_libdir}/%{name}.so
|
|
Igor Gnatenko |
98638e |
%{_libdir}/pkgconfig/%{name}.pc
|
|
Igor Gnatenko |
98638e |
%{_includedir}/%{name}/
|
|
Tomas Mlcoch |
e989a8 |
|
|
Igor Gnatenko |
98638e |
%files -n python2-%{name}
|
|
Igor Gnatenko |
98638e |
%{python2_sitearch}/%{name}/
|
|
Tomas Mlcoch |
e989a8 |
|
|
Tomas Mlcoch |
8ac931 |
%if %{with python3}
|
|
Igor Gnatenko |
98638e |
%files -n python3-%{name}
|
|
Igor Gnatenko |
98638e |
%{python3_sitearch}/%{name}/
|
|
Tomas Mlcoch |
8ac931 |
%endif
|
|
Tomas Mlcoch |
e8713e |
|
|
Tomas Mlcoch |
e989a8 |
%changelog
|
|
Igor Gnatenko |
72804d |
* Tue Aug 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.18-4
|
|
Igor Gnatenko |
72804d |
- Add %%{?system_python_abi}
|
|
Igor Gnatenko |
72804d |
- Trim ton of changelog
|
|
Igor Gnatenko |
72804d |
|
|
Fedora Release Engineering |
8d6e57 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.18-3
|
|
Fedora Release Engineering |
8d6e57 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
Fedora Release Engineering |
8d6e57 |
|
|
Igor Gnatenko |
98638e |
* Thu Apr 07 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.7.18-2
|
|
Igor Gnatenko |
98638e |
- Adopt to new packaging guidelines
|
|
Igor Gnatenko |
98638e |
- Cleanups in spec file
|
|
Igor Gnatenko |
98638e |
|
|
Tomas Mlcoch |
19670f |
* Fri Mar 4 2016 Tomas Mlcoch <tmlcoch@redhat.com> - 1.7.18-1
|
|
Tomas Mlcoch |
19670f |
- Add new option LRO_FTPUSEEPSV
|
|
Tomas Mlcoch |
19670f |
- Update AUTHORS
|
|
Tomas Mlcoch |
19670f |
- downloader prepare_next_transfer(): simplify long line
|
|
Tomas Mlcoch |
19670f |
- downloader prepare_next_transfer(): add missing error check
|
|
Tomas Mlcoch |
19670f |
- downloader prepare_next_transfer(): cleanup error path
|
|
Tomas Mlcoch |
19670f |
- downloader prepare_next_transfer() - fix memory leak on error path (Alan Jenkins)
|
|
Tomas Mlcoch |
19670f |
- handle: Don't use proxy cache for downloads of metalink/mirrorlist
|
|
Tomas Mlcoch |
19670f |
- handle: Don't set CURLOPT_HTTPHEADER into curl handle immediately when specified
|
|
Tomas Mlcoch |
19670f |
- downloader: Implement logic for no_cache param in LrDownloadTarget (RhBug: 1297762)
|
|
Tomas Mlcoch |
19670f |
- Add no_cache param to LrDownloadTarget and lr_downloadtarget_new()
|
|
Tomas Mlcoch |
19670f |
- New test: always try to download from the fastest mirror (Alexander Todorov)
|
|
Tomas Mlcoch |
19670f |
- Doc: Fixed minor doc typo (Philippe Ombredanne)
|
|
Tomas Mlcoch |
19670f |
- Doc: Other updates
|
|
Tomas Mlcoch |
19670f |
- Doc: Update default values in doc to reflect reality
|