[python-sure] Initial import

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Jun 27 05:37:45 UTC 2012


commit 5ec486c50785e6594f7db6818edfb91a66c356af
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Jun 27 07:37:41 2012 +0200

    Initial import

 .gitignore       |    2 +
 COPYING          |   19 ++++++++++++++++
 python-sure.spec |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    2 +
 4 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..57f03e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/sure-0.10.3-tests.tgz
+/sure-0.10.3.tar.gz
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..1387901
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,19 @@
+Copyright (C) <2010>  Gabriel Falcão <gabriel at nacaolivre.org>
+
+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.
\ No newline at end of file
diff --git a/python-sure.spec b/python-sure.spec
new file mode 100644
index 0000000..f0d7110
--- /dev/null
+++ b/python-sure.spec
@@ -0,0 +1,63 @@
+# Created by pyp2rpm-0.5.1
+%global pypi_name sure
+
+Name:           python-%{pypi_name}
+Version:        0.10.3
+Release:        2%{?dist}
+Summary:        Assertion toolbox for python
+
+License:        MIT
+URL:            https://github.com/gabrielfalcao/sure
+Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Already asked upstream to include COPYING in the source tar:
+# https://github.com/gabrielfalcao/sure/issues/17
+Source1:        https://raw.github.com/gabrielfalcao/sure/master/COPYING
+# To get tests:
+# git clone https://github.com/gabrielfalcao/sure.git && cd sure
+# git checkout 0.10.3 && tar czf sure-0.10.3-tests.tgz test_sure.py
+Source2:        %{pypi_name}-%{version}-tests.tgz
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-nose
+BuildRequires:  python-setuptools
+# the library claims to be using these, but it actually isn't
+# Requires:       python-nose
+# Requires:       python-ipdb
+
+%description
+A Python assertion toolbox that works fine with nose.
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+cp %{SOURCE1} .
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%check
+tar xzf %{SOURCE2}
+nosetests
+
+
+%files
+%doc COPYING
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%changelog
+* Tue Jun 26 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.10.3-2
+- python-devel should be python2-devel
+- URL now points to the real homepage of the project
+
+* Fri Jun 22 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.10.3-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..1a5aa8c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+4a40619b2fd85056f83dbc0c81733a8c  sure-0.10.3-tests.tgz
+84cf25264a77177d052e241bdb9d7c77  sure-0.10.3.tar.gz


More information about the scm-commits mailing list