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}
895cc30
Version:        1.0.8
78d6463
Release:        2%{?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 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
78d6463
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-2
78d6463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
78d6463
895cc30
* Wed Dec 29 2021 Sandipan Roy <bytehackr@fedoraproject.org> - 1.0.8-1
895cc30
 - Version update to 1.0.8
895cc30
a279131
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-7
a279131
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a279131
4cdfe18
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.7-6
4cdfe18
- Rebuilt for Python 3.10
4cdfe18
9f93e64
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-5
9f93e64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9f93e64
c697794
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-4
c697794
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c697794
420050b
* Sun May 31 2020 Dan Čermák <dan@Eclipse> - 1.0.7-3
420050b
- Drop unnecessary BuildRequire python3-flak8 (rhbz#1841733)
420050b
5816a3d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.7-2
5816a3d
- Rebuilt for Python 3.9
5816a3d
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