forked from pool/python-mockito
Accepting request 556077 from home:sebix:branches:devel:languages:python
- update to version 1.0.12 OBS-URL: https://build.opensuse.org/request/show/556077 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
3bde18a439
commit
07f26a08e3
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mockito
|
||||
#
|
||||
# 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,43 @@
|
||||
#
|
||||
|
||||
|
||||
%define mod_name mockito
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 0.5.2
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-mockito
|
||||
Version: 1.0.12
|
||||
Release: 0
|
||||
Url: http://code.google.com/p/mockito-python
|
||||
Summary: Spying framework
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/m/mockito/%{mod_name}-%{version}.tar.gz
|
||||
Patch0: python-mockito-0.5.2-setup.py.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-setuptools
|
||||
%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
|
||||
Url: http://mockito-python.readthedocs.io/en/latest/
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mockito/mockito-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%ifpython2
|
||||
Requires: python2-funcsigs
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Mockito is a spying framework based on Java library with the same name.
|
||||
Mockito is a spying framework originally based on the Java library with the same name.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n mockito-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGES.txt README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user