2020-11-25 14:37:00 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-reconfigure
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-11-25 15:18:14 +00:00
|
|
|
%define ver_hash 099e3a561f78be45c4cd4798f61b762b59f2dcbf
|
2020-11-25 14:37:00 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-reconfigure
|
|
|
|
Version: 0.1.82
|
|
|
|
Release: 0
|
|
|
|
Summary: Python ORM for config files
|
|
|
|
License: LGPL-3.0-only
|
|
|
|
Group: Development/Languages/Python
|
2020-11-25 15:18:14 +00:00
|
|
|
URL: https://github.com/Eugeny/reconfigure
|
|
|
|
# Lack of tags https://github.com/Eugeny/reconfigure/issues/11
|
|
|
|
Source: https://github.com/Eugeny/reconfigure/archive/%{ver_hash}.tar.gz#/reconfigure-%{version}.tar.gz
|
2020-11-25 14:37:00 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-chardet
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module chardet}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python ORM for config files.
|
|
|
|
|
|
|
|
%prep
|
2020-11-25 15:18:14 +00:00
|
|
|
%setup -q -n reconfigure-%{ver_hash}
|
2020-11-25 14:37:00 +00:00
|
|
|
printf '[pytest]\npython_files = *_test*.py' > pytest.ini
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-11-25 15:18:14 +00:00
|
|
|
# crontab_tests: https://github.com/Eugeny/reconfigure/issues/26
|
2020-11-25 14:37:00 +00:00
|
|
|
%pytest reconfigure/tests/ -k 'not crontab_tests'
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license docs/LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|