Blame python-helpdev.spec

4523c68
# Created by pyp2rpm-3.3.2
4523c68
%global pypi_name helpdev
4523c68
4523c68
%global _description %{expand:
4523c68
Helping users and developers to get information about the environment to report
4523c68
bugs or even test your system without spending a day on it. It can get
4523c68
information about hardware, OS, paths, Python distribution and packages,
4523c68
including Qt-things.}
4523c68
4523c68
Name:           python-%{pypi_name}
4523c68
Version:        0.6.10
3ac2b0b
Release:        8%{?dist}
4523c68
Summary:        HelpDev - Extracts information about the Python environment easily
4523c68
4523c68
License:        MIT
4523c68
URL:            https://gitlab.com/dpizetta/helpdev
4523c68
Source0:        https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
4523c68
# license file not in pypi tarball
4523c68
Source1:        https://gitlab.com/dpizetta/%{pypi_name}/raw/master/LICENSE.rst
4523c68
BuildArch:      noarch
4523c68
 
4523c68
BuildRequires:  python3-devel
4523c68
BuildRequires:  python3dist(setuptools)
4523c68
4523c68
%description %_description
4523c68
4523c68
%package -n     python3-%{pypi_name}
4523c68
Summary:        %{summary}
4523c68
%{?python_provide:%python_provide python3-%{pypi_name}}
4523c68
 
4523c68
Requires:       python3dist(psutil) >= 5.6
4523c68
Requires:       python3dist(setuptools)
4523c68
4523c68
%description -n python3-%{pypi_name}
4523c68
%_description
4523c68
4523c68
%prep
4523c68
%autosetup -n %{pypi_name}-%{version}
4523c68
# Remove bundled egg-info
4523c68
rm -rf %{pypi_name}.egg-info
4523c68
cp %{SOURCE1} .
4523c68
4523c68
# importlib.metadata is in python3.8
4523c68
# https://gitlab.com/dpizetta/helpdev/merge_requests/1
4523c68
sed -i "s|'importlib_metadata', ||" setup.py
4523c68
sed -i "s|import importlib_metadata|import importlib.metadata as importlib_metadata|" helpdev/__init__.py
4523c68
4523c68
%build
4523c68
%py3_build
4523c68
4523c68
%install
4523c68
%py3_install
4523c68
4523c68
%files -n python3-%{pypi_name}
4523c68
%doc README.rst
4523c68
%license LICENSE.rst
4523c68
%{_bindir}/helpdev
4523c68
%{python3_sitelib}/%{pypi_name}
83658fa
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
4523c68
4523c68
%changelog
3ac2b0b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-8
3ac2b0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3ac2b0b
3d55b75
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.10-7
3d55b75
- Rebuilt for Python 3.10
3d55b75
624c87f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-6
624c87f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
624c87f
abab5e4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-5
abab5e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
abab5e4
dc3cd8d
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.6.10-4
dc3cd8d
- Rebuilt for Python 3.9
dc3cd8d
72b5504
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.10-3
72b5504
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
72b5504
4523c68
* Mon Dec 23 2019 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.6.10-2
4523c68
- Fix spec issues
4523c68
4523c68
* Sat Dec 21 2019 Mukundan Ragavan <nonamedotc@gmail.com> - 0.6.10-1
4523c68
- Initial package.