diff --git a/fuckit-4.8.0.zip b/fuckit-4.8.0.zip new file mode 100644 index 0000000000000000000000000000000000000000..9074bb9c04ceb1d5ff4ce8b174189f9f6bbd0faf Binary files /dev/null and b/fuckit-4.8.0.zip differ diff --git a/python-fuckit.spec b/python-fuckit.spec new file mode 100644 index 0000000000000000000000000000000000000000..2c76c1ba69f34523f27628f06b80c8b1730fdf3a --- /dev/null +++ b/python-fuckit.spec @@ -0,0 +1,64 @@ +%global srcname fuckit + +Name: python-%{srcname} +Version: 4.8.0 +Release: 25%{?dist} +Summary: The Python Error Steamroller + +License: WTFPL +URL: https://github.com/ajalt/fuckitpy +Source0: https://pypi.python.org/packages/source/f/fuckit/fuckit-4.8.0.zip + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-nose + +%global _description\ +FuckIt.py uses state-of-the-art technology to make sure your Python code runs\ +whether it has any right to or not. Some code has an error? Fuck it.\ + + +%description %_description + + +%package -n python3-%{srcname} +Summary: The Python Error Steamroller +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +FuckIt.py uses state-of-the-art technology to make sure your Python code runs +whether it has any right to or not. Some code has an error? Fuck it. + + +%prep +%setup -qn %{srcname}-%{version} + +find -name '*.txt' | xargs chmod -x +find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python3-%{srcname} +# The license text is available in README.md +%doc README.md +%{python3_sitelib}/%{srcname}.py* +%{python3_sitelib}/__pycache__/%{srcname}.* +%{python3_sitelib}/%{srcname}-%{version}*.egg-info/ + + +%changelog +* Wed Jul 07 2021 yueyuankun - 4.8.0-25 +- Init project +