0ab9a2d
%global modname fuzzyfinder
0ab9a2d
0ab9a2d
Name:           python-%{modname}
0ab9a2d
Version:        1.0.0
ba1f45e
Release:        5%{?dist}
0ab9a2d
Summary:        Fuzzy Finder implemented in Python
0ab9a2d
0ab9a2d
License:        BSD
0ab9a2d
URL:            https://github.com/amjith/fuzzyfinder
0ab9a2d
Source0:        https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
0ab9a2d
0ab9a2d
BuildArch:      noarch
0ab9a2d
0ab9a2d
%global _description \
0ab9a2d
%{summary}. Matches partial string entries from a list\
0ab9a2d
of strings. Works similar to fuzzy finder in SublimeText and\
0ab9a2d
Vim’s Ctrl-P plugin.
0ab9a2d
0ab9a2d
%description
0ab9a2d
%{_description}
0ab9a2d
0ab9a2d
%package -n python2-%{modname}
0ab9a2d
Summary:        %{summary}
0ab9a2d
%{?python_provide:%python_provide python2-%{modname}}
0ab9a2d
BuildRequires:  python2-devel
0ab9a2d
BuildRequires:  python2-setuptools
0ab9a2d
BuildRequires:  python2-pytest
0ab9a2d
0ab9a2d
%description -n python2-%{modname} %{_description}
0ab9a2d
0ab9a2d
Python 2 version.
0ab9a2d
0ab9a2d
%package -n python3-%{modname}
0ab9a2d
Summary:        %{summary}
0ab9a2d
%{?python_provide:%python_provide python3-%{modname}}
0ab9a2d
BuildRequires:  python3-devel
0ab9a2d
BuildRequires:  python3-setuptools
0ab9a2d
BuildRequires:  python3-pytest
0ab9a2d
0ab9a2d
%description -n python3-%{modname} %{_description}
0ab9a2d
0ab9a2d
Python 3 version.
0ab9a2d
0ab9a2d
%prep
0ab9a2d
%autosetup -n %{modname}-%{version}
0ab9a2d
rm -rf %{modname}.egg-info/
0ab9a2d
0ab9a2d
%build
0ab9a2d
%py2_build
0ab9a2d
%py3_build
0ab9a2d
0ab9a2d
%install
0ab9a2d
%py2_install
0ab9a2d
%py3_install
0ab9a2d
0ab9a2d
%check
0ab9a2d
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v
0ab9a2d
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v
0ab9a2d
0ab9a2d
%files -n python2-%{modname}
0ab9a2d
%license LICENSE
0ab9a2d
%doc README.rst
0ab9a2d
%{python2_sitelib}/%{modname}-*.egg-info/
0ab9a2d
%{python2_sitelib}/%{modname}/
0ab9a2d
0ab9a2d
%files -n python3-%{modname}
0ab9a2d
%license LICENSE
0ab9a2d
%doc README.rst
0ab9a2d
%{python3_sitelib}/%{modname}-*.egg-info/
0ab9a2d
%{python3_sitelib}/%{modname}/
0ab9a2d
0ab9a2d
%changelog
ba1f45e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
ba1f45e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ba1f45e
613e86d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
613e86d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
613e86d
4c4ca6f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
4c4ca6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4c4ca6f
9401e49
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-2
9401e49
- Rebuild for Python 3.6
9401e49
0ab9a2d
* Sat Aug 06 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.0.0-1
0ab9a2d
- Initial package