Chandan Kumar f6752d
%global pypi_name entry_point_inspector
Chandan Kumar f6752d
%global sname epi
Chandan Kumar f6752d
Alan Pevec 518930
%if 0%{?fedora} || 0%{?rhel} > 7
Alan Pevec 518930
%bcond_with    python2
Alan Pevec 518930
%bcond_without python3
Chandan Kumar f6752d
%else
Alan Pevec 518930
%bcond_without python2
Alan Pevec 518930
%bcond_with    python3
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Chandan Kumar f6752d
Name:           python-%{sname}
Alan Pevec 518930
Version:        0.1.1
e463f0
Release:        3%{?dist}
Chandan Kumar f6752d
Summary:        Tool for looking at the entry point plugins on a system
Chandan Kumar f6752d
Chandan Kumar f6752d
License:        ASL 2.0
Chandan Kumar f6752d
URL:            https://github.com/dhellmann/entry_point_inspector
Chandan Kumar f6752d
Source0:        https://files.pythonhosted.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Chandan Kumar f6752d
Chandan Kumar f6752d
BuildArch:      noarch
Chandan Kumar f6752d
Chandan Kumar f6752d
%description
Chandan Kumar f6752d
Entry Point Inspector is a tool for looking at the entry point plugins
Chandan Kumar f6752d
installed on a system.
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python2}
Chandan Kumar fcceed
%package -n     python2-%{sname}
Chandan Kumar f6752d
Summary:        Tool for looking at the entry point plugins on a system
Chandan Kumar fcceed
%{?python_provide:%python_provide python2-%{sname}}
Chandan Kumar f6752d
42ce59
Requires:       python2-cliff
42ce59
Requires:       python2-setuptools
Chandan Kumar f6752d
Alan Pevec 518930
BuildRequires:  python2-setuptools
Alan Pevec 518930
BuildRequires:  python2-devel
Alan Pevec 518930
# test requirements
Alan Pevec 518930
BuildRequires:  python2-mock
Alan Pevec 518930
BuildRequires:  python2-nose
Alan Pevec 518930
BuildRequires:  python2-coverage
Alan Pevec 518930
BuildRequires:  python2-cliff
Alan Pevec 518930
Chandan Kumar fcceed
%description -n python2-%{sname}
Chandan Kumar f6752d
Entry Point Inspector is a tool for looking at the entry point plugins
Chandan Kumar f6752d
installed on a system.
Alan Pevec 518930
%endif
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python3}
Chandan Kumar fcceed
%package -n     python3-%{sname}
Chandan Kumar f6752d
Summary:        Tool for looking at the entry point plugins on a system
Chandan Kumar fcceed
%{?python_provide:%python_provide python3-%{sname}}
Chandan Kumar f6752d
Chandan Kumar f6752d
Requires:       python3-cliff
Chandan Kumar f6752d
Requires:       python3-setuptools
Chandan Kumar f6752d
Alan Pevec 518930
BuildRequires:  python3-setuptools
Alan Pevec 518930
BuildRequires:  python3-devel
Alan Pevec 518930
# test requirements
Alan Pevec 518930
BuildRequires:  python3-mock
Alan Pevec 518930
BuildRequires:  python3-nose
Alan Pevec 518930
BuildRequires:  python3-coverage
Alan Pevec 518930
BuildRequires:  python3-cliff
Alan Pevec 518930
Chandan Kumar fcceed
%description -n python3-%{sname}
Chandan Kumar f6752d
Entry Point Inspector is a tool for looking at the entry point plugins
Chandan Kumar f6752d
installed on a system.
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Chandan Kumar f6752d
%prep
Chandan Kumar f6752d
%autosetup -n %{pypi_name}-%{version}
Chandan Kumar f6752d
Chandan Kumar f6752d
%build
Alan Pevec 518930
%if %{with python2}
Chandan Kumar f6752d
%py2_build
Alan Pevec 518930
%endif
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python3}
Chandan Kumar f6752d
%py3_build
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Chandan Kumar f6752d
%install
Alan Pevec 518930
%if %{with python2}
Chandan Kumar f6752d
%py2_install
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python3}
Alan Pevec 518930
%py3_install
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Chandan Kumar f6752d
%check
Alan Pevec 518930
%if %{with python2}
Chandan Kumar f6752d
%{__python2} setup.py nosetests
Alan Pevec 518930
%endif
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python3}
Chandan Kumar f6752d
%{__python3} setup.py nosetests
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python2}
Chandan Kumar fcceed
%files -n python2-%{sname}
Chandan Kumar f6752d
%license LICENSE
Chandan Kumar f6752d
%doc README.rst announce.rst
Chandan Kumar f6752d
%{python2_sitelib}/%{pypi_name}
Chandan Kumar f6752d
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
Chandan Kumar f6752d
%{_bindir}/%{sname}
Chandan Kumar f6752d
%endif
Chandan Kumar f6752d
Chandan Kumar f6752d
Alan Pevec 518930
%if %{with python3}
Chandan Kumar fcceed
%files -n python3-%{sname}
Chandan Kumar f6752d
%license LICENSE
Chandan Kumar f6752d
%doc README.rst announce.rst
Chandan Kumar f6752d
%{python3_sitelib}/%{pypi_name}
Chandan Kumar f6752d
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
Chandan Kumar f6752d
%{_bindir}/%{sname}
Alan Pevec 42e66d
%endif
Chandan Kumar f6752d
Chandan Kumar f6752d
%changelog
e463f0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.1-3
e463f0
- Rebuilt for Python 3.8
e463f0
92ffac
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
92ffac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
92ffac
Alan Pevec 518930
* Thu Jan 31 2019 Alan Pevec <alan.pevec@redhat.com> 0.1.1-1
Alan Pevec 518930
- Update to 0.1.1
Alan Pevec 518930
- Drop python2 in Fedora
Alan Pevec 518930
77065c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-11
77065c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
77065c
3ab105
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1-10
3ab105
- Rebuilt for Python 3.7
3ab105
42ce59
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.1-9
42ce59
- Update Python 2 dependency declarations to new packaging standards
42ce59
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
42ce59
b41124
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-8
b41124
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b41124
b1d470
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-7
b1d470
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b1d470
ef7b3f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-6
ef7b3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ef7b3f
7a669d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1-5
7a669d
- Rebuild for Python 3.6
7a669d
Chandan Kumar fcceed
* Thu Oct 20 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-4
Chandan Kumar fcceed
- Fixed package name
Chandan Kumar fcceed
Chandan Kumar f6752d
* Wed Sep 28 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-3
Chandan Kumar f6752d
- Fixed source macro in prep section
Chandan Kumar f6752d
Chandan Kumar f6752d
* Wed Sep 28 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-2
Chandan Kumar f6752d
- Added sources for LICENSE, README.rst and announce.rst
Chandan Kumar f6752d
- Included check macro to run unit tests
Chandan Kumar f6752d
Chandan Kumar f6752d
* Tue Sep 27 2016 Chandan Kumar <chkumar246@gmail.com> - 0.1-1
Chandan Kumar f6752d
- Initial package.