forked from pool/python-python-mimeparse
Accepting request 485020 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/485020 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-mimeparse?expand=0&rev=5
This commit is contained in:
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bef134a59598cc6aa598f84553162aa7a0c01f3f431588225bb9a208964b1827
|
|
||||||
size 5870
|
|
BIN
python-mimeparse-1.6.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
python-mimeparse-1.6.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 1 14:24:37 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
- Updated to version 1.6.0
|
||||||
|
* let acceptable types specify their quality (#26)
|
||||||
|
* more readable formatting of test data
|
||||||
|
* Run PyPy tests with pypy-5.4 on Travis (#30)
|
||||||
|
* Ignore more dirs in flake8 tests (#31)
|
||||||
|
* ignore .venv instead of venv
|
||||||
|
* flake8 tweaks (#27)
|
||||||
|
* ignore build/ and venv/ dirs
|
||||||
|
version 1.5.4:
|
||||||
|
* Release as a universal wheel (#28)
|
||||||
|
* Remove __init__.py (#29)
|
||||||
|
version 1.5.3:
|
||||||
|
* extra test based on RFC 7231 page 38
|
||||||
|
* cleaner code for quality_and_fitness_parsed
|
||||||
|
* more readable testdata.json
|
||||||
|
* readme tweaks
|
||||||
|
* setup.py sanity check + pep8 tweaks to mimeparse.py
|
||||||
|
* setup.py + README tidying (#22)
|
||||||
|
* Document return types (#24)
|
||||||
|
* Add pypy3 to test matrix
|
||||||
|
* update download_url (fixes #18)
|
||||||
|
|
||||||
|
- Converted to single-spec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 15 12:45:22 UTC 2016 - dmueller@suse.com
|
Tue Nov 15 12:45:22 UTC 2016 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-mimeparse
|
# spec file for package python-python-mimeparse
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,45 +16,48 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-python-mimeparse
|
Name: python-python-mimeparse
|
||||||
Version: 1.5.2
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://code.google.com/p/mimeparse/
|
|
||||||
Summary: Basic functions for parsing and matching mime-type names
|
Summary: Basic functions for parsing and matching mime-type names
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: https://github.com/dbtsai/python-mimeparse
|
||||||
Source: https://pypi.io/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Provides: python-mimeparse = 0.1.4
|
Provides: python-mimeparse = 0.1.4
|
||||||
Obsoletes: python-mimeparse < 0.1.4
|
Obsoletes: python-mimeparse < 0.1.4
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides basic functions for handling mime-types. It can handle
|
This module provides basic functions for handling mime-types. It can handle
|
||||||
matching mime-types against a list of media-ranges. See section 14.1 of
|
matching mime-types against a list of media-ranges. See section 14.1 of
|
||||||
the HTTP specification [RFC 2616] for a complete explanation.
|
the HTTP specification [RFC 2616] for a complete explanation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-mimeparse-%{version}
|
%setup -q -n python-mimeparse-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python mimeparse_test.py
|
%python_exec mimeparse_test.py
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.md
|
%doc LICENSE README.rst
|
||||||
%{python_sitelib}/*
|
%pycache_only %{python_sitelib}/__pycache__
|
||||||
|
%{python_sitelib}/mimeparse.py*
|
||||||
|
%{python_sitelib}/python_mimeparse-%{version}-py%{python_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user