f6752d4
%global pypi_name entry_point_inspector
f6752d4
%global sname epi
f6752d4
Alan Pevec 5189303
%if 0%{?fedora} || 0%{?rhel} > 7
Alan Pevec 5189303
%bcond_with    python2
Alan Pevec 5189303
%bcond_without python3
f6752d4
%else
Alan Pevec 5189303
%bcond_without python2
Alan Pevec 5189303
%bcond_with    python3
f6752d4
%endif
f6752d4
f6752d4
Name:           python-%{sname}
Alan Pevec 5189303
Version:        0.1.1
a272ac9
Release:        5%{?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
BuildArch:      noarch
f6752d4
f6752d4
%description
f6752d4
Entry Point Inspector is a tool for looking at the entry point plugins
f6752d4
installed on a system.
f6752d4
Alan Pevec 5189303
%if %{with python2}
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
42ce596
Requires:       python2-cliff
42ce596
Requires:       python2-setuptools
f6752d4
Alan Pevec 5189303
BuildRequires:  python2-setuptools
Alan Pevec 5189303
BuildRequires:  python2-devel
Alan Pevec 5189303
# test requirements
Alan Pevec 5189303
BuildRequires:  python2-mock
Alan Pevec 5189303
BuildRequires:  python2-nose
Alan Pevec 5189303
BuildRequires:  python2-coverage
Alan Pevec 5189303
BuildRequires:  python2-cliff
Alan Pevec 5189303
fcceedf
%description -n python2-%{sname}
f6752d4
Entry Point Inspector is a tool for looking at the entry point plugins
f6752d4
installed on a system.
Alan Pevec 5189303
%endif
f6752d4
Alan Pevec 5189303
%if %{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
Alan Pevec 5189303
BuildRequires:  python3-setuptools
Alan Pevec 5189303
BuildRequires:  python3-devel
Alan Pevec 5189303
# test requirements
Alan Pevec 5189303
BuildRequires:  python3-mock
Alan Pevec 5189303
BuildRequires:  python3-nose
Alan Pevec 5189303
BuildRequires:  python3-coverage
Alan Pevec 5189303
BuildRequires:  python3-cliff
Alan Pevec 5189303
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
f6752d4
%build
Alan Pevec 5189303
%if %{with python2}
f6752d4
%py2_build
Alan Pevec 5189303
%endif
f6752d4
Alan Pevec 5189303
%if %{with python3}
f6752d4
%py3_build
f6752d4
%endif
f6752d4
f6752d4
%install
Alan Pevec 5189303
%if %{with python2}
f6752d4
%py2_install
f6752d4
%endif
f6752d4
Alan Pevec 5189303
%if %{with python3}
Alan Pevec 5189303
%py3_install
f6752d4
%endif
f6752d4
f6752d4
%check
Alan Pevec 5189303
%if %{with python2}
f6752d4
%{__python2} setup.py nosetests
Alan Pevec 5189303
%endif
f6752d4
Alan Pevec 5189303
%if %{with python3}
f6752d4
%{__python3} setup.py nosetests
f6752d4
%endif
f6752d4
Alan Pevec 5189303
%if %{with python2}
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
%{_bindir}/%{sname}
f6752d4
%endif
f6752d4
f6752d4
Alan Pevec 5189303
%if %{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
%{_bindir}/%{sname}
Alan Pevec 42e66db
%endif
f6752d4
f6752d4
%changelog
a272ac9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-5
a272ac9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a272ac9
6e9600f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.1-4
6e9600f
- Rebuilt for Python 3.8.0rc1 (#1748018)
6e9600f
e463f06
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.1-3
e463f06
- Rebuilt for Python 3.8
e463f06
92ffac6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
92ffac6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
92ffac6
Alan Pevec 5189303
* Thu Jan 31 2019 Alan Pevec <alan.pevec@redhat.com> 0.1.1-1
Alan Pevec 5189303
- Update to 0.1.1
Alan Pevec 5189303
- Drop python2 in Fedora
Alan Pevec 5189303
77065c9
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1-11
77065c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
77065c9
3ab105d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.1-10
3ab105d
- Rebuilt for Python 3.7
3ab105d
42ce596
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.1-9
42ce596
- Update Python 2 dependency declarations to new packaging standards
42ce596
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
42ce596
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.