Blame python-microfs.spec

ea24a1
%global pypi_name microfs
ea24a1
ea24a1
Name:           python-%{pypi_name}
db32b6
Version:        1.3.1
ea24a1
ea24a1
# no tests in sdist, no tags on github
db32b6
%global commit 2fdfb2525889bf19f1f2d49c546f525855654fbc
ea24a1
%global shortcommit %(c=%{commit}; echo ${c:0:7})
ea24a1
001a81
Release:        8%{?dist}
ea24a1
Summary:        CLI and Python module to work with BBC micro:bit filesystem
ea24a1
ea24a1
License:        MIT
ea24a1
URL:            https://github.com/ntoll/microfs
ea24a1
Source0:        %{url}/archive/%{commit}/%{pypi_name}-%{version}-%{shortcommit}.tar.gz
ea24a1
BuildArch:      noarch
ea24a1
ea24a1
BuildRequires:  python3-devel
ea24a1
BuildRequires:  python3-pyserial
ea24a1
BuildRequires:  python3-pytest
ea24a1
BuildRequires:  python3-setuptools
ea24a1
ea24a1
%?python_enable_dependency_generator
ea24a1
ea24a1
%description
ea24a1
A simple command line tool and module for interacting with the limited file
ea24a1
system provided by MicroPython on the BBC micro:bit.
ea24a1
ea24a1
%package -n     python3-%{pypi_name}
ea24a1
Summary:        %{summary}
ea24a1
%{?python_provide:%python_provide python3-%{pypi_name}}
ea24a1
ea24a1
Provides:       %{pypi_name} == %{version}-%{release}
ea24a1
Provides:       ufs == %{version}-%{release}
ea24a1
ea24a1
%description -n python3-%{pypi_name}
ea24a1
A simple command line tool and module for interacting with the limited file
ea24a1
system provided by MicroPython on the BBC micro:bit.
ea24a1
ea24a1
%prep
ea24a1
%autosetup -n %{pypi_name}-%{commit}
ea24a1
# Remove bundled egg-info
ea24a1
rm -rf %{pypi_name}.egg-info
ea24a1
ea24a1
%build
ea24a1
%py3_build
ea24a1
ea24a1
%install
ea24a1
%py3_install
ea24a1
ea24a1
%check
ea24a1
%{__python3} -m pytest -vv tests
ea24a1
ea24a1
%files -n python3-%{pypi_name}
ea24a1
%license LICENSE
ea24a1
%doc README.rst
ea24a1
%{_bindir}/ufs
ea24a1
%{python3_sitelib}/__pycache__/*
ea24a1
%{python3_sitelib}/%{pypi_name}.py
31aa3e
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
ea24a1
ea24a1
%changelog
001a81
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-8
001a81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
001a81
ef3839
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-7
ef3839
- Rebuilt for Python 3.9
ef3839
c9f4bd
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
c9f4bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c9f4bd
ef9906
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-5
ef9906
- Rebuilt for Python 3.8.0rc1 (#1748018)
ef9906
802045
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-4
802045
- Rebuilt for Python 3.8
802045
910a08
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
910a08
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
910a08
a48c55
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
a48c55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a48c55
db32b6
* Tue Aug 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-1
db32b6
- Update to 1.3.1
db32b6
a47ef3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
a47ef3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a47ef3
7703d8
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-2
7703d8
- Rebuilt for Python 3.7
7703d8
ea24a1
* Tue Apr 10 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-1
ea24a1
- Initial package