%global modname smartcols %global libsmartcols_version 2.30.2 Name: python-%{modname} Version: 0.3.0 Release: 11%{?dist} Summary: Python bindings for util-linux libsmartcols-library License: GPLv3+ URL: https://github.com/ignatenkobrain/python-smartcols Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # git clone https://github.com/karelzak/util-linux.git # cd util-linux # git archive --format=tar.gz --prefix=util-linux/ -o libsmartcols-tests-%%{libsmartcols_version}.tar.gz v%%{libsmartcols_version} tests/ts/libsmartcols/ tests/expected/libsmartcols/ Source1: libsmartcols-tests-%{libsmartcols_version}.tar.gz # pytest 4 support Patch1: %{url}/pull/20.patch BuildRequires: gcc BuildRequires: glibc-langpack-en BuildRequires: pkgconfig(smartcols) >= %{libsmartcols_version} %description %{summary}. %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-Cython BuildRequires: python3-pytest BuildRequires: python3-pytest-runner %description -n python3-%{modname} %{summary}. Python 3 version. %package doc Summary: Documentation for %{name} BuildArch: noarch BuildRequires: python3-sphinx %description doc %{summary}. %prep %autosetup -a1 -p1 %build %py3_build # HACK, otherwise sphinx can't introspect dynamic library ln -s build/lib.*-%{python3_version}/smartcols.*.so . %{__python3} setup.py build_sphinx rm -f doc/_build/html/.buildinfo %install %py3_install %check %{__python3} setup.py ptr %files -n python3-%{modname} %license COPYING %doc README.md %{python3_sitearch}/%{modname}-*.egg-info/ %{python3_sitearch}/%{modname}.*.so %files doc %doc examples doc/_build/html %changelog * Wed Jul 29 2020 Fedora Release Engineering - 0.3.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 0.3.0-10 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 19 2019 Miro Hrončok - 0.3.0-8 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.3.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 02 2018 Igor Gnatenko - 0.3.0-5 - Drop python2 subpkg * Sat Jul 14 2018 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 15 2018 Miro Hrončok - 0.3.0-3 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Oct 16 2017 Igor Gnatenko - 0.3.0-1 - Update to 0.3.0 * Thu Aug 03 2017 Fedora Release Engineering - 0.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.2.0-2 - Rebuild for Python 3.6 * Fri Nov 18 2016 Igor Gnatenko - 0.2.0-1 - Update to 0.2.0 * Tue Aug 23 2016 Igor Gnatenko - 0.1.1-2 - Skip continuous test as it stuck without PTY * Tue Aug 23 2016 Igor Gnatenko - 0.1.1-1 - Initial package