[python-fuckit] Import spec from review (RHBZ 1039163)

Ian Weller ianweller at fedoraproject.org
Mon Oct 6 23:12:13 UTC 2014


commit bcdb3a6a5bc903b729a285efdbf308a0f990dc82
Author: Ian Weller <ian at ianweller.org>
Date:   Mon Oct 6 18:11:51 2014 -0500

    Import spec from review (RHBZ 1039163)

 .gitignore         |    1 +
 python-fuckit.spec |  103 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9a4ba1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fuckit-4.8.0.zip
diff --git a/python-fuckit.spec b/python-fuckit.spec
new file mode 100644
index 0000000..1ae1b3b
--- /dev/null
+++ b/python-fuckit.spec
@@ -0,0 +1,103 @@
+%bcond_without python3  # with
+%global srcname fuckit
+
+Name:           python-%{srcname}
+Version:        4.8.0
+Release:        1%{?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:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-nose
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-nose
+%endif # if with_python3
+
+%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.
+
+
+%if 0%{?with_python3}
+%package -n python3-%{srcname}
+Summary:        The Python Error Steamroller
+
+%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.
+%endif # with_python3
+
+
+%prep
+%setup -qn %{srcname}-%{version}
+
+find -name '*.txt' | xargs chmod -x
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
+
+
+%build
+%{__python2} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+
+%check
+%{__python2} setup.py test
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+rm -rf %{buildroot}%{python3_sitelib}/__pycache__
+popd
+%endif # with_python3
+
+
+%files
+# The license text is available in README.md
+%doc README.md
+%{python2_sitelib}/%{srcname}.py*
+%{python2_sitelib}/%{srcname}-%{version}*.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{srcname}
+# The license text is available in README.md
+%doc README.md
+%{python3_sitelib}/%{srcname}.py*
+%{python3_sitelib}/%{srcname}-%{version}*.egg-info
+%endif # with_python3
+
+
+%changelog
+* Mon Sep 15 2014 Ian Weller <ian at ianweller.org> - 4.8.0-1
+- Update to 4.8.0 and fix packaging concerns
+
+* Fri Dec 06 2013 Ian Weller <iweller at redhat.com> - 1.0.0-1.20131206gitb8cf18f
+- Initial package build
diff --git a/sources b/sources
index e69de29..bcce7b0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+56a206c963d857bb1b97fef55acc2759  fuckit-4.8.0.zip


More information about the scm-commits mailing list