Blame python-entrypoints.spec

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