forked from pool/python-MiniMock
Accepting request 520561 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/520561 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-MiniMock?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 2 09:48:35 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Ensure neutrality of descriptions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 24 13:45:29 UTC 2017 - jmatejek@suse.com
|
||||
|
||||
- singlespec auto-conversion
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:08:48 UTC 2013 - speilicke@suse.com
|
||||
|
||||
@@ -25,3 +35,4 @@ Wed Aug 31 14:04:17 UTC 2011 - saschpe@suse.de
|
||||
|
||||
- Initial version
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-MiniMock
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,42 +16,53 @@
|
||||
#
|
||||
|
||||
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-MiniMock
|
||||
Version: 1.2.8
|
||||
Release: 0
|
||||
Url: http://pypi.python.org/pypi/MiniMock
|
||||
Summary: The simplest possible mock library
|
||||
Summary: A mock library for Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
|
||||
Url: http://pypi.python.org/pypi/MiniMock
|
||||
Source: https://files.pythonhosted.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Provides: python-minimock = %{version}
|
||||
Obsoletes: python-minimock < %{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-minimock = %{version}
|
||||
Obsoletes: %{oldpython}-minimock < %{version}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Minimock is a simple library for doing Mock objects with doctest.
|
||||
Minimock is a library for doing Mock objects with doctest.
|
||||
When using doctest, mock objects can be very simple.
|
||||
|
||||
%prep
|
||||
%setup -q -n MiniMock-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%if %{have_python3} && ! 0%{?skip_python3}
|
||||
2to3 -wn %{buildroot}%{python3_sitelib}/minimock.py
|
||||
python3 -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/
|
||||
python3 -O -m compileall -d %{python3_sitelib} %{buildroot}%{python3_sitelib}/
|
||||
%endif
|
||||
|
||||
%files
|
||||
%check
|
||||
%python_expand $python -B %{buildroot}%{$python_sitelib}/minimock.py
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/license.txt
|
||||
%pycache_only %{python_sitelib}/__pycache__/*
|
||||
%{python_sitelib}/minimock.py*
|
||||
%{python_sitelib}/MiniMock-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitelib}/MiniMock-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user