From ccac4793f3c22ccc8b55cd3943781275a2871199278a37f2bf60bacfc8abcbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 7 Nov 2019 12:52:09 +0000 Subject: [PATCH] Accepting request 746243 from home:Guillaume_G:branches:hardware Initial version 3.4 OBS-URL: https://build.opensuse.org/request/show/746243 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-spidev?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + LICENSE | 21 ++++++++++++++++ python-spidev.changes | 10 ++++++++ python-spidev.spec | 57 +++++++++++++++++++++++++++++++++++++++++++ spidev-3.4.tar.gz | 3 +++ 6 files changed, 115 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 python-spidev.changes create mode 100644 python-spidev.spec create mode 100644 spidev-3.4.tar.gz 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/LICENSE b/LICENSE new file mode 100644 index 0000000..f55a09c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Stephen Caudle + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-spidev.changes b/python-spidev.changes new file mode 100644 index 0000000..deadff9 --- /dev/null +++ b/python-spidev.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 6 14:13:06 UTC 2019 - Guillaume GARDET + +- Add missing LICENSE file + +------------------------------------------------------------------- +Wed Nov 6 09:28:38 UTC 2019 - Guillaume GARDET + +- Initial version 3.4 + diff --git a/python-spidev.spec b/python-spidev.spec new file mode 100644 index 0000000..7b114d1 --- /dev/null +++ b/python-spidev.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-spidev +# +# Copyright (c) 2019 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-%{**}} + +%define orig_name spidev + +Name: python-spidev +Version: 3.4 +Release: 0 +Summary: Python module for interfacing with SPI devices +License: MIT +Url: https://pypi.org/project/spidev/ +Source0: https://github.com/doceme/py-spidev/archive/v%{version}.tar.gz#/%{orig_name}-%{version}.tar.gz +# LICENSE file missing from tarball - https://github.com/doceme/py-spidev/issues/89 +Source1: https://raw.githubusercontent.com/doceme/py-spidev/master/LICENSE +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros + +%description +This package contains the python module for interfacing with SPI devices from user space via the spidev linux kernel driver. + +%python_subpackages + +%prep +%setup -q -n %{orig_name}-%{version} +cp %{SOURCE1} . + +%build +%python_build + +%install +%python_install -O1 --skip-build + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitearch}/*.so +%{python_sitearch}/*.egg-info + +%changelog diff --git a/spidev-3.4.tar.gz b/spidev-3.4.tar.gz new file mode 100644 index 0000000..a0bcb5d --- /dev/null +++ b/spidev-3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4314e52f573d95233c907f307558893313a8a606e197e77bb711526b0e179e80 +size 10222