commit 43f11c1b4c496a84a08cecda62258b029caaeeb2c36a101ef5e68783d563fbe2 Author: Tomáš Chvátal Date: Tue Mar 17 07:12:49 2020 +0000 Accepting request 785678 from home:malcolmlewis:TESTING Hi, first off, thanks for all the pointers. I think I have addressed them all now... Also if accepted, please add me as Maintainer. OBS-URL: https://build.opensuse.org/request/show/785678 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysol-cards?expand=0&rev=1 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/pysol_cards-0.8.8.tar.gz b/pysol_cards-0.8.8.tar.gz new file mode 100644 index 0000000..e385a45 --- /dev/null +++ b/pysol_cards-0.8.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45b3b6a33515e20da6b166f50fd81b6944040479fe8e6758bc14cf908f541c70 +size 19517 diff --git a/python-pysol-cards.changes b/python-pysol-cards.changes new file mode 100644 index 0000000..4062bf0 --- /dev/null +++ b/python-pysol-cards.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Mar 14 14:59:47 UTC 2020 - malcolmlewis@opensuse.org + +- Initial build at version 0.8.8. + diff --git a/python-pysol-cards.spec b/python-pysol-cards.spec new file mode 100644 index 0000000..93f5306 --- /dev/null +++ b/python-pysol-cards.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pysol-cards.spec +# +# Copyright (c) 2020 Malcolm J Lewis +# +# 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/ +# + +%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pysol-cards +Version: 0.8.8 +Release: 0 +Summary: Python module for pysol-cards +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://pypi.org/project/pysol-cards/ +Source: https://pypi.io/packages/source/p/pysol_cards/pysol_cards-%{version}.tar.gz +BuildRequires: %{python_module oslotest} +BuildRequires: %{python_module pbr >= 2.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module random2} +BuildRequires: %{python_module six} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +## MANUAL BEGIN ## +Requires: python-random2 +Requires: python-six +## MANUAL END ## +BuildArch: noarch +%python_subpackages + +%description +This module allows the python developer to generate the initial deals of some +PySol FC games. It also supports PySol legacy deals and Microsoft FreeCell / +Freecell Pro deals. + +%prep +%setup -q -n pysol_cards-%{version} +# Fix rpm runtime dependency rpmlint error replace the shebang in all the scripts with %%{_bindir}/python3 +find . -name "*.py" -exec sed -i 's|#! %{_bindir}/env python|#!%{_bindir}/python3|' {} ";" + +%build +export LC_ALL=en_US.utf8 +%python_build + +%install +export LC_ALL=en_US.utf8 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib}/ + +%check +%pytest + +%files %{python_files} +%doc AUTHORS ChangeLog CONTRIBUTING.rst HACKING.rst +%license LICENSE +%{python_sitelib}/* + +%changelog