%global srcname metaextract %global descr metaextract is a tool to collect metadata about a python \ module. For example you may have a sdist tarball from the Python Package Index \ and you want to know it's dependencies. metaextract can collect theses \ dependencies. The tool was first developed in py2pack but is now it's own \ module to be useful for others, too. Name: python-%{srcname} Version: 1.0.5 Release: 1%{?dist} Summary: get metadata for python modules License: Apache-2.0 URL: https://github.com/toabctl/metaextract Source0: %{URL}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch %description %descr %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: %{py3_dist flake8} BuildRequires: %{py3_dist mock} BuildRequires: %{py3_dist pytest-runner} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %descr %package doc Summary: Documentation for %name BuildRequires: %{py3_dist sphinx} %description doc Documentation for %name %prep %autosetup -n %{srcname}-%{version} %build %py3_build %{__python3} setup.py build_sphinx rm doc/build/html/objects.inv %install %py3_install %check export PYTHONPATH=$(pwd):$PYTHONPATH py.test-%{python3_version} -v metaextract %files -n python3-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}/ %{_bindir}/metaextract %files doc %doc doc/build/html/* %changelog * Wed Mar 6 2019 Dan Čermák -