Group :: Development/Python3
RPM: python3-module-pygal
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname pygal
%def_with check
Name: python3-module-%oname
Version: 3.0.0
Release: alt1
Summary: A python svg graph plotting library
License: LGPLv3
Group: Development/Python3
Url: https://pypi.org/project/pygal/
# https://github.com/Kozea/pygal.git
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(cairosvg)
BuildRequires: python3(lxml)
BuildRequires: python3(pyquery)
BuildRequires: python3(tox)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox_console_scripts)
%endif
%description
pygal is a dynamic SVG charting library written in python. All the
documentation is on http://pygal.org
%prep
%setup
%autopatch -p1
%build
%python3_build
%install
%python3_install
mv %buildroot%_bindir/pygal_gen.py{,3}
# don't package tests
rm -r %buildroot%python3_sitelibdir/%oname/test/
%check
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr
%files
%doc CHANGELOG README*
%_bindir/pygal_gen.py3
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Todas as alterações você pod ver aqui
%define oname pygal
%def_with check
Name: python3-module-%oname
Version: 3.0.0
Release: alt1
Summary: A python svg graph plotting library
License: LGPLv3
Group: Development/Python3
Url: https://pypi.org/project/pygal/
# https://github.com/Kozea/pygal.git
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(cairosvg)
BuildRequires: python3(lxml)
BuildRequires: python3(pyquery)
BuildRequires: python3(tox)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox_console_scripts)
%endif
%description
pygal is a dynamic SVG charting library written in python. All the
documentation is on http://pygal.org
%prep
%setup
%autopatch -p1
%build
%python3_build
%install
%python3_install
mv %buildroot%_bindir/pygal_gen.py{,3}
# don't package tests
rm -r %buildroot%python3_sitelibdir/%oname/test/
%check
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr
%files
%doc CHANGELOG README*
%_bindir/pygal_gen.py3
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Todas as alterações você pod ver aqui