94 lines
2.6 KiB
RPMSpec
94 lines
2.6 KiB
RPMSpec
%global libcurl_version 7.28.0
|
|
%global dnf_conflict 2.8.8
|
|
|
|
%bcond_without pythontests
|
|
%bcond_with zchunk
|
|
|
|
Name: librepo
|
|
Version: 1.12.0
|
|
Release: 2
|
|
Summary: Repodata downloading library
|
|
License: LGPLv2+
|
|
URL: https://github.com/rpm-software-management/librepo
|
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: backport-CVE-2020-14352-Validate-path-read-from-repomd.xml.patch
|
|
|
|
BuildRequires: cmake check-devel doxygen pkgconfig(glib-2.0) gcc
|
|
BuildRequires: libcurl-devel >= %{libcurl_version} pkgconfig(libxml-2.0)
|
|
BuildRequires: pkgconfig(openssl) gpgme-devel libattr-devel pkgconfig(libcrypto)
|
|
Requires: libcurl >= %{libcurl_version}
|
|
|
|
%description
|
|
A library providing C and Python (libcURL like) API to downloading repository
|
|
metadata.
|
|
|
|
%package devel
|
|
Summary: Repodata downloading library
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Development files for librepo.
|
|
|
|
%package -n python3-librepo
|
|
Summary: Python 3 bindings for the librepo library
|
|
%{?python_provide:%python_provide python3-%{name}}
|
|
BuildRequires: python3-devel python3-gpg python3-flask python3-nose
|
|
BuildRequires: python3-pyxattr python3-requests python3-sphinx
|
|
Requires: %{name} = %{version}-%{release}
|
|
Obsoletes: platform-python-%{name} < %{version}-%{release}
|
|
Conflicts: python3-dnf < %{dnf_conflict}
|
|
|
|
%description -n python3-%{name}
|
|
Python 3 bindings for the librepo library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
mkdir build-py3
|
|
|
|
%build
|
|
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
|
|
|
|
%check
|
|
pushd build-py3
|
|
#ctest -VV
|
|
make ARGS="-V" test
|
|
popd
|
|
|
|
%install
|
|
pushd build-py3
|
|
%make_install
|
|
popd
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_includedir}/%{name}/
|
|
|
|
%files -n python3-%{name}
|
|
%{python3_sitearch}/%{name}/
|
|
|
|
%changelog
|
|
* Mon Jan 25 2021 fuanan <fuanan3@huawei.com> - 1.12.0-2
|
|
- fix CVE-2020-14352
|
|
|
|
* Tue Apr 28 2020 zhouyihang <zhouyihang3@huawei.com> - 1.12.0-1
|
|
- Type:requirement
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:update librepo version to 1.12.0
|
|
|
|
* Tue Jan 7 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.11.0-2
|
|
- Pakcage init
|