From 8c35a7d443fa38cc80891e7430d98df5c4f39dcf28711c421eb1aca11392fe3d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 15 Jun 2021 17:37:44 +0000 Subject: [PATCH] - Don't own everything under sitelib. - Run some tests (and use GitHub tarball to get it) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crayons?expand=0&rev=11 --- crayons-0.4.0.tar.gz | 4 ++-- python-crayons.changes | 6 ++++++ python-crayons.spec | 16 ++++++++++++---- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/crayons-0.4.0.tar.gz b/crayons-0.4.0.tar.gz index 65d5dfa..8a9aac6 100644 --- a/crayons-0.4.0.tar.gz +++ b/crayons-0.4.0.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bd33b7547800f2cfbd26b38431f9e64b487a7de74a947b0fafc89b45a601813f -size 4582 +oid sha256:b4a95433721246b157e057eb6c3119a57746707a9c826ad4692de1d1a2b70f37 +size 5374 diff --git a/python-crayons.changes b/python-crayons.changes index d33a276..0df13e5 100644 --- a/python-crayons.changes +++ b/python-crayons.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 15 17:32:37 UTC 2021 - Matej Cepl + +- Don't own everything under sitelib. +- Run some tests (and use GitHub tarball to get it) + ------------------------------------------------------------------- Wed Jan 6 04:58:19 UTC 2021 - Steve Kowalik diff --git a/python-crayons.spec b/python-crayons.spec index 18647b7..a98e5be 100644 --- a/python-crayons.spec +++ b/python-crayons.spec @@ -17,13 +17,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define modname crayons Name: python-crayons -Version: 0.4.0 +Version: 0.4.0 Release: 0 Summary: Colored strings for terminal usage License: MIT URL: https://github.com/MasterOdin/crayons -Source: https://files.pythonhosted.org/packages/source/c/crayons/crayons-%{version}.tar.gz +# Source: https://files.pythonhosted.org/packages/source/c/crayons/crayons-%%{version}.tar.gz +Source: https://github.com/MasterOdin/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module colorama} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros Requires: python-colorama @@ -36,7 +39,7 @@ Included colors are red, green, yellow, blue, black, magenta, cyan, white, and normal. %prep -%setup -q -n crayons-%{version} +%setup -q -n %{modname}-%{version} %build %python_build @@ -44,9 +47,14 @@ and normal. %install %python_install +%check +%python_exec test_crayons.py + %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/%{modname}.py +%{python_sitelib}/%{modname}-%{version}-py*.egg-info +%pycache_only %{python_sitelib}/__pycache__/%{modname}* %changelog