diff --git a/python-mimeparse-1.5.2.tar.gz b/python-mimeparse-1.5.2.tar.gz deleted file mode 100644 index a3a4e2b..0000000 --- a/python-mimeparse-1.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bef134a59598cc6aa598f84553162aa7a0c01f3f431588225bb9a208964b1827 -size 5870 diff --git a/python-mimeparse-1.6.0.tar.gz b/python-mimeparse-1.6.0.tar.gz new file mode 100644 index 0000000..6c571d6 --- /dev/null +++ b/python-mimeparse-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78 +size 6541 diff --git a/python-python-mimeparse.changes b/python-python-mimeparse.changes index 70d0cf6..1a9a694 100644 --- a/python-python-mimeparse.changes +++ b/python-python-mimeparse.changes @@ -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 diff --git a/python-python-mimeparse.spec b/python-python-mimeparse.spec index 18775b8..0a9dbbf 100644 --- a/python-python-mimeparse.spec +++ b/python-python-mimeparse.spec @@ -1,7 +1,7 @@ # # 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 # 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 -Version: 1.5.2 +Version: 1.6.0 Release: 0 -Url: http://code.google.com/p/mimeparse/ Summary: Basic functions for parsing and matching mime-type names License: MIT 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 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Provides: python-mimeparse = 0.1.4 Obsoletes: python-mimeparse < 0.1.4 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +%python_subpackages %description 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. %prep %setup -q -n python-mimeparse-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python mimeparse_test.py +%python_exec mimeparse_test.py -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE README.md -%{python_sitelib}/* +%doc LICENSE README.rst +%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/mimeparse.py* +%{python_sitelib}/python_mimeparse-%{version}-py%{python_version}.egg-info %changelog