From 9efe57ad483a359dcfcdd8ab0de660782f4511f1 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 22:10:49 +0300 Subject: [PATCH] import python-husl-4.0.3-31.el10 --- .gitignore | 1 + .python-husl.metadata | 1 + SOURCES/LICENSE.txt | 19 +++++ SPECS/python-husl.spec | 161 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 182 insertions(+) create mode 100644 .gitignore create mode 100644 .python-husl.metadata create mode 100644 SOURCES/LICENSE.txt create mode 100644 SPECS/python-husl.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7fd1e84 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/husl-4.0.3.tar.gz diff --git a/.python-husl.metadata b/.python-husl.metadata new file mode 100644 index 0000000..8a32c67 --- /dev/null +++ b/.python-husl.metadata @@ -0,0 +1 @@ +2a9c3e2f5c8be35c23746222aba4350e14b91f7d SOURCES/husl-4.0.3.tar.gz diff --git a/SOURCES/LICENSE.txt b/SOURCES/LICENSE.txt new file mode 100644 index 0000000..8bf9d45 --- /dev/null +++ b/SOURCES/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/SPECS/python-husl.spec b/SPECS/python-husl.spec new file mode 100644 index 0000000..f2422ba --- /dev/null +++ b/SPECS/python-husl.spec @@ -0,0 +1,161 @@ +%global upname husl + +Name: python-%{upname} +Version: 4.0.3 +Release: 31%{?dist} +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 +* Sun Jan 05 2025 Arkady L. Shane - 4.0.3-31 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 4.0.3-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 4.0.3-30 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 4.0.3-29 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 4.0.3-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 4.0.3-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 4.0.3-26 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 4.0.3-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 4.0.3-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 4.0.3-23 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 4.0.3-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 4.0.3-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 4.0.3-20 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.3-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 4.0.3-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 4.0.3-17 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 4.0.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 4.0.3-15 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 4.0.3-14 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 4.0.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 4.0.3-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Nov 12 2018 Miro Hrončok - 4.0.3-11 +- Subpackage python2-husl has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 4.0.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 4.0.3-9 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 4.0.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 19 2018 Iryna Shcherbina - 4.0.3-7 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 4.0.3-6 +- Python 2 binary package renamed to python2-husl + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 4.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 4.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 4.0.3-3 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 4.0.3-2 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Sat Jul 02 2016 José Abílio Matos - 4.0.3-1 +- update to 4.0.3 + +* Thu Feb 04 2016 Fedora Release Engineering - 4.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 4.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 4.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Nov 21 2014 Sergio Pascual - 4.0.1-1 +- Initial SPEC