diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..8bf9d455cbfaa4cbb882b5b65e72085b4e1d1528 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,19 @@ +Copyright (c) 2015 Alexei Boronine + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. 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..b2e523c6a560522d97ae9fb7f0b3ef6740c4ab85 --- /dev/null +++ b/python-husl.spec @@ -0,0 +1,53 @@ +%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) +Source1: https://raw.githubusercontent.com/husl-colors/husl-python/master/LICENSE.txt +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 +cp -p %{SOURCE1} . +%py3_build + +%install +%py3_install + +%files -n python3-%{upname} +%doc README.md +%license LICENSE.txt +%{python3_sitelib}/husl* +%{python3_sitelib}/__pycache__/* + +%changelog +* Wed Jul 07 2021 liliang - 4.0.3-1 +- Init project \ No newline at end of file