diff --git a/python-webcolors.spec b/python-webcolors.spec index f653476702e8e4061dfc69f4f6c501e40eedeb26..910eb241d5473174576135f31a79a89aff239f6a 100644 --- a/python-webcolors.spec +++ b/python-webcolors.spec @@ -1,75 +1,33 @@ -%global _empty_manifest_terminate_build 0 -Name: python-webcolors -Version: 24.8.0 -Release: 1 -Summary: A library for working with color names and color values formats defined by HTML and CSS. -License: BSD 3-Clause -URL: https://github.com/ubernostrum/webcolors +# webcolors.spec +Name: webcolors +Version: 24.11.1 +Release: 1%{?dist} +Summary: A library for working with web colors + +License: MIT +URL: https://github.com/ubernostrum/webcolors Source0: https://files.pythonhosted.org/packages/source/w/webcolors/webcolors-%{version}.tar.gz -BuildRequires: python3-pip python3-wheel -BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: pdm %description - -``webcolors`` is a module for working with HTML/CSS color definitions. - - - -%package -n python3-webcolors -Summary: A library for working with color names and color values formats defined by HTML and CSS. -Provides: python-webcolors -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%description -n python3-webcolors - -``webcolors`` is a module for working with HTML/CSS color definitions. - - -%package help -Summary: Development documents and examples for webcolors -Provides: python3-webcolors-doc -%description help - -``webcolors`` is a module for working with HTML/CSS color definitions. - +webcolors is a simple library for working with web colors in Python. %prep -%autosetup -n webcolors-%{version} +%setup -q %build -%pyproject_build +%{__python3} -mpip wheel --verbose --progress-bar off --disable-pip-version-check --use-pep517 --no-build-isolation --no-deps --wheel-dir ./build . %install -%pyproject_install webcolors==%{version} -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 - - -%files -n python3-webcolors -%{python3_sitelib}/* +%{__python3} -mpip install --no-deps --ignore-installed --prefix=%{buildroot}%{_prefix} ./build/*.whl -%files help -%{_docdir}/* +%files +%{python3_sitelib}/webcolors/* +%{python3_sitelib}/webcolors-%{version}-py*.egg-info/* %changelog -* Wed Aug 28 2024 xu_ping <707078654@qq.com> - 24.8.0-1 -- Update to 24.8.0 - -* Tue Jun 11 2024 zeng liwen - 24.6.0-1 -- Update to 24.6.0 -- Running the unit tests no longer uses a third-party test runner. -- Documentation of the HTML5 color algorithms has been updated. -- The raw mappings of color names/values are no longer publicly exposed; use the appropriate normalizing conversion functions instead of accessing the mappings directly. - -* Fri Apr 28 2023 wulei - 1.13-1 -- Update to 1.13 - -* Wed Sep 14 2022 Qiao Jijun - 1.12-1 -- Update to 1.12 - -* Mon Nov 23 2020 Python_Bot -- Package Spec generated +* Tue Apr 01 2025 Your Name - 24.11.1-1 +- Initial package \ No newline at end of file diff --git a/webcolors-24.11.1.tar.gz b/webcolors-24.11.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a15ac2716fb972dd9968d688347a5300e01e6ed4 Binary files /dev/null and b/webcolors-24.11.1.tar.gz differ diff --git a/webcolors-24.8.0.tar.gz b/webcolors-24.8.0.tar.gz deleted file mode 100644 index 7258c214694f409b8b9c195860ea96037a77dbfb..0000000000000000000000000000000000000000 Binary files a/webcolors-24.8.0.tar.gz and /dev/null differ