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}
5ca2ef0
Version:        1.0.7
5ca2ef0
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}
460692b
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
b8e40c8
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
b8e40c8
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
5ca2ef0
* Thu Apr  9 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.7-1
5ca2ef0
- New upstream release 1.0.7 (rhbz#1818616)
5ca2ef0
ac8831e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-3
ac8831e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ac8831e
460692b
* Tue Jan 21 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.6-2
460692b
- Add missing BuildRequire pbr
460692b
b8e40c8
* Sun Sep  8 2019 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.6-1
b8e40c8
- Bump version to 1.0.6
b8e40c8
93bfe30
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.5-3
93bfe30
- Rebuilt for Python 3.8
93bfe30
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