Group :: Development/Python3
RPM: python3-module-pycares
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define module_name pycares
%def_with docs
Name: python3-module-%module_name
Version: 2.3.0
Release: alt2
Summary: Python interface for c-ares
License: MIT
Group: Development/Python3
Url: http://github.com/saghul/pycares
Source: pycares-%version.tar.gz
BuildRequires(pre): rpm-build-python3
%if_with docs
BuildRequires: python3-module-sphinx python3-module-sphinx_rtd_theme
%endif
%description
pycares is a Python module which provides an interface to c-ares. c-ares
(http://c-ares.haxx.se/) c-ares is a C library that performs DNS
requests and name resolves asynchronously.
%prep
%setup -n pycares-%version
sed -i 's at /setup.py at /pycares/_version.py at ' docs/conf.py
%build
export LANG=en_US.UTF-8
%python3_build
%if_with docs
make -C docs html SPHINXBUILD=py3_sphinx-build
%endif
%install
export LANG=en_US.UTF-8
%python3_install
%files
%python3_sitelibdir/pycares*
%doc README.rst LICENSE ChangeLog
%if_with docs
%doc docs/_build/html
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_with docs
Name: python3-module-%module_name
Version: 2.3.0
Release: alt2
Summary: Python interface for c-ares
License: MIT
Group: Development/Python3
Url: http://github.com/saghul/pycares
Source: pycares-%version.tar.gz
BuildRequires(pre): rpm-build-python3
%if_with docs
BuildRequires: python3-module-sphinx python3-module-sphinx_rtd_theme
%endif
%description
pycares is a Python module which provides an interface to c-ares. c-ares
(http://c-ares.haxx.se/) c-ares is a C library that performs DNS
requests and name resolves asynchronously.
%prep
%setup -n pycares-%version
sed -i 's at /setup.py at /pycares/_version.py at ' docs/conf.py
%build
export LANG=en_US.UTF-8
%python3_build
%if_with docs
make -C docs html SPHINXBUILD=py3_sphinx-build
%endif
%install
export LANG=en_US.UTF-8
%python3_install
%files
%python3_sitelibdir/pycares*
%doc README.rst LICENSE ChangeLog
%if_with docs
%doc docs/_build/html
%endif
%changelog
…
Todas as alterações você pod ver aqui