Blob Blame Raw
%bcond_without check
%global pypi_name identify

Name:           python-%{pypi_name}
Version:        1.4.10
Release:        2%{?dist}
Summary:        File identification library for Python

License:        MIT
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
%if %{with check}
BuildRequires:  python3dist(editdistance)
BuildRequires:  python3-pytest


Given a file (or some information about a file), return a set of standardized
tags identifying what the file is.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}

%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info



%if %{with check}
%{python3} -m pytest -v

%files -n python3-%{pypi_name}
%license LICENSE

* Thu Jan 30 2020 Fedora Release Engineering <> - 1.4.10-2
- Rebuilt for

* Tue Jan 21 2020 Artem Polishchuk <> - 1.4.10-1
- Update to 1.4.10

* Thu Oct 24 2019 Artem Polishchuk <> - 1.4.7-5
- Initial package