commit 9ce9d222e7abc46c8f7b2eab075fe293cfa999e90b8a576d4f5709b05decf74a Author: Steve Kowalik Date: Wed Jun 4 06:16:08 2025 +0000 - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-technicolor?expand=0&rev=9 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-technicolor.changes b/python-technicolor.changes new file mode 100644 index 0000000..0c2ab0a --- /dev/null +++ b/python-technicolor.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Wed Jun 4 06:08:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Tue May 19 08:03:12 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Thu Jun 6 05:30:56 UTC 2019 - pgajdos@suse.com + +- note there are no tests +- call spec-cleaner +- require setuptools + +------------------------------------------------------------------- +Mon Nov 5 20:17:39 UTC 2018 - Todd R + +- Initial version diff --git a/python-technicolor.spec b/python-technicolor.spec new file mode 100644 index 0000000..0dbbcda --- /dev/null +++ b/python-technicolor.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-technicolor +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-technicolor +Version: 2017.1.16.1544 +Release: 0 +Summary: Python package for logging in colour +License: GPL-3.0-only +URL: https://github.com/wdbm/technicolor +Source: https://files.pythonhosted.org/packages/source/t/technicolor/technicolor-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Technicolor provides logging in colour and logging of function usage by +means of a decorator. + +%prep +%setup -q -n technicolor-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/technicolor +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# no testsuite found + +%post +%python_install_alternative technicolor + +%postun +%python_uninstall_alternative technicolor + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/technicolor +%{python_sitelib}/technicolor.py +%pycache_only %{python_sitelib}/__pycache__/technicolor.*.pyc +%{python_sitelib}/technicolor-%{version}.dist-info + +%changelog diff --git a/technicolor-2017.1.16.1544.tar.gz b/technicolor-2017.1.16.1544.tar.gz new file mode 100644 index 0000000..6ab8b19 --- /dev/null +++ b/technicolor-2017.1.16.1544.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:667c2fad8265c13610eed331d2ec758874dc1e550ece5804bbed9187f2df2bea +size 15275