From b66e5d1c9b332d5d4b7d6b0925ef1d5f8a156849 Mon Sep 17 00:00:00 2001 From: Mukundan Ragavan Date: Oct 03 2016 23:00:09 +0000 Subject: Initial import (#1379095) --- diff --git a/.gitignore b/.gitignore index e69de29..646b742 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/entrypoints-0.2.2.tar.gz diff --git a/python-entrypoints.spec b/python-entrypoints.spec new file mode 100644 index 0000000..d9b8f16 --- /dev/null +++ b/python-entrypoints.spec @@ -0,0 +1,132 @@ +%global srcname entrypoints +%global sum Discover and load entry points from installed packages + +Name: python-%{srcname} +Version: 0.2.2 +Release: 2%{?dist} +Summary: %{sum} + +# license clarification issue opened upstream +# https://github.com/takluyver/entrypoints/issues/10 + +License: MIT + +URL: https://entrypoints.readthedocs.io/ +Source0: https://github.com/takluyver/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python3-devel +BuildRequires: python-pip +BuildRequires: python3-pip +BuildRequires: python3-flit +BuildRequires: python3-sphinx + +%description +Entry points are a way for Python packages to advertise objects with some +common interface. The most common examples are console_scripts entry points, +which define shell commands by identifying a Python function to run. + +The entrypoints module contains functions to find and load entry points. + + +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +Entry points are a way for Python packages to advertise objects with some +common interface. The most common examples are console_scripts entry points, +which define shell commands by identifying a Python function to run. + +The entrypoints module contains functions to find and load entry points. + +%package -n python2-%{srcname}-doc +Summary: Documentation for python-entrypoints + +%description -n python2-%{srcname}-doc +Documentation files for python-entrypoints + +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +Entry points are a way for Python packages to advertise objects with some +common interface. The most common examples are console_scripts entry points, +which define shell commands by identifying a Python function to run. + +The entrypoints module contains functions to find and load entry points. + +%package -n python3-%{srcname}-doc +Summary: Documentation for python-entrypoints + +%description -n python3-%{srcname}-doc +Documentation files for python-entrypoints + +%prep +%autosetup -n %{srcname}-%{version} + +# We don't need to verify PyPI classifiers, because the package is already +# there. So just make specified classifiers "valid". +mkdir -p .cache/flit +%{__python3} -c "with open('flit.ini', 'rb') as inf: + with open('.cache/flit/classifiers.lst', 'wb') as outf: + enable_output = False + for line in inf: + if enable_output: + if b'=' in line: + break + outf.write(line) + elif b'classifiers' in line: + outf.write(line.split(b'=')[1]) + enable_output = True +" + + +%build +XDG_CACHE_HOME=$PWD/.cache flit wheel + +pushd doc +make html PYTHON="%{__python3}" SPHINXBUILD=sphinx-build-%{python3_version} +rm _build/html/.buildinfo +popd + + +%install +pip2 install --root %{buildroot} --no-deps \ + dist/%{srcname}-%{version}-py2.py3-none-any.whl +pip3 install --root %{buildroot} --no-deps \ + dist/%{srcname}-%{version}-py2.py3-none-any.whl + +# Fedora doesn't use this yet. +rm -r %{buildroot}%{python2_sitelib}/%{srcname}-%{version}.dist-info/ +rm -r %{buildroot}%{python3_sitelib}/%{srcname}-%{version}.dist-info/ + + +%files -n python2-%{srcname} +%doc doc/_build/html +%license LICENSE +%{python2_sitelib}/* + +%files -n python2-%{srcname}-doc +%doc doc/_build/html +%license LICENSE + +%files -n python3-%{srcname} +%doc doc/_build/html +%license LICENSE +%{python3_sitelib}/* + +%files -n python3-%{srcname}-doc +%doc doc/_build/html +%license LICENSE + +%changelog +* Sun Oct 02 2016 Mukundan Ragavan - 0.2.2-2 +- Add -doc subpackages +- Fix source url +- Add license clarification issue URL for reference + +* Sat Jul 2 2016 Elliott Sales de Andrade 0.2.2-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..0da216b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7dae980f7c6affd777dc60a51c8d0b0b entrypoints-0.2.2.tar.gz