From 59e8c149bd90d997d89b6816ed62784c8ced641feb18b894d604b4907c793b93 Mon Sep 17 00:00:00 2001 From: Todd R Date: Mon, 29 Oct 2018 15:13:05 +0000 Subject: [PATCH] Required by the latest version of python-flexx OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dialite?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + dialite-0.5.1.tar.gz | 3 ++ python-dialite.changes | 4 +++ python-dialite.spec | 63 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dialite-0.5.1.tar.gz create mode 100644 python-dialite.changes create mode 100644 python-dialite.spec 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/dialite-0.5.1.tar.gz b/dialite-0.5.1.tar.gz new file mode 100644 index 0000000..773b6f7 --- /dev/null +++ b/dialite-0.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93d19dd39b8607ae1342644dff242f26caac098af7a9601a9ab3e24c4c4eb61e +size 7456 diff --git a/python-dialite.changes b/python-dialite.changes new file mode 100644 index 0000000..29d9f4e --- /dev/null +++ b/python-dialite.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Oct 29 14:51:40 UTC 2018 - Todd R + +- Initial version diff --git a/python-dialite.spec b/python-dialite.spec new file mode 100644 index 0000000..3a02b84 --- /dev/null +++ b/python-dialite.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-dialite +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Test files missing. See https://github.com/flexxui/pscript/pull/35 +Name: python-dialite +Version: 0.5.1 +Release: 0 +Summary: Lightweight Python library to show simple dialogs +License: BSD-2-Clause +Group: Development/Languages/Python +Url: http://dialite.readthedocs.io +Source: https://files.pythonhosted.org/packages/source/d/dialite/dialite-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Recommends: zenity +BuildArch: noarch + +%python_subpackages + +%description +Dialite is a pure Python package to show dialogs. It is lightweight, +cross-platform, and has no dependencies. It provides a handful of +functions, each a verb, that can be used to inform(), warn() +or fail() the user, or to ask_ok(), ask_retry() or ask_yesno(). + +Dialite can show dialogs on Window, OS X and Linux, and falls back to +a terminal interface if dialogs are unavailable (e.g. if not supported +by the platform, or for SSH connections). + +%prep +%setup -q -n dialite-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog