!1 Package init

Merge pull request !1 from seki099/shijian
This commit is contained in:
openeuler-ci-bot 2020-01-10 14:04:09 +08:00 committed by Gitee
commit c1458d15e7
2 changed files with 41 additions and 0 deletions

BIN
mox-0.5.3.tar.gz Normal file

Binary file not shown.

41
python-mox.spec Normal file
View 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