From 96ab700a27b1f7e1eaec8121751f6ee6f49872ff Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 19 Nov 2020 16:13:25 -0800 Subject: + python-bowler and dependencies Signed-off-by: Michel Alexandre Salim --- python/python-fissix.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 python/python-fissix.spec (limited to 'python/python-fissix.spec') diff --git a/python/python-fissix.spec b/python/python-fissix.spec new file mode 100644 index 0000000..d2fe5f4 --- /dev/null +++ b/python/python-fissix.spec @@ -0,0 +1,68 @@ +%global srcname fissix + +%bcond_without tests + +Name: python-%{srcname} +Version: 20.8.0 +Release: 1%{?dist} +Summary: Monkeypatches to override default behavior of lib2to3 +License: Python +URL: https://github.com/jreese/fissix +Source0: %{pypi_source} +Patch0: %{srcname}-dont_ship_tests.patch + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%if %{with tests} +BuildRequires: python3-test +BuildRequires: %{py3_dist appdirs} +BuildRequires: %{py3_dist pytest} +%endif + + +%global _description %{expand: +Backport of latest lib2to3, with enhancements.} + + +%description %_description + + +%package -n python3-%{srcname} +Summary: %{summary} +# not sure why but automatic requires don't work +Requires: %{py3_dist appdirs} + +%description -n python3-%{srcname} %_description + + +%prep +%autosetup -p1 -n %{srcname}-%{version} +sed -i '1d' fissix/pgen2/token.py + + +%build +%py3_build + + +%install +%py3_install +cp -p fissix/*.txt %{buildroot}%{python3_sitelib}/%{srcname}/ + + +%check +# mv fissix-tests fissix/tests +%{python3} -m pytest --verbose fissix/tests + + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Thu Nov 19 2020 Michel Alexandre Salim - 0.9.0-1 +- Initial package -- cgit