2023-10-30 10:58:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-libeconf
|
|
|
|
#
|
2024-01-22 17:19:47 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-10-30 10:58:24 +01: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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-11-14 11:05:31 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2023-11-03 11:27:48 +01:00
|
|
|
%define skip_python39 1
|
2023-10-30 10:58:24 +01:00
|
|
|
Name: python-libeconf
|
2024-03-06 12:25:22 +01:00
|
|
|
Version: 0.6.2
|
2023-10-30 10:58:24 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for libeconf
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/openSUSE/libeconf
|
2023-11-10 13:48:19 +01:00
|
|
|
Source: libeconf-%{version}.tar.xz
|
2023-10-30 10:58:24 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-11-10 13:48:19 +01:00
|
|
|
Requires: libeconf0 = %{version}
|
|
|
|
Suggests: python-libeconf-doc = %{version}
|
2023-10-30 10:58:24 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python bindings for libeconf
|
|
|
|
|
|
|
|
%package -n python-libeconf-doc
|
|
|
|
Summary: Man page for python-libeconf
|
|
|
|
|
|
|
|
%description -n python-libeconf-doc
|
|
|
|
Man page for python-lineconf
|
|
|
|
|
|
|
|
%prep
|
2023-11-10 13:48:19 +01:00
|
|
|
%autosetup -n libeconf-%{version}/bindings/python3
|
2023-10-30 10:58:24 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
mkdir -p %{buildroot}/usr/share/man/man3
|
|
|
|
cp docs/python-libeconf.3 %{buildroot}%{_mandir}/man3/
|
|
|
|
|
|
|
|
%files %python_files
|
2023-11-14 11:05:31 +01:00
|
|
|
%{python_sitelib}
|
|
|
|
# The cache is not always present
|
|
|
|
#pycache_only %{python_sitelib}/__pycache__
|
2023-10-30 10:58:24 +01:00
|
|
|
|
|
|
|
%files -n python-libeconf-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man3/*python-libeconf*
|
|
|
|
|
|
|
|
%changelog
|