15
0

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

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MiniMock?expand=0&rev=13
This commit is contained in:
Sascha Peilicke
2013-05-03 09:41:42 +00:00
committed by Git OBS Bridge
parent 1a276a3119
commit b4f99379e0
4 changed files with 25 additions and 23 deletions

View File

@@ -27,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.
@@ -53,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