2018-10-04 07:43:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pony
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 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
|
|
|
|
# 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.
|
|
|
|
|
2018-10-24 18:00:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-10-04 07:43:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-pony
|
|
|
|
Version: 0.7.6
|
|
|
|
Release: 0
|
|
|
|
Summary: Pony Object-Relational Mapper
|
2018-10-24 18:00:45 +00:00
|
|
|
License: Apache-2.0
|
2018-10-04 07:43:58 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-10-24 18:00:45 +00:00
|
|
|
Url: https://ponyorm.com
|
2018-10-04 07:43:58 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pony/pony-%{version}.tar.gz
|
|
|
|
Source99: https://raw.githubusercontent.com/ponyorm/pony/orm/LICENSE
|
2018-10-24 18:00:45 +00:00
|
|
|
Patch0: 0001-Fix-tests-failing-with-python-3.6.patch
|
2018-10-25 09:35:42 +00:00
|
|
|
%if %{suse_version} < 1500
|
|
|
|
BuildRequires: python2
|
|
|
|
%endif
|
2018-10-04 07:43:58 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-10-24 18:00:45 +00:00
|
|
|
BuildRequires: dos2unix
|
2018-10-04 07:43:58 +00:00
|
|
|
BuildRequires: fdupes
|
2018-10-24 18:00:45 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-10-04 07:43:58 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-10-25 10:08:10 +00:00
|
|
|
Pony ORM is a object-relational mapper for Python. Using Pony, users
|
|
|
|
can create and maintain database-oriented software applications. Pony
|
|
|
|
is able to write queries to the database using generator expressions.
|
|
|
|
Pony then analyzes the abstract syntax tree of a generator and
|
|
|
|
translates it to its SQL equivalent.
|
2018-10-04 07:43:58 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pony-%{version}
|
2018-10-24 18:00:45 +00:00
|
|
|
%patch0 -p1
|
2018-10-04 07:43:58 +00:00
|
|
|
cp %{S:99} .
|
|
|
|
dos2unix README.md
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2018-10-24 18:00:45 +00:00
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
2018-10-04 07:43:58 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|