diff --git a/6.0.1.tar.gz b/6.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f1f74bafac527919b277ec3786ad73911afdcd43 Binary files /dev/null and b/6.0.1.tar.gz differ diff --git a/flask_cors-5.0.0.tar.gz b/flask_cors-5.0.0.tar.gz deleted file mode 100644 index 4c9fdfb0b7efb21d71c8098fe027b698e9592b80..0000000000000000000000000000000000000000 Binary files a/flask_cors-5.0.0.tar.gz and /dev/null differ diff --git a/flask-cors.spec b/python-Flask-Cors.spec similarity index 69% rename from flask-cors.spec rename to python-Flask-Cors.spec index 6028050b2ff0945753b4444f49330f1a59f6c44c..008231db71435100fcfa33564969e21c0904d767 100755 --- a/flask-cors.spec +++ b/python-Flask-Cors.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-Flask-Cors -Version: 5.0.0 +Version: 6.0.1 Release: 1 Summary: A Flask extension adding a decorator for CORS support License: MIT URL: https://github.com/corydolphin/flask-cors -Source0: https://files.pythonhosted.org/packages/source/F/Flask-Cors/flask_cors-%{version}.tar.gz +Source0: https://github.com/corydolphin/flask-cors/archive/refs/tags/%{version}.tar.gz BuildArch: noarch Requires: python3-Flask @@ -19,7 +19,10 @@ A Flask extension for handling Cross Origin Resource Sharing (CORS), making cros Summary: A Flask extension adding a decorator for CORS support Provides: python-Flask-Cors BuildRequires: python3-devel -BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-pytest +BuildRequires: python3-flask %description -n python3-Flask-Cors A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible. @@ -30,46 +33,36 @@ Provides: python3-Flask-Cors-doc A Flask extension for handling Cross Origin Resource Sharing (CORS), making cross-origin AJAX possible. %prep -%autosetup -n flask_cors-%{version} -p1 +%autosetup -n flask-cors-%{version} -p1 +echo "__version__ = '%{version}'" > flask_cors/version.py %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi -pushd %{buildroot} -if [ -d usr/lib ]; then - find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/lib64 ]; then - find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/bin ]; then - find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst -fi -if [ -d usr/sbin ]; then - find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst -fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi -popd -mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . - -%files -n python3-Flask-Cors -f filelist.lst -%dir %{python3_sitelib}/* - -%files help -f doclist.lst + +%check +%pytest + +%files -n python3-Flask-Cors +%license LICENSE +%doc CHANGELOG.md README.rst +%{python3_sitelib}/* + +%files help %{_docdir}/* %changelog +* Tue Jul 29 2025 wangkai <13474090681@163.com> - 6.0.1-1 +- Update to 6.0.1 +- Fix CVE-2024-6839 CVE-2024-6844 CVE-2024-6866 + * Wed Sep 18 2024 yaoxin - 5.0.0-1 - Update to 5.0.0: * Breaking: Change default to disable private network access diff --git a/flask-cors.yaml b/python-Flask-Cors.yaml similarity index 82% rename from flask-cors.yaml rename to python-Flask-Cors.yaml index 77e8a1373dd1d8707a9182f5a0d2354f75ebfe1e..7bfe74cef1e699eeec4092ee8859b71d477c0b60 100644 --- a/flask-cors.yaml +++ b/python-Flask-Cors.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: corydolphin/flask-cors -tag_prefix: ^v +tag_prefix: ^ separator: "."