b1e484c
%global debug_package %{nil}
b1e484c
%global _hardened_build 1
b1e484c
b1e484c
b1e484c
Name:           micropython
c70af0b
Version:        1.8.1
3d4d5b3
Release:        4%{?dist}
b1e484c
Summary:        Implementation of Python 3 with very low memory footprint
b1e484c
License:        MIT
b1e484c
URL:            http://micropython.org/
b1e484c
Source0:        https://github.com/micropython/micropython/archive/v%{version}.tar.gz
b1e484c
cdb89cc
# Other arches need active porting
cdb89cc
ExclusiveArch:  %{arm} %{ix86} x86_64
cdb89cc
b1e484c
BuildRequires:  python-devel
b1e484c
BuildRequires:  python3-devel
b1e484c
BuildRequires:  libffi-devel
b1e484c
BuildRequires:  readline-devel
b1e484c
BuildRequires:  execstack
1dd3998
BuildRequires:  openssl-devel
b1e484c
b1e484c
%description
b1e484c
Implementation of Python 3 with very low memory footprint
b1e484c
b1e484c
%prep
b1e484c
%setup -q -n %{name}-%{version}
b1e484c
b1e484c
# Removing due to non-free license; not required for build
b1e484c
rm -r stmhal/
b1e484c
b1e484c
# Removing pre-built binary; not required for build
b1e484c
rm cc3200/bootmgr/relocator/relocator.bin
b1e484c
b1e484c
%build
b1e484c
make -C unix V=1
b1e484c
b1e484c
execstack -c unix/micropython
b1e484c
b1e484c
%check
b1e484c
pushd unix
b1e484c
make test
b1e484c
popd
b1e484c
b1e484c
%install
b1e484c
mkdir -p %{buildroot}%{_bindir}
b1e484c
install -pm 755 unix/micropython %{buildroot}%{_bindir}
b1e484c
b1e484c
%files
b1e484c
%doc README.md
b1e484c
%license LICENSE
b1e484c
%{_bindir}/micropython
b1e484c
b1e484c
%changelog
3d4d5b3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-4
3d4d5b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3d4d5b3
7ee386b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-3
7ee386b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7ee386b
cdb89cc
* Sat Aug 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 1.8.1-2
cdb89cc
- Add ExclusiveArch, other arches need active porting
cdb89cc
c70af0b
* Wed Jun 06 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.8.1-1
c70af0b
- Update to 1.8.1
c70af0b
f2a6140
* Wed May 04 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.8-1
c70af0b
- Update to 1.8
f2a6140
ad99281
* Tue Apr 19 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.7-1
c70af0b
- Update to 1.7
ad99281
b1e484c
* Tue Apr 05 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6-3
b1e484c
- Remove license-encumbered bits in stmhal/
b1e484c
b1e484c
* Tue Apr 05 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6-2
b1e484c
- Remove cc3200/bootmgr/relocator/relocator.bin
b1e484c
- Fix license macro
b1e484c
b1e484c
* Tue Apr 05 2016 John Dulaney <jdulaney@fedoraproject.org> - 1.6-1
b1e484c
- Update to 1.6
b1e484c
b1e484c
* Tue May 20 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.2-1
b1e484c
- Initial spec