diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a53a00f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/readlike-0.1.3.tar.gz diff --git a/python-readlike.spec b/python-readlike.spec new file mode 100644 index 0000000..ffff090 --- /dev/null +++ b/python-readlike.spec @@ -0,0 +1,51 @@ +%global pypi_name readlike + +Name: python-%{pypi_name} +Version: 0.1.3 +Release: 1%{?dist} +Summary: Readline-like line editing module + +License: MIT +URL: https://github.com/jangler/readlike +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +A Python module that provides GNU Readline-like line editing functions (the +default Emacs-style ones). + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +A Python module that provides GNU Readline-like line editing functions (the +default Emacs-style ones). + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%pytest -v tests + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%changelog +* Sat Sep 19 2020 Fabian Affolter - 0.1.3-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..36d5aa2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (readlike-0.1.3.tar.gz) = 60bcf4f5b6b80829d52a1755d7dbad2904ef39fe7b85538363121ed9d2ff1367a91437fcaa932a921e23028448080bceb58019d975e95f54578745bdd88b7147