Initial import

This commit is contained in:
Bohuslav Kabrda 2012-06-27 07:37:41 +02:00
parent 078fea1ce4
commit 5ec486c507
4 changed files with 86 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/sure-0.10.3-tests.tgz
/sure-0.10.3.tar.gz

19
COPYING Normal file
View File

@ -0,0 +1,19 @@
Copyright (C) <2010> Gabriel Falcão <gabriel@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.

63
python-sure.spec Normal file
View File

@ -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@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@redhat.com> - 0.10.3-1
- Initial package.

View File

@ -0,0 +1,2 @@
4a40619b2fd85056f83dbc0c81733a8c sure-0.10.3-tests.tgz
84cf25264a77177d052e241bdb9d7c77 sure-0.10.3.tar.gz