123 Star 0 Fork 3

src-openEuler/python-mox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-mox.spec 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
LeoFang 提交于 2020-09-14 15:30 . Update Source0 in Spec
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-mox.git
git@gitee.com:src-openeuler/python-mox.git
src-openeuler
python-mox
python-mox
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385