Initial import (#724936).
This commit is contained in:
parent
cc1e315287
commit
68369d0bdf
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/mock-0.7.2.tar.gz
|
||||
26
LICENSE.txt
Normal file
26
LICENSE.txt
Normal file
@ -0,0 +1,26 @@
|
||||
Copyright (c) 2003-2011, Michael Foord
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
46
python-mock.spec
Normal file
46
python-mock.spec
Normal file
@ -0,0 +1,46 @@
|
||||
%global mod_name mock
|
||||
|
||||
Name: python-mock
|
||||
Version: 0.7.2
|
||||
Release: 1%{?dist}
|
||||
Summary: A Python Mocking and Patching Library for Testing
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
URL: http://www.voidspace.org.uk/python/%{mod_name}/
|
||||
Source0: http://pypi.python.org/packages/source/m/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
||||
Source1: LICENSE.txt
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python-devel
|
||||
|
||||
%description
|
||||
Mock is a Python module that provides a core mock class. It removes the need
|
||||
to create a host of stubs throughout your test suite. After performing an
|
||||
action, you can make assertions about which methods / attributes were used and
|
||||
arguments they were called with. You can also specify return values and set
|
||||
needed attributes in the normal way.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
cp -p %{SOURCE1} .
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%doc docs/ README.txt PKG-INFO LICENSE.txt
|
||||
%{python_sitelib}/*.egg-info/
|
||||
%{python_sitelib}/%{mod_name}.py*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 22 2011 Praveen Kumar <kumarpraveen.nitdgp@gmail.com> - 0.7.2-1
|
||||
- Initial RPM release
|
||||
Loading…
Reference in New Issue
Block a user