15
0

Accepting request 174408 from devel:languages:python

- Fixed the obsoletes to '<' after last version update

- Update to 1.2.8:
  * add python 3.x support 

- Provides/obsoletes for python3-minimock is useless, that package
  never existed
- Removing __pycache__ is actually wrong
- "-rm docs/.changelog.rst.un~ # Remove junk" was bogus
- No need to buildrequire python3, usually you only need that when
  requiring the _ssl module (as Jan if in doubt)
- No need to buildrequire python3-2to3, it's in python3-devel nowadays

- Update to 1.2.8:
  * add python 3.x support

OBS-URL: https://build.opensuse.org/request/show/174408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-MiniMock?expand=0&rev=11
This commit is contained in:
Stephan Kulow
2013-05-03 11:45:37 +00:00
committed by Git OBS Bridge
6 changed files with 46 additions and 35 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3de5c14b986f984fa3cc113035d8b21b6c29c92d9f8b31cd34d33002e2fbb33b
size 15118

3
MiniMock-1.2.8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5fdfdfeadf0fc781d0592a1b90d2fcc11581f682ff7cba6201cfdb15c3ea5a4c
size 13217

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri May 3 09:26:17 UTC 2013 - speilicke@suse.com
- Fixed the obsoletes to '<' after last version update
-------------------------------------------------------------------
Mon Apr 29 12:29:43 UTC 2013 - dmueller@suse.com
- Update to 1.2.8:
* add python 3.x support
-------------------------------------------------------------------
Sun May 27 07:58:11 UTC 2012 - highwaystar.ru@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-MiniMock
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products 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,10 +16,9 @@
#
Name: python-MiniMock
Version: 1.2.7
Release: 1
Version: 1.2.8
Release: 0
Url: http://pypi.python.org/pypi/MiniMock
Summary: The simplest possible mock library
License: MIT
@@ -28,16 +27,13 @@ Source: http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{ver
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
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
%endif
%endif
Provides: python-minimock = %{version}
#TODO: Change back to '<' after version update:
Obsoletes: python-minimock <= %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description
Minimock is a simple library for doing Mock objects with doctest.
@@ -45,7 +41,6 @@ When using doctest, mock objects can be very simple.
%prep
%setup -q -n MiniMock-%{version}
rm docs/.changelog.rst.un~ # Remove junk
%build
python setup.py build
@@ -55,7 +50,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc docs/*
%doc docs/license.txt
%{python_sitelib}/minimock.py*
%{python_sitelib}/MiniMock-%{version}-py%{py_ver}.egg-info

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri May 3 09:27:12 UTC 2013 - speilicke@suse.com
- Provides/obsoletes for python3-minimock is useless, that package
never existed
- Removing __pycache__ is actually wrong
- "-rm docs/.changelog.rst.un~ # Remove junk" was bogus
- No need to buildrequire python3, usually you only need that when
requiring the _ssl module (as Jan if in doubt)
- No need to buildrequire python3-2to3, it's in python3-devel nowadays
-------------------------------------------------------------------
Mon Apr 29 12:29:43 UTC 2013 - dmueller@suse.com
- Update to 1.2.8:
* add python 3.x support
-------------------------------------------------------------------
Fri Nov 30 14:04:52 UTC 2012 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python3-MiniMock
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products 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,24 +16,17 @@
#
Name: python3-MiniMock
Version: 1.2.7
Release: 1
Version: 1.2.8
Release: 0
Url: http://pypi.python.org/pypi/MiniMock
Summary: The simplest possible mock library
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-2to3
BuildRequires: python3-distribute
Provides: python3-minimock = %{version}
#TODO: Change back to '<' after version update:
Obsoletes: python3-minimock <= %{version}
Requires: python(abi) = %{py3_ver}
BuildArch: noarch
%description
@@ -42,22 +35,17 @@ When using doctest, mock objects can be very simple.
%prep
%setup -q -n MiniMock-%{version}
rm docs/.changelog.rst.un~ # Remove junk
2to3 -w -n .
%build
2to3 -w -n .
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
if [ -d "%{buildroot}%{python3_sitelib}/__pycache__" ]; then
rm -r %{buildroot}%{python3_sitelib}/__pycache__
fi
%files
%defattr(-,root,root,-)
%doc docs/*
%{python3_sitelib}/minimock.py*
%{python3_sitelib}/MiniMock-%{version}-py%{py3_ver}.egg-info
%doc docs/license.txt
%{python3_sitelib}/*
%changelog