54e60f4
%global srcname metaextract
54e60f4
54e60f4
%global descr Metaextract is a tool to collect metadata about a Python \
54e60f4
module. For example you may have a sdist tarball from the Python Package Index \
54e60f4
and you want to know it's dependencies. metaextract can collect theses \
54e60f4
dependencies. The tool was first developed in py2pack but is now it's own \
54e60f4
module to be useful for others, too.
54e60f4
54e60f4
Name:           python-%{srcname}
07069d1
Version:        1.0.7
07069d1
Release:        1%{?dist}
54e60f4
Summary:        Metaextract is a tool to collect metadata for Python modules
54e60f4
54e60f4
License:        ASL 2.0
54e60f4
URL:            https://github.com/toabctl/metaextract
54e60f4
Source0:        %{URL}/archive/%{version}/%{name}-%{version}.tar.gz
54e60f4
54e60f4
BuildArch:      noarch
54e60f4
54e60f4
%description
54e60f4
%descr
54e60f4
54e60f4
%package -n     python3-%{srcname}
54e60f4
Summary:        %{summary}
54e60f4
BuildRequires:  python3-devel
54e60f4
BuildRequires: %{py3_dist flake8}
54e60f4
BuildRequires: %{py3_dist mock}
54e60f4
BuildRequires: %{py3_dist pytest-runner}
cf8ef4e
BuildRequires: %{py3_dist pbr} >= 1.0
54e60f4
54e60f4
%{?python_provide:%python_provide python3-%{srcname}}
54e60f4
54e60f4
%description -n python3-%{srcname}
54e60f4
%descr
54e60f4
54e60f4
%package        doc
54e60f4
Summary:        Documentation for %name
54e60f4
BuildRequires:  %{py3_dist sphinx}
54e60f4
54e60f4
%description    doc
54e60f4
Documentation for %name
54e60f4
54e60f4
54e60f4
%prep
54e60f4
%autosetup -n %{srcname}-%{version}
54e60f4
54e60f4
%build
54e60f4
%py3_build
d54340a
python3 setup.py build_sphinx
54e60f4
54e60f4
rm doc/build/html/objects.inv
54e60f4
54e60f4
%install
54e60f4
%py3_install
54e60f4
54e60f4
%check
54e60f4
export PYTHONPATH=$(pwd):$PYTHONPATH
d54340a
python3 -m pytest metaextract
54e60f4
54e60f4
%files -n python3-%{srcname}
54e60f4
%doc README.rst
54e60f4
%license LICENSE
54e60f4
%{python3_sitelib}/%{srcname}-*.egg-info/
54e60f4
%{python3_sitelib}/%{srcname}/
54e60f4
%{_bindir}/metaextract
54e60f4
54e60f4
%files doc
54e60f4
%license LICENSE
54e60f4
%doc doc/build/html/*
54e60f4
54e60f4
%changelog
07069d1
* Thu Apr  9 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.7-1
07069d1
- New upstream release 1.0.7 (rhbz#1818616)
07069d1
cf8ef4e
* Tue Jan 21 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.6-2
cf8ef4e
- Add missing BuildRequire pbr
cf8ef4e
d54340a
* Sun Sep  8 2019 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.6-1
d54340a
- Bump version to 1.0.6
d54340a
a8bd11f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
a8bd11f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a8bd11f
54e60f4
* Wed Mar  6 2019 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.5-1
54e60f4
- Initial package version