Hello community,

here is the log from the commit of package python-MiniMock for openSUSE:Factory 
checked in at 2012-08-23 16:06:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-MiniMock (Old)
 and      /work/SRC/openSUSE:Factory/.python-MiniMock.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-MiniMock", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-MiniMock/python-MiniMock.changes  
2011-09-23 12:42:26.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-MiniMock.new/python-MiniMock.changes     
2012-08-23 16:06:05.000000000 +0200
@@ -1,0 +2,6 @@
+Sun May 27 07:58:11 UTC 2012 - [email protected]
+
+- python3 package added
+- spec files section improved 
+
+-------------------------------------------------------------------
New Changes file:

--- /dev/null   2012-08-23 02:41:28.555381587 +0200
+++ /work/SRC/openSUSE:Factory/.python-MiniMock.new/python3-MiniMock.changes    
2012-08-23 16:06:05.000000000 +0200
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Sun May 27 07:58:37 UTC 2012 - [email protected]
+
+- python3 package added 
+

New:
----
  python3-MiniMock.changes
  python3-MiniMock.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-MiniMock.spec ++++++
--- /var/tmp/diff_new_pack.RG2xSy/_old  2012-08-23 16:06:05.000000000 +0200
+++ /var/tmp/diff_new_pack.RG2xSy/_new  2012-08-23 16:06:05.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-MiniMock
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 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
@@ -56,6 +56,7 @@
 %files
 %defattr(-,root,root,-)
 %doc docs/*
-%{python_sitelib}/*
+%{python_sitelib}/minimock.py*
+%{python_sitelib}/MiniMock-%{version}-py%{py_ver}.egg-info
 
 %changelog

++++++ python3-MiniMock.spec ++++++
#
# spec file for package python3-MiniMock
#
# Copyright (c) 2012 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           python3-MiniMock
Version:        1.2.7
Release:        1
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-devel
BuildRequires:  python3-2to3
BuildRequires:  python3-distribute
Provides:       python3-minimock = %{version}
#TODO: Change back to '<' after version update:
Obsoletes:      python3-minimock <= %{version}

%if 0%{?suse_version} <= 1140
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?py3_ver: %global py3_ver %(python3 -c "import sys; 
version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); 
print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)}
%else
BuildRequires:  python3-base
%endif
Requires:       python(abi) = %{py3_ver}
BuildArch:      noarch

%description
Minimock is a simple library for doing Mock objects with doctest.
When using doctest, mock objects can be very simple.

%prep
%setup -q -n MiniMock-%{version}
rm docs/.changelog.rst.un~ # Remove junk

%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
%if 0%{?suse_version} <= 1140
%dir %{_prefix}/lib/python%{py3_ver}
%dir %{python3_sitelib}
%endif

%changelog
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to