File sense-hat.spec of Package sense-hat

#
# spec file for package python-sense-hat
#
# 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 http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-sense-hat
Version:        2.2.0
Release:        0
License:        BSD-3-Clause 
Summary:        Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission
Url:            https://github.com/RPi-Distro/python-sense-hat
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/s/sense-hat/sense-hat-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
Requires:       %{python_module pillow}
Requires:       %{python_module numpy}
BuildArch:      noarch

%python_subpackages

%description
=========
Sense HAT
=========

Python module to control the `Raspberry Pi`_ Sense HAT used in the `Astro Pi`_ mission - an education outreach programme for UK schools sending code experiments to the International Space Station.

Open Source
===========

* The code is licensed under the `BSD Licence`_
* The project source code is hosted on `GitHub`_
* Please use `GitHub issues`_ to submit bugs and report issues

.. _Raspberry Pi: https://www.raspberrypi.org/
.. _Astro Pi: http://www.astro-pi.org/
.. _pythonhosted.org/sense-hat: http://pythonhosted.org/sense-hat/
.. _Dave Honess: https://github.com/davidhoness
.. _Ben Nuttall: https://github.com/bennuttall
.. _Serge Schneider: https://github.com/XECDesign
.. _Dave Jones: https://github.com/waveform80
.. _Tyler Laws: https://github.com/tyler-laws
.. _BSD Licence: http://opensource.org/licenses/BSD-3-Clause
.. _GitHub: https://github.com/RPi-Distro/python-sense-hat
.. _GitHub Issues: https://github.com/RPi-Distro/python-sense-hat/issues
.. _`The Pi Hut`: http://thepihut.com/products/raspberry-pi-sense-hat-astro-pi
.. _`Pimoroni`: https://shop.pimoroni.com/products/raspberry-pi-sense-hat
.. _`Amazon (UK)`: http://www.amazon.co.uk/Raspberry-Pi-2483095-Sense-HAT/dp/B014T2IHQ8/
.. _element14: https://www.element14.com/community/docs/DOC-78155/l/raspberry-pi-sense-hat
.. _adafruit: https://www.adafruit.com/products/2738
.. _Amazon (USA): http://www.amazon.com/Raspberry-Pi-Sense-HAT-AstroPi/dp/B014HDG74S

%prep
%setup -q -n sense-hat-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by