From 28ed67e80f89078664d2f51eb1bec738f306c5abd47606167cba41de6e502a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 13 Dec 2024 12:15:54 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-python-mimeparse revision 5e5c42289f6f322e58e8d33ef302ac14 --- python-mimeparse-1.6.0.tar.gz | 3 --- python-python-mimeparse.changes | 13 ++++++++++++- python-python-mimeparse.spec | 22 +++++++++------------- python_mimeparse-2.0.0.tar.gz | 3 +++ 4 files changed, 24 insertions(+), 17 deletions(-) delete mode 100644 python-mimeparse-1.6.0.tar.gz create mode 100644 python_mimeparse-2.0.0.tar.gz diff --git a/python-mimeparse-1.6.0.tar.gz b/python-mimeparse-1.6.0.tar.gz deleted file mode 100644 index 6c571d6..0000000 --- a/python-mimeparse-1.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -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 b26acec..97788a3 100644 --- a/python-python-mimeparse.changes +++ b/python-python-mimeparse.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Sep 10 13:29:06 UTC 2024 - Dirk Müller + +- update to 2.0.0: + * `python-mimeparse` brings support for CPython 3.13 (by + addressing the removal of the `cgi` module), and drops + support for Python 3.7. Also included are packaging, tooling, + and CI improvements. `python-mimeparse` is otherwise a stable + and mature project that hopefully does not need much active + development. + ------------------------------------------------------------------- Fri Apr 21 12:32:19 UTC 2023 - Dirk Müller @@ -65,7 +76,7 @@ Mon Apr 29 12:35:22 UTC 2013 - dmueller@suse.com - update to 0.1.4: * no changelog available -- rename to proper package name +- rename to proper package name ------------------------------------------------------------------- Wed Mar 21 22:17:52 UTC 2012 - saschpe@gmx.de diff --git a/python-python-mimeparse.spec b/python-python-mimeparse.spec index ba3056c..bf7ce4e 100644 --- a/python-python-mimeparse.spec +++ b/python-python-mimeparse.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-mimeparse # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python %{?sle15_python_module_pythons} Name: python-python-mimeparse -Version: 1.6.0 +Version: 2.0.0 Release: 0 Summary: Basic functions for parsing and matching mime-type names License: MIT URL: https://github.com/dbtsai/python-mimeparse -Source: https://files.pythonhosted.org/packages/source/p/python-mimeparse/python-mimeparse-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/python-mimeparse/python_mimeparse-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch -%ifpython2 -Obsoletes: %{oldpython}-mimeparse < 0.1.4 -Provides: %{oldpython}-mimeparse = %{version} -%endif %python_subpackages %description @@ -42,13 +38,13 @@ 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} +%autosetup -p1 -n python_mimeparse-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -59,6 +55,6 @@ the HTTP specification [RFC 2616] for a complete explanation. %doc README.rst %pycache_only %{python_sitelib}/__pycache__ %{python_sitelib}/mimeparse.py* -%{python_sitelib}/python_mimeparse-%{version}-py%{python_version}.egg-info +%{python_sitelib}/python_mimeparse-%{version}.dist-info %changelog diff --git a/python_mimeparse-2.0.0.tar.gz b/python_mimeparse-2.0.0.tar.gz new file mode 100644 index 0000000..d93e9e3 --- /dev/null +++ b/python_mimeparse-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b9a9dcf7aa82465e31bd667f5cb7000604811dce83554f1c8a43693a32cb303 +size 7162