2018-10-04 07:44:20 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-mongoengine
|
|
|
|
|
#
|
2024-03-19 07:06:16 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-10-04 07:44:20 +00: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.
|
|
|
|
|
|
2018-10-24 13:00:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2018-10-04 07:44:20 +00:00
|
|
|
|
|
|
|
|
|
2022-03-07 11:37:26 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
|
|
|
%global skip_python2 1
|
2018-10-04 07:44:20 +00:00
|
|
|
Name: python-mongoengine
|
2024-03-19 07:06:16 +00:00
|
|
|
Version: 0.28.2
|
2018-10-04 07:44:20 +00:00
|
|
|
Release: 0
|
2018-10-24 13:00:51 +00:00
|
|
|
Summary: Python Object-Document Mapper for working with MongoDB
|
2018-10-04 07:44:20 +00:00
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
2020-03-31 14:28:31 +00:00
|
|
|
URL: http://mongoengine.org/
|
|
|
|
|
Source: https://github.com/MongoEngine/mongoengine/archive/v%{version}.tar.gz
|
2022-03-07 11:37:26 +00:00
|
|
|
BuildRequires: %{python_module blinker}
|
|
|
|
|
BuildRequires: %{python_module pymongo >= 3.9}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2018-10-04 07:44:20 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
2018-10-24 13:00:51 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-03-31 14:28:31 +00:00
|
|
|
Requires: python-blinker
|
2022-03-07 11:37:26 +00:00
|
|
|
Requires: python-pymongo >= 3.9
|
2018-10-04 07:44:20 +00:00
|
|
|
Suggests: python-python-dateutil
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
MongoEngine is an ORM-like layer on top of PyMongo.
|
|
|
|
|
MongoEngine is a Python Object-Document Mapper for working with MongoDB
|
|
|
|
|
built on top of PyMongo.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n mongoengine-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2022-03-07 11:37:26 +00:00
|
|
|
%check
|
|
|
|
|
rm -v tests/test_connection.py
|
|
|
|
|
# o/opytest
|
|
|
|
|
|
2018-10-04 07:44:20 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc AUTHORS README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|