mayorga pushed to python-spec (master). "Initial import (#1124111)."

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Apr 29 21:27:48 UTC 2015


>From 111640e788c6de287a6ac788da6671a3f414acc8 Mon Sep 17 00:00:00 2001
From: Eduardo Mayorga <mayorga at fedoraproject.org>
Date: Wed, 29 Apr 2015 15:27:11 -0600
Subject: Initial import (#1124111).


diff --git a/.gitignore b/.gitignore
index e69de29..55a0328 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/spec-1.0.0.tar.gz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..50b4f89
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Jeffrey Forcier.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/python-spec.spec b/python-spec.spec
new file mode 100644
index 0000000..954d6c7
--- /dev/null
+++ b/python-spec.spec
@@ -0,0 +1,118 @@
+%global with_python3 1
+
+%if 0%{?rhel} && 0%{?rhel} <= 7
+%global with_python3 0
+%endif
+
+%global pypi_name spec
+
+Name:           python-%{pypi_name}
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Specification-style output for python2-nose
+
+License:        MIT
+URL:            https://github.com/bitprophet/spec
+Source0:        https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# LICENSE file from Github
+# https://raw.githubusercontent.com/bitprophet/spec/master/LICENSE
+Source1:        LICENSE
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%endif # if with_python3
+
+Requires:       python-nose >= 1.3
+Requires:       python-six
+
+
+%description
+spec is a Python 2 testing tool that provides:
+
+* Colorized, specification style output
+* Colorized tracebacks and summary
+* Test-running CLI tool which enables useful non-default options and implements
+relaxed test discovery for less test_annoying.py:TestBoilerplate.test_code and
+more readable.py:Classes.and_methods. 
+
+
+%if 0%{?with_python3}
+%package -n python3-spec
+Summary:        Specification-style output for python3-nose
+Group:          Development/Libraries
+Requires:       python3-nose >= 1.3
+Requires:       python3-six
+
+%description -n python3-spec
+spec is a Python 3 testing tool that provides:
+
+* Colorized, specification style output
+* Colorized tracebacks and summary
+* Test-running CLI tool which enables useful non-default options and implements
+relaxed test discovery for less test_annoying.py:TestBoilerplate.test_code and
+more readable.py:Classes.and_methods.
+%endif # with_python3
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+cp -p %{SOURCE1} .
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+
+%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 --prefix=%{_prefix} --root=%{buildroot}
+popd
+%endif # with_python3
+
+%{__python2} setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
+
+# Upstream queried to include license file
+%files
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%{_bindir}/spec
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-spec
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%{_bindir}/spec
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%endif # with_python3
+
+
+%changelog
+* Sat Mar 28 2015 Eduardo Mayorga Téllez <mayorga at fedoraproject.org> - 1.0.0-1
+- Update to 1.0.0
+
+* Sun Aug 03 2014 Eduardo Mayorga Téllez <mayorga at fedoraproject.org> - 0.11.1-2
+- Changing Requires from python2- to python-
+
+* Tue Jul 29 2014 Eduardo Mayorga Téllez <mayorga at fedoraproject.org> - 0.11.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..d890643 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a3222fe0b5c698fce7d46a4d50ca3c26  spec-1.0.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-spec.git/commit/?h=master&id=111640e788c6de287a6ac788da6671a3f414acc8


More information about the scm-commits mailing list