2019-11-30 16:04:26 +08:00
|
|
|
Name: python-mimeparse
|
|
|
|
|
Version: 1.6.0
|
2020-10-29 14:02:59 +08:00
|
|
|
Release: 9
|
2019-11-30 16:04:26 +08:00
|
|
|
Summary: Python module for handling mime-types.
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/dbtsai/python-mimeparse
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/python-mimeparse/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module provides basic functions for handling mime-types.
|
|
|
|
|
It can handle matching mime-types against a list of media-ranges.
|
|
|
|
|
|
|
|
|
|
%package -n python3-mimeparse
|
|
|
|
|
Summary: Python3 module for handling mime-types.
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
%{?python_provide:%python_provide python3-mimeparse}
|
|
|
|
|
|
|
|
|
|
%description -n python3-mimeparse
|
|
|
|
|
This module provides basic functions for handling mime-types.
|
|
|
|
|
It can handle matching mime-types against a list of media-ranges.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} -m unittest -v mimeparse_test
|
|
|
|
|
|
|
|
|
|
%files -n python3-mimeparse
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-10-29 14:02:59 +08:00
|
|
|
* Wed Oct 21 2020 Ge Wang <wangge20@huawei.com> - 1.6.0-9
|
|
|
|
|
- remove python2
|
|
|
|
|
|
2019-11-30 16:04:26 +08:00
|
|
|
* Fri Nov 29 2019 zhujunhao <zhujunhao5@huawei.com> - 1.6.0-8
|
|
|
|
|
- Package init
|