代码拉取完成,页面将自动刷新
%global srcname mox
Name: python-%{srcname}
Version: 0.5.3
Release: 19
Summary: A mock object framework for Python
License: ASL 2.0
URL: https://pypi.org/project/%{srcname}
Source0: https://files.pythonhosted.org/packages/source/m/%{srcname}/%{srcname}-%{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
* Mon Sep 14 2020 Leo Fang <leofang_94@163.com> - 0.5.3-19
- Update Source0 in spec
* Wed Jan 8 2020 shijian <shijian16@huawei.com> - 0.5.3-18
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。