From ea24a1aec4fcbd2b2c0e3192a01a796304116fbd Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Apr 10 2018 12:58:35 +0000 Subject: Initial import (#1565603) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..186f5b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/microfs-1.2.2-28aea21.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 32496cc..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-microfs - -The python-microfs package \ No newline at end of file diff --git a/python-microfs.spec b/python-microfs.spec new file mode 100644 index 0000000..cb88fc2 --- /dev/null +++ b/python-microfs.spec @@ -0,0 +1,64 @@ +%global pypi_name microfs + +Name: python-%{pypi_name} +Version: 1.2.2 + +# no tests in sdist, no tags on github +%global commit 28aea212c6cd3718b1e0fc9db5f888ac46eac534 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Release: 1%{?dist} +Summary: CLI and Python module to work with BBC micro:bit filesystem + +License: MIT +URL: https://github.com/ntoll/microfs +Source0: %{url}/archive/%{commit}/%{pypi_name}-%{version}-%{shortcommit}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pyserial +BuildRequires: python3-pytest +BuildRequires: python3-setuptools + +%?python_enable_dependency_generator + +%description +A simple command line tool and module for interacting with the limited file +system provided by MicroPython on the BBC micro:bit. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Provides: %{pypi_name} == %{version}-%{release} +Provides: ufs == %{version}-%{release} + +%description -n python3-%{pypi_name} +A simple command line tool and module for interacting with the limited file +system provided by MicroPython on the BBC micro:bit. + +%prep +%autosetup -n %{pypi_name}-%{commit} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} -m pytest -vv tests + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{_bindir}/ufs +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Tue Apr 10 2018 Miro Hrončok - 1.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..7f80366 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (microfs-1.2.2-28aea21.tar.gz) = 32962c3f52ee7e14f5258dc588127edea23cacc33ba9aeea8ea38f25b941cffd436a4b6e934872f3526130e6bf609a6afc45d06e1ea68299106bea1cbd912dde