diff --git a/2.9.2.tar.gz b/2.9.2.tar.gz new file mode 100644 index 0000000..dc7d16d --- /dev/null +++ b/2.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5f27acda3787fb556dc26a50cbfa3ce9ee86a88b1a96b72fa31aca47257c7dd +size 134371 diff --git a/factory_boy-2.5.2.tar.gz b/factory_boy-2.5.2.tar.gz deleted file mode 100644 index 14f720e..0000000 --- a/factory_boy-2.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd8306e64c3a115deca136685e945db88ffe171382012ec938ed241a20dd7eba -size 81518 diff --git a/python-factory_boy.changes b/python-factory_boy.changes index 98ba386..af69245 100644 --- a/python-factory_boy.changes +++ b/python-factory_boy.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Oct 6 09:52:31 UTC 2017 - tchvatal@suse.com + +- Update to version 2.9.2: + * read the upstream ChangeLog for in detail list as there are + too many changes +- Do not generate docu in the spec and make sure tests are run +- Switch to python singlespec + ------------------------------------------------------------------- Mon May 4 16:15:37 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-factory_boy.spec b/python-factory_boy.spec index 143d68b..c637b4d 100644 --- a/python-factory_boy.spec +++ b/python-factory_boy.spec @@ -1,7 +1,7 @@ # # spec file for package python-factory_boy # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-factory_boy -Version: 2.5.2 +Version: 2.9.2 Release: 0 Summary: A test fixtures replacement License: MIT Group: Development/Languages/Python Url: http://github.com/rbarrois/factory_boy -Source: http://pypi.python.org/packages/source/f/factory_boy/factory_boy-%{version}.tar.gz -BuildRequires: python-Sphinx -BuildRequires: python-devel -BuildRequires: python-mock -BuildRequires: python-setuptools -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 +Source: https://github.com/FactoryBoy/factory_boy/archive/%{version}.tar.gz +BuildRequires: %{python_module Faker >= 0.7.0} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module flake8} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +BuildRequires: python2-ipaddress +Requires: python-Faker >= 0.7.0 BuildArch: noarch -%endif +%python_subpackages %description A test fixtures replacement based on thoughtbot's factory_girl for Ruby. @@ -42,18 +43,16 @@ A test fixtures replacement based on thoughtbot's factory_girl for Ruby. %setup -q -n factory_boy-%{version} %build -python setup.py build -python setup.py build_sphinx && rm build/sphinx/html/.buildinfo +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -python setup.py -q test +%python_exec setup.py test -%files -%defattr(-,root,root,-) -%doc README.rst build/sphinx/html +%files %{python_files} +%doc README.rst LICENSE %{python_sitelib}/* %changelog