81d1541
%global pypi_name pyspiflash
81d1541
81d1541
Name:           python-%{pypi_name}
9f4a7b8
Version:        0.6.3
ecbda21
Release:        7%{?dist}
81d1541
Summary:        Python SPI data flash device drivers
81d1541
81d1541
License:        MIT
81d1541
URL:            https://github.com/eblot/pyspiflash
eff7461
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
81d1541
BuildArch:      noarch
81d1541
81d1541
%description
81d1541
SPI flash devices, also known as DataFlash are commonly found in embedded
81d1541
products, to store firmware, microcode or configuration parameters.
81d1541
81d1541
%package -n python3-%{pypi_name}
81d1541
Summary:        %{summary}
81d1541
81d1541
BuildRequires:  python3-devel
81d1541
BuildRequires:  python3-setuptools
81d1541
#BuildRequires:  python3-pyftdi
81d1541
%{?python_provide:%python_provide python3-%{pypi_name}}
81d1541
81d1541
%description -n python3-%{pypi_name}
81d1541
SPI flash devices, also known as DataFlash are commonly found in embedded
81d1541
products, to store firmware, microcode or configuration parameters.
81d1541
81d1541
%prep
81d1541
%autosetup -n %{pypi_name}-%{version}
81d1541
81d1541
%build
81d1541
%py3_build
81d1541
81d1541
%install
81d1541
%py3_install
81d1541
81d1541
# Not running tests as they try to create a device
81d1541
#%check
81d1541
#PYTHONPATH=%{buildroot}/%{python3_sitelib} %{__python3} i2cflash/tests/serialeeprom.py
81d1541
81d1541
%files -n python3-%{pypi_name}
1f3bcf3
%doc README.rst spiflash/AUTHORS
1f3bcf3
%license LICENSE
81d1541
%{python3_sitelib}/spiflash/
81d1541
%{python3_sitelib}/%{pypi_name}*.egg-info
81d1541
81d1541
%changelog
ecbda21
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-7
ecbda21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ecbda21
1fe5d66
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-6
1fe5d66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1fe5d66
a43f773
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.6.3-5
a43f773
- Rebuilt for Python 3.10
a43f773
98e671d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-4
98e671d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
98e671d
33f406b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-3
33f406b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
33f406b
fd394b8
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.3-2
fd394b8
- Rebuilt for Python 3.9
fd394b8
9f4a7b8
* Fri May 08 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.3-1
9f4a7b8
- Update to latest upstream release 0.2.2 (rhbz#1833300)
9f4a7b8
eff7461
* Fri Apr 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.2-1
eff7461
- Update to latest upstream release 0.6.2 (rhbz#1822562)
eff7461
a0c2298
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
a0c2298
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
a0c2298
2fa998d
* Thu Nov 28 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.6.1-1
2fa998d
- Update to latest upstream release 0.6.1
2fa998d
d1ed20b
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-3
d1ed20b
- Rebuilt for Python 3.8.0rc1 (#1748018)
d1ed20b
6338079
* Thu Aug 22 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.2-2
6338079
- Rebuilt for Python 3.8
6338079
81d1541
* Wed Jul 24 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.5.2-1
81d1541
- Initial package for Fedora