diff --git a/husl-4.0.3.tar.gz b/husl-4.0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e04d9eb6abf633d6e36809b41340ef2808e50bab Binary files /dev/null and b/husl-4.0.3.tar.gz differ diff --git a/python-husl.spec b/python-husl.spec new file mode 100644 index 0000000000000000000000000000000000000000..3f7d894bae4928c1ad84e9ccfe083b412fc42511 --- /dev/null +++ b/python-husl.spec @@ -0,0 +1,50 @@ +%global upname husl + +Name: python-%{upname} +Version: 4.0.3 +Release: 1 +Summary: A Python implementation of HUSL +License: MIT + +URL: http://github.com/boronine/pyhusl +Source0: https://pypi.python.org/packages/source/h/husl/husl-%{version}.tar.gz +# By mistake the license is not packaged (fixed in devel version upstream) +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%global _description\ +HUSL is a human-friendly alternative to HSL (Hue, Saturation and Lightness)\ +color space. This package provides Python2 support + +%description %_description + +%package -n python3-%{upname} +Summary: A Python implementation of HUSL +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-%{upname} +HUSL is a human-friendly alternative to HSL (Hue, Saturation and Lightness) +color space. This package provides Python3 support + + +%prep +%setup -q -n %{upname}-%{version} + +find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{upname} +%doc README.md +%{python3_sitelib}/husl* +%{python3_sitelib}/__pycache__/* + +%changelog +* Wed Sep 17 2025 lvfei - 4.0.3-1 +- Initial package