File python3-unittest2.spec of Package python-unittest2

#
# spec file for package python3-unittest2
#
# 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-unittest2
Version:        0.5.1
Release:        1
Url:            http://pypi.python.org/pypi/unittest2
Summary:        The new features in unittest for Python 2.7 backported to Python 2.3+
License:        BSD-3-Clause
Group:          Development/Languages/Python
Source:         http://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python3-devel
Requires:       python(abi) = %{py3_ver}

%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArchitectures: noarch
%endif
%description
unittest2 is a backport of the new features added to the unittest testing
framework in Python 2.7. It is tested to run on Python 2.4 - 2.7.

%prep
%setup -q -n unittest2py3k-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-python%{py3_ver}
mv %{buildroot}%{_bindir}/unit2.py %{buildroot}%{_bindir}/unit2-python%{py3_ver}.py
%files
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/unit2-python%{py3_ver}*
%{python3_sitelib}/unittest2/
%{python3_sitelib}/unittest2py3k-%{version}-py%{py3_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by