commit
c1458d15e7
BIN
mox-0.5.3.tar.gz
Normal file
BIN
mox-0.5.3.tar.gz
Normal file
Binary file not shown.
41
python-mox.spec
Normal file
41
python-mox.spec
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
Name: python-mox
|
||||||
|
Version: 0.5.3
|
||||||
|
Release: 18
|
||||||
|
Summary: A mock object framework for Python
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://code.google.com/p/pymox
|
||||||
|
Source0: http://pypi.python.org/packages/source/m/mox/mox-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
Mox is based on EasyMock, a Java mock object framework.
|
||||||
|
|
||||||
|
%package -n python2-mox
|
||||||
|
Summary: A mock object framework for Python
|
||||||
|
%{?python_provide:%python_provide python2-mox}
|
||||||
|
|
||||||
|
%description -n python2-mox
|
||||||
|
Mox is based on EasyMock, a Java mock object framework.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n mox-%{version} -p1
|
||||||
|
sed -i '/^#!\/usr\/bin\/python2.4$/,+1 d' mox.py
|
||||||
|
sed -i '/^#!\/usr\/bin\/python2.4$/,+1 d' stubout.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py2_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
python2 mox_test.py
|
||||||
|
|
||||||
|
%files -n python2-mox
|
||||||
|
%doc COPYING README
|
||||||
|
%{python2_sitelib}/{mox.py*,stubout.py*,mox-0.5.3*.egg-info}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jan 8 2020 shijian <shijian16@huawei.com> - 0.5.3-18
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user