%define shortname repo %define major 0 %define libname %mklibname %shortname %major %define libname_devel %mklibname %shortname -d Name: librepo Version: 1.10.3 Release: %mkrel 1 Summary: Repodata downloading library Group: System/Libraries License: LGPLv2+ URL: https://github.com/rpm-software-management/librepo Source0: https://github.com/rpm-software-management/librepo/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: doxygen BuildRequires: gpgme-devel BuildRequires: pkgconfig(check) BuildRequires: pkgconfig(glib-2.0) >= 2.26.0 BuildRequires: pkgconfig(libcurl) >= 7.28.0 BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libcrypto) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(zck) >= 0.9.11 # prevent provides from nonstandard paths: %define __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$ %description A library providing C and Python (libcURL like) API to downloading repository metadata. %package -n %{libname} Summary: Libraries for %{name} Group: System/Libraries %description -n %{libname} Libraries for %{name}. %package -n %{libname_devel} Summary: Repodata downloading library Group: Development/C Provides: %{name}-devel = %{version}-%{release} Requires: %{libname}%{?_isa} = %{version}-%{release} %description -n %{libname_devel} Development files for %{name}. %package -n python3-librepo Summary: Python 3 bindings for the librepo library Group: Development/Python %{?python_provide:%python_provide python3-librepo} BuildRequires: pkgconfig(python3) BuildRequires: python3-gpg BuildRequires: python3-flask BuildRequires: python3-nose BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme BuildRequires: python3-xattr BuildRequires: python3-requests Requires: %{libname}%{?_isa} = %{version}-%{release} # Python 2 subpackage is dropped Obsoletes: python2-librepo < 1.9.6 %description -n python3-librepo Python 3 bindings for the librepo library. %prep %setup -q %autopatch -p1 %build %cmake -DPYTHON_DESIRED:str=3 %make_build %check pushd ./build make ARGS="-V" test make clean popd %install pushd ./build %make_install popd %files -n %{libname} %license COPYING %doc README.md %{_libdir}/librepo.so.%{major} %files -n %{libname_devel} %{_libdir}/librepo.so %{_libdir}/pkgconfig/librepo.pc %{_includedir}/librepo/ %files -n python3-librepo %{python3_sitearch}/librepo %changelog * Tue May 28 2019 ngompa <ngompa> 1.10.3-1.mga7 + Revision: 1399318 - Update to 1.10.3 * Sun May 12 2019 ngompa <ngompa> 1.10.2-1.mga7 + Revision: 1397462 - Update to 1.10.2 - Drop patch included in this release * Sun Mar 31 2019 ngompa <ngompa> 1.9.6-2.mga7 + Revision: 1383709 - Add patch to fix fetching zck-compressed repositories (rhbz#1694411) * Sun Mar 31 2019 ngompa <ngompa> 1.9.6-1.mga7 + Revision: 1383679 - Update to 1.9.6 - Drop upstreamed patches - Drop Python 2 subpackage * Mon Jan 07 2019 ngompa <ngompa> 1.9.3-1.mga7 + Revision: 1350343 - Add patch to fix progress reporting for zchunk fetches - Update to 1.9.3 + tmb <tmb> - rebuild for python 3.7 * Sat Sep 15 2018 ngompa <ngompa> 1.9.1-1.mga7 + Revision: 1259048 - Update to 1.9.1 * Sat Jun 30 2018 ngompa <ngompa> 1.9.0-1.mga7 + Revision: 1240902 - Upgrade to 1.9.0 - Drop backport patches * Sat Feb 10 2018 daviddavid <daviddavid> 1.8.1-1.mga7 + Revision: 1200196 - new version: 1.8.1 - add an upstream patch to stop requiring attr(xattr) * Fri Aug 04 2017 tv <tv> 1.7.20-3.mga7 + Revision: 1134675 - rebuild for new python * Sun Nov 27 2016 ngompa <ngompa> 1.7.20-2.mga6 + Revision: 1070463 - Bump for rebuilding against core/release * Sat Nov 26 2016 ngompa <ngompa> 1.7.20-1.mga6 + Revision: 1070204 - Upgrade to 1.7.20 * Mon Feb 15 2016 umeabot <umeabot> 1.7.17-4.mga6 + Revision: 961213 - Mageia 6 Mass Rebuild * Fri Oct 09 2015 shlomif <shlomif> 1.7.17-3.mga6 + Revision: 888472 - Rebuild for Python3 3.5.x (Thanks to Neal Gompa - Cleanups for the .spec by Neal Gompa * Sun Oct 04 2015 shlomif <shlomif> 1.7.17-2.mga6 + Revision: 886208 - Importing librepo - thanks to Neal Gompa/Son_Goku