File platformio-core.spec of Package platformio-core
#
# spec file for package platformio-core
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
Name: platformio-core
Version: 5.0.3
Release: 0
Summary: Cross-platform code builder and missing library manager
License: Apache-2.0
Group: Development/Tools/Other
URL: https://github.com/platformio/platformio
Source: https://github.com/platformio/platformio-core/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python3-Sphinx
BuildRequires: python3-setuptools
BuildRequires: systemd-rpm-macros
Recommends: cross-avr-binutils
Recommends: cross-avr-gcc7
Requires: python3-bottle < 0.13
Requires: python3-click
Requires: python3-colorama
Requires: python3-lockfile
Requires: python3-marshmallow >= 2.20.5
Requires: python3-pyelftools >= 0.25
Requires: python3-pyserial
Requires: python3-requests
Requires: python3-semantic_version >= 2.8.1
Requires: python3-tabulate >= 0.8.3
Requires: scons
BuildArch: noarch
%description
A cross-platform code builder and the missing library manager (Atmel AVR & SAM,
Freescale Kinetis, Nordic nRF51, NXP LPC, ST STM32, TI MSP430 & Tiva, Teensy,
Arduino, mbed, libOpenCM3, etc.)
%prep
%setup -q
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -d -m 755 %{buildroot}%{_udevrulesdir}
install -m 644 scripts/99-platformio-udev.rules %{buildroot}%{_udevrulesdir}
%fdupes %{buildroot}
%post
%{?udev_rules_update:%udev_rules_update}
%files
%doc README.rst HISTORY.rst
%license LICENSE
%{_bindir}/*
%{python3_sitelib}/*
%{_udevrulesdir}/*
%changelog