blob: 1b95307c976b6996182edba114fe785db1611136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-testtools
Version: 0.9.8
Release: 2%{?dist}
Summary: Extensions to the Python unit testing framework
Group: Development/Tools
License: MIT
URL: https://launchpad.net/testtools
Source0: http://pypi.python.org/packages/source/t/testtools/testtools-0.9.8.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
%description
testtools is a set of extensions to the Python standard library's unit testing
framework.
%prep
%setup -q -n testtools-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE HACKING MANUAL NEWS README
%{python_sitelib}/*
%changelog
* Thu Apr 7 2011 Michel Salim <salimma@fedoraproject.org> - 0.9.8-2
- Add definitions needed by older RPM versions
* Thu Apr 7 2011 Michel Salim <salimma@fedoraproject.org> - 0.9.8-1
- Initial package
|