1 Star 0 Fork 5

cuibaobao/python-mimeparse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-mimeparse.spec 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
compile_success 提交于 2019-11-30 16:04 . add package init
Name: python-mimeparse
Version: 1.6.0
Release: 8
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 python2-mimeparse
Summary: Python2 module for handing mime-type
BuildRequires: python2-devel python2-setuptools
%{?python_provide:%python_provide python2-mimeparse}
%description -n python2-mimeparse
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
%py2_build
%py3_build
%install
%py2_install
%py3_install
%check
%{__python2} -m unittest -v mimeparse_test
%{__python3} -m unittest -v mimeparse_test
%files -n python2-mimeparse
%license LICENSE
%doc README.rst
%{python2_sitelib}/*
%files -n python3-mimeparse
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%changelog
* Fri Nov 29 2019 zhujunhao <zhujunhao5@huawei.com> - 1.6.0-8
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cuibb1/python-mimeparse.git
git@gitee.com:cuibb1/python-mimeparse.git
cuibb1
python-mimeparse
python-mimeparse
master

搜索帮助