|
|
f6752d4 |
%global pypi_name entry_point_inspector
|
|
|
f6752d4 |
%global sname epi
|
|
|
f6752d4 |
|
|
|
f6752d4 |
# Python3 support in OpenStack starts with version 3.5,
|
|
|
f6752d4 |
# which is only in Fedora 24+
|
|
|
f6752d4 |
%if 0%{?fedora} >= 24
|
|
|
f6752d4 |
%global with_python3 1
|
|
|
f6752d4 |
%global default_python 3
|
|
|
f6752d4 |
%else
|
|
|
f6752d4 |
%global default_python 2
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
f6752d4 |
Name: python-%{sname}
|
|
|
f6752d4 |
Version: 0.1
|
|
|
b411241 |
Release: 8%{?dist}
|
|
|
f6752d4 |
Summary: Tool for looking at the entry point plugins on a system
|
|
|
f6752d4 |
|
|
|
f6752d4 |
License: ASL 2.0
|
|
|
f6752d4 |
URL: https://github.com/dhellmann/entry_point_inspector
|
|
|
f6752d4 |
Source0: https://files.pythonhosted.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
f6752d4 |
|
|
|
f6752d4 |
# Pull request for including these two files
|
|
|
f6752d4 |
# https://github.com/dhellmann/entry_point_inspector/pull/3
|
|
|
f6752d4 |
Source1: https://raw.githubusercontent.com/dhellmann/entry_point_inspector/master/LICENSE
|
|
|
f6752d4 |
Source2: https://raw.githubusercontent.com/dhellmann/entry_point_inspector/master/README.rst
|
|
|
f6752d4 |
Source3: https://raw.githubusercontent.com/dhellmann/entry_point_inspector/master/announce.rst
|
|
|
f6752d4 |
|
|
|
f6752d4 |
BuildArch: noarch
|
|
|
f6752d4 |
|
|
|
f6752d4 |
BuildRequires: python-setuptools
|
|
|
f6752d4 |
BuildRequires: python2-devel
|
|
|
f6752d4 |
# test requirements
|
|
|
f6752d4 |
BuildRequires: python-mock
|
|
|
f6752d4 |
BuildRequires: python-nose
|
|
|
f6752d4 |
BuildRequires: python-coverage
|
|
|
f6752d4 |
BuildRequires: python-cliff
|
|
|
f6752d4 |
|
|
|
f6752d4 |
BuildRequires: python3-setuptools
|
|
|
f6752d4 |
BuildRequires: python3-devel
|
|
|
f6752d4 |
# test requirements
|
|
|
f6752d4 |
BuildRequires: python3-mock
|
|
|
f6752d4 |
BuildRequires: python3-nose
|
|
|
f6752d4 |
BuildRequires: python3-coverage
|
|
|
f6752d4 |
BuildRequires: python3-cliff
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%description
|
|
|
f6752d4 |
Entry Point Inspector is a tool for looking at the entry point plugins
|
|
|
f6752d4 |
installed on a system.
|
|
|
f6752d4 |
|
|
|
fcceedf |
%package -n python2-%{sname}
|
|
|
f6752d4 |
Summary: Tool for looking at the entry point plugins on a system
|
|
|
fcceedf |
%{?python_provide:%python_provide python2-%{sname}}
|
|
|
f6752d4 |
|
|
|
f6752d4 |
Requires: python-cliff
|
|
|
f6752d4 |
Requires: python-setuptools
|
|
|
f6752d4 |
|
|
|
fcceedf |
%description -n python2-%{sname}
|
|
|
f6752d4 |
Entry Point Inspector is a tool for looking at the entry point plugins
|
|
|
f6752d4 |
installed on a system.
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%if 0%{?with_python3}
|
|
|
fcceedf |
%package -n python3-%{sname}
|
|
|
f6752d4 |
Summary: Tool for looking at the entry point plugins on a system
|
|
|
fcceedf |
%{?python_provide:%python_provide python3-%{sname}}
|
|
|
f6752d4 |
|
|
|
f6752d4 |
Requires: python3-cliff
|
|
|
f6752d4 |
Requires: python3-setuptools
|
|
|
f6752d4 |
|
|
|
fcceedf |
%description -n python3-%{sname}
|
|
|
f6752d4 |
Entry Point Inspector is a tool for looking at the entry point plugins
|
|
|
f6752d4 |
installed on a system.
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%prep
|
|
|
f6752d4 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
f6752d4 |
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} .
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%build
|
|
|
f6752d4 |
%py2_build
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%if 0%{?with_python3}
|
|
|
f6752d4 |
%py3_build
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%install
|
|
|
f6752d4 |
%py2_install
|
|
|
f6752d4 |
mv %{buildroot}%{_bindir}/%{sname} %{buildroot}%{_bindir}/python2-%{sname}
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%if 0%{?with_python3}
|
|
|
f6752d4 |
%py3_install
|
|
|
f6752d4 |
mv %{buildroot}%{_bindir}/%{sname} %{buildroot}%{_bindir}/python3-%{sname}
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%if 0%{?default_python} >= 3
|
|
|
f6752d4 |
ln -s %{_bindir}/python3-%{sname} %{buildroot}%{_bindir}/%{sname}
|
|
|
f6752d4 |
%else
|
|
|
f6752d4 |
ln -s %{_bindir}/python2-%{sname} %{buildroot}%{_bindir}/%{sname}
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%check
|
|
|
f6752d4 |
%{__python2} setup.py nosetests
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%if 0%{?with_python3}
|
|
|
f6752d4 |
%{__python3} setup.py nosetests
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
fcceedf |
%files -n python2-%{sname}
|
|
|
f6752d4 |
%license LICENSE
|
|
|
f6752d4 |
%doc README.rst announce.rst
|
|
|
f6752d4 |
%{python2_sitelib}/%{pypi_name}
|
|
|
f6752d4 |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
f6752d4 |
%if 0%{?default_python} <= 2
|
|
|
f6752d4 |
%{_bindir}/%{sname}
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
%{_bindir}/python2-%{sname}
|
|
|
f6752d4 |
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%if 0%{?with_python3}
|
|
|
fcceedf |
%files -n python3-%{sname}
|
|
|
f6752d4 |
%license LICENSE
|
|
|
f6752d4 |
%doc README.rst announce.rst
|
|
|
f6752d4 |
%{python3_sitelib}/%{pypi_name}
|
|
|
f6752d4 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
f6752d4 |
%if 0%{?default_python} >= 3
|
|
|
f6752d4 |
%{_bindir}/%{sname}
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
%{_bindir}/python3-%{sname}
|
|
|
f6752d4 |
%endif
|
|
|
f6752d4 |
|
|
|
f6752d4 |
%changelog
|
|
|
b411241 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-8
|
|
|
b411241 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b411241 |
|
|
|
b1d4707 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-7
|
|
|
b1d4707 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b1d4707 |
|
|
|
ef7b3f8 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-6
|
|
|
ef7b3f8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ef7b3f8 |
|
|
|
7a669da |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.1-5
|
|
|
7a669da |
- Rebuild for Python 3.6
|
|
|
7a669da |
|
|
|
fcceedf |
* Thu Oct 20 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-4
|
|
|
fcceedf |
- Fixed package name
|
|
|
fcceedf |
|
|
|
f6752d4 |
* Wed Sep 28 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-3
|
|
|
f6752d4 |
- Fixed source macro in prep section
|
|
|
f6752d4 |
|
|
|
f6752d4 |
* Wed Sep 28 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-2
|
|
|
f6752d4 |
- Added sources for LICENSE, README.rst and announce.rst
|
|
|
f6752d4 |
- Included check macro to run unit tests
|
|
|
f6752d4 |
|
|
|
f6752d4 |
* Tue Sep 27 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-1
|
|
|
f6752d4 |
- Initial package.
|