2012-06-27 05:37:41 +00:00
|
|
|
# Created by pyp2rpm-0.5.1
|
|
|
|
%global pypi_name sure
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2013-02-18 13:14:10 +00:00
|
|
|
Version: 1.1.7
|
|
|
|
Release: 1%{?dist}
|
2012-06-27 05:37:41 +00:00
|
|
|
Summary: Assertion toolbox for python
|
|
|
|
|
2013-02-18 13:14:10 +00:00
|
|
|
License: GPLv3+
|
2012-06-27 05:37:41 +00:00
|
|
|
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
|
2013-02-18 13:14:10 +00:00
|
|
|
# git checkout 1.1.7 && tar czf sure-1.1.7-tests.tgz tests/
|
2012-06-27 05:37:41 +00:00
|
|
|
Source2: %{pypi_name}-%{version}-tests.tgz
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
%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
|
2013-02-18 13:14:10 +00:00
|
|
|
* Mon Feb 18 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.7-1
|
|
|
|
- Update to 1.1.7.
|
|
|
|
- License change from MIT to GPLv3.
|
|
|
|
|
2013-02-14 20:29:52 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-11-05 12:30:15 +00:00
|
|
|
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.0.6-1
|
|
|
|
- Update to 1.0.6.
|
|
|
|
|
2012-07-21 09:56:19 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-27 05:37:41 +00:00
|
|
|
* 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.
|