2012-06-11 15:12:57 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-factory_boy
|
|
|
|
#
|
2015-05-07 01:30:02 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-06-11 15:12:57 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-11-23 12:08:12 +01:00
|
|
|
|
2012-06-11 15:12:57 +02:00
|
|
|
Name: python-factory_boy
|
2015-05-07 01:30:02 +02:00
|
|
|
Version: 2.5.2
|
2012-06-11 15:12:57 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A test fixtures replacement
|
2012-11-23 12:08:12 +01:00
|
|
|
License: MIT
|
2012-06-11 15:12:57 +02:00
|
|
|
Group: Development/Languages/Python
|
2012-11-23 12:08:12 +01:00
|
|
|
Url: http://github.com/rbarrois/factory_boy
|
2012-06-11 15:12:57 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz
|
2012-11-23 12:08:12 +01:00
|
|
|
BuildRequires: python-Sphinx
|
2012-06-11 15:12:57 +02:00
|
|
|
BuildRequires: python-devel
|
2015-05-07 01:30:02 +02:00
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-setuptools
|
2012-06-11 15:12:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
|
|
|
|
|
|
|
%description
|
|
|
|
A test fixtures replacement based on thoughtbot's factory_girl for Ruby.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n factory_boy-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
2015-05-07 01:30:02 +02:00
|
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2012-06-11 15:12:57 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2012-11-23 12:08:12 +01:00
|
|
|
%check
|
2015-05-07 01:30:02 +02:00
|
|
|
python setup.py -q test
|
2012-11-23 12:08:12 +01:00
|
|
|
|
2012-06-11 15:12:57 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-05-07 01:30:02 +02:00
|
|
|
%doc README.rst build/sphinx/html
|
2012-06-11 15:12:57 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|