Package sources for project openSUSE:Factory:PullRequest:47 are received through scmsync. This is not supported by the OBS frontend

File python-mock.spec of Package python-mock

#
# spec file for package python-mock (Version 0.7.0b4)
#
# Copyright (c) 2010 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/
#

# norootforbuild

Name:           python-mock
Version:        0.7.0b4
Release:        2
Summary:        Python mocking and patching library for testing

Group:          Development/Libraries/Python
License:        BSD
URL:            http://pypi.python.org/pypi/mock
Source0:        http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-unittest2
%{py_requires}

%description
Python mock can mimick any other Python class, and then be examined to
see what methods have been called and what the parameters to the call
were.

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

# remove spurious permissions
for file in `ls docs/`; do
    chmod a-x docs/$file
done

# DOS line-endings
sed -i "s|\r||g" docs/getting-started.txt

%build
%{__python} setup.py build

%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES

%check
unit2 discover

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc README.txt tests/ docs/
%changelog
openSUSE Build Service is sponsored by