A new user interface for you!

File python-enviro-phat.spec of Package python-enviro-phat

# spec file for package python-enviro-phat
# 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-%{**}}
%define         skip_python2 1
%bcond_with     test
Name:           python-enviro-phat
Version:        1.0.0
Release:        0
Summary:        Python libraries and examples for the Pimoroni Enviro pHAT
License:        MIT
Group:          Development/Languages/Python
URL:            https://github.com/pimoroni/enviro-phat
Source:         enviro-phat-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-smbus
Requires:       python-RPi.GPIO
BuildArch:      noarch

The Pimoroni Enviro pHAT boast a plethora of sensors and connectivity
for measuring your environment.

Enviro pHAT includes:

    * An LSM303D accelerometer/magnetometer for detecting orientation, motion and heading
    * A BMP280 temperature/pressure sensor
    * A TCS3472 colour sensor, for detecting the amount and colour of light
    * An ADS1015 analog sensor with four 3.3v tolerant channels for your external sensors
    * A 5v power supply pin for powering your sensors,
      which you can regulate or divide to 3v if needed
    * Two LEDs connected to GPIO #4 for illuminating objects over the colour sensor

%setup -q -n enviro-phat-%{version}

cd library

cd library

%files %{python_files}
%doc README.md examples