Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Ocata
python-unittest2
python-unittest2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-unittest2.spec of Package python-unittest2
# # spec file for package python-unittest2 # # Copyright (c) 2014 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: python-unittest2 Version: 1.1.0 Release: 0 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/unittest2/unittest2-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-argparse BuildRequires: python-linecache2 BuildRequires: python-setuptools BuildRequires: python-six BuildRequires: python-traceback2 Requires: python-argparse Requires: python-linecache2 Requires: python-six Requires: python-traceback2 Requires(post): update-alternatives Requires(preun): update-alternatives %if 0%{?suse_version} && 0%{?suse_version} > 1110 BuildArch: noarch %else %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %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 unittest2-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} # Prepare for update-alternatives usage mkdir -p %{buildroot}%{_sysconfdir}/alternatives mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-%{py_ver} ln -s -f %{_sysconfdir}/alternatives/unit2 %{buildroot}%{_bindir}/unit2 %post %_sbindir/update-alternatives \ --install %{_bindir}/unit2 unit2 %{_bindir}/unit2-%{py_ver} 30 %preun if [ $1 -eq 0 ] ; then %_sbindir/update-alternatives --remove unit2 %{_bindir}/unit2-%{py_ver} fi %files %defattr(-,root,root,-) %doc README.txt %{_bindir}/unit2 %{_bindir}/unit2-%{py_ver} %ghost %{_sysconfdir}/alternatives/unit2 %{python_sitelib}/unittest2 %{python_sitelib}/unittest2-%{version}-py*.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor