Blob Blame History Raw
%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.7
Release:        1%{?dist}
Summary:        Metaextract is a tool to collect metadata for Python modules

License:        ASL 2.0
Source0:        %{URL}/archive/%{version}/%{name}-%{version}.tar.gz

BuildArch:      noarch


%package -n     python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires: %{py3_dist flake8}
BuildRequires: %{py3_dist mock}
BuildRequires: %{py3_dist pytest-runner}
BuildRequires: %{py3_dist pbr} >= 1.0

%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}

%package        doc
Summary:        Documentation for %name
BuildRequires:  %{py3_dist sphinx}

%description    doc
Documentation for %name

%autosetup -n %{srcname}-%{version}

python3 build_sphinx

rm doc/build/html/objects.inv


python3 -m pytest metaextract

%files -n python3-%{srcname}
%doc README.rst
%license LICENSE

%files doc
%license LICENSE
%doc doc/build/html/*

* Thu Apr  9 2020 Dan Čermák <> - 1.0.7-1
- New upstream release 1.0.7 (rhbz#1818616)

* Tue Jan 21 2020 Dan Čermák <> - 1.0.6-2
- Add missing BuildRequire pbr

* Sun Sep  8 2019 Dan Čermák <> - 1.0.6-1
- Bump version to 1.0.6

* Fri Jul 26 2019 Fedora Release Engineering <> - 1.0.5-2
- Rebuilt for

* Wed Mar  6 2019 Dan Čermák <> - 1.0.5-1
- Initial package version