From 55c08e34d0395a2ed491f949a96ebe880c551d9d7eeef71195dc1ff9bd5b08ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 15 Mar 2019 21:26:29 +0000 Subject: [PATCH] update OBS-URL: https://build.opensuse.org/package/show/system:homeautomation:home-assistant/python-bluepy?expand=0&rev=2 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + _service | 14 +++++++++ bluepy-1.1.4.obscpio | 3 ++ bluepy.obsinfo | 5 ++++ python-bluepy.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 115 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 bluepy-1.1.4.obscpio create mode 100644 bluepy.obsinfo create mode 100644 python-bluepy.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/_service b/_service new file mode 100644 index 0000000..d9a7db3 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/IanHarvey/bluepy.git + git + 1.1.4 + v/1.1.4 + + + + *.tar + xz + + + diff --git a/bluepy-1.1.4.obscpio b/bluepy-1.1.4.obscpio new file mode 100644 index 0000000..2b0bbb5 --- /dev/null +++ b/bluepy-1.1.4.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8919008525660c21e7e4e95fbbc6b7e7b68da5494ee963e659155a3e1f246ee9 +size 1275404 diff --git a/bluepy.obsinfo b/bluepy.obsinfo new file mode 100644 index 0000000..8b24236 --- /dev/null +++ b/bluepy.obsinfo @@ -0,0 +1,5 @@ +name: bluepy +version: 1.1.4 +mtime: 1510592777 +commit: 117ac3de7a34e47e5e0db91ace93183c0e6aceb5 + diff --git a/python-bluepy.spec b/python-bluepy.spec new file mode 100644 index 0000000..3496fe9 --- /dev/null +++ b/python-bluepy.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-attrs +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test + +Name: python-bluepy +Version: 1.1.4 +Release: 0 +Summary: Automation Library for Yamaha Network receivers +License: GPL +Group: Python interface to Bluetooth LE on Linux +Url: https://github.com/wuub/rxv +Source: bluepy-%{version}.tar.xz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +%if %{with test} +BuildRequires: %{python_module pytest} +%endif +BuildArch: noarch + +%python_subpackages + +%description + +%prep +%setup -q -n rxv-%{version} + +%build +%python_build + +%install +%python_install +%fdupes %{buildroot}%{_prefix} + +%if %{with test} +%check +sed -i -e "s/'coveralls'/'python-coveralls'/" setup.py +%{python_expand virtualenv-%$python_bin_suffix --system-site-packages --no-download testvenv-%$python_bin_suffix +testvenv-%$python_bin_suffix/bin/pip install -e .[test,build] +export PYTHONPATH=$PWD/testvenv-%$python_bin_suffix/lib/python%$python_bin_suffix/site-packages/:$PWD +testvenv-%$python_bin_suffix/bin/python -m pytest && rm -Rf testvenv-%$python_bin_suffix +} +%endif + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* + +%changelog