Blame SPECS/python-entrypoints.spec

e88fa7
%global srcname entrypoints
e88fa7
%global sum Discover and load entry points from installed packages
e88fa7
e88fa7
%global python3_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
e88fa7
e88fa7
Name:		python-%{srcname}
e88fa7
e88fa7
# WARNING: Check if an update does not break flake8!
e88fa7
Version:	0.3
e88fa7
e88fa7
Release:	8%{?dist}
e88fa7
Summary:	%{sum}
e88fa7
e88fa7
# license clarification issue opened upstream
e88fa7
# https://github.com/takluyver/entrypoints/issues/10
e88fa7
e88fa7
License:	MIT
e88fa7
e88fa7
URL:		https://entrypoints.readthedocs.io/
e88fa7
Source0:	https://github.com/takluyver/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
e88fa7
e88fa7
BuildArch:	noarch
e88fa7
BuildRequires: make
e88fa7
BuildRequires:	python3-devel
e88fa7
BuildRequires:	python3-pip
e88fa7
BuildRequires:	python3-flit
e88fa7
BuildRequires:	python3-sphinx
e88fa7
e88fa7
%description
e88fa7
Entry points are a way for Python packages to advertise objects with some
e88fa7
common interface. The most common examples are console_scripts entry points,
e88fa7
which define shell commands by identifying a Python function to run.
e88fa7
e88fa7
The entrypoints module contains functions to find and load entry points.
e88fa7
e88fa7
%package -n python3-%{srcname}
e88fa7
Summary:	%{sum}
e88fa7
%{?python_provide:%python_provide python3-%{srcname}}
e88fa7
e88fa7
%description -n python3-%{srcname}
e88fa7
Entry points are a way for Python packages to advertise objects with some
e88fa7
common interface. The most common examples are console_scripts entry points,
e88fa7
which define shell commands by identifying a Python function to run.
e88fa7
e88fa7
The entrypoints module contains functions to find and load entry points.
e88fa7
e88fa7
%package -n python-%{srcname}-doc
e88fa7
Summary:	Documentation for python-entrypoints
e88fa7
e88fa7
%description -n python-%{srcname}-doc
e88fa7
Documentation files for python-entrypoints
e88fa7
e88fa7
%prep
e88fa7
%autosetup -n %{srcname}-%{version}
e88fa7
e88fa7
e88fa7
%build
e88fa7
XDG_CACHE_HOME=$PWD/.cache FLIT_NO_NETWORK=1 flit build --format wheel
e88fa7
e88fa7
pushd doc
e88fa7
make html PYTHON="%{__python3}" SPHINXBUILD=sphinx-build-%{python3_version}
e88fa7
rm _build/html/.buildinfo
e88fa7
popd
e88fa7
e88fa7
e88fa7
%install
e88fa7
%py3_install_wheel %python3_wheelname
e88fa7
e88fa7
%files -n python3-%{srcname}
e88fa7
%doc doc/_build/html
e88fa7
%license LICENSE
e88fa7
%{python3_sitelib}/__pycache__/*
e88fa7
%{python3_sitelib}/*.py
e88fa7
%{python3_sitelib}/%{srcname}-%{version}.dist-info
e88fa7
e88fa7
%files -n python-%{srcname}-doc
e88fa7
%doc doc/_build/html
e88fa7
%license LICENSE
e88fa7
e88fa7
%changelog
e88fa7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-8
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e88fa7
e88fa7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-7
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e88fa7
e88fa7
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3-6
e88fa7
- Rebuilt for Python 3.9
e88fa7
e88fa7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-5
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e88fa7
e88fa7
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-4
e88fa7
- Rebuilt for Python 3.8.0rc1 (#1748018)
e88fa7
e88fa7
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-3
e88fa7
- Rebuilt for Python 3.8
e88fa7
e88fa7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e88fa7
e88fa7
* Tue Feb 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-1
e88fa7
- Update to 0.3
e88fa7
e88fa7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-11
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e88fa7
e88fa7
* Wed Nov 28 2018 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.3-10
e88fa7
- Drop py2 sub-packages
e88fa7
e88fa7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-9
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e88fa7
e88fa7
* Sat Jul 07 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-8
e88fa7
- Add missing dependency on python2-configparser (#1598998)
e88fa7
e88fa7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-7
e88fa7
- Fix flit invocation
e88fa7
e88fa7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-6
e88fa7
- Rebuilt for Python 3.7
e88fa7
e88fa7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-5
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e88fa7
e88fa7
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.3-4
e88fa7
- Update Python 2 dependency declarations to new packaging standards
e88fa7
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
e88fa7
e88fa7
* Wed Jan 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.3-3
e88fa7
- Restore dist-info information (#1530098).
e88fa7
e88fa7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e88fa7
e88fa7
* Tue Jun 13 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.3-1
e88fa7
- Update to 0.2.3
e88fa7
e88fa7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-7
e88fa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e88fa7
e88fa7
* Tue Jan 31 2017 Michal Cyprian <mcyprian@redhat.com> - 0.2.2-6
e88fa7
- Use python install wheel macros
e88fa7
e88fa7
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.2-5
e88fa7
- Rebuild for Python 3.6
e88fa7
e88fa7
* Sun Nov 06 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.2-4
e88fa7
- Do not own pycache dir
e88fa7
e88fa7
* Mon Oct 03 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.2-3
e88fa7
- Consolidate two doc subpackages into one
e88fa7
e88fa7
* Sun Oct 02 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.2-2
e88fa7
- Add -doc subpackages
e88fa7
- Fix source url
e88fa7
- Add license clarification issue URL for reference
e88fa7
e88fa7
* Sat Jul 2 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.2-1
e88fa7
- Initial RPM release