* Removed PATH_MAX (Issue #220) * Add ROOT_PREFIX as option to replace TESTSDIR hack * CI: valgrind doesn't work together with sanitizers * econf_readConfig: don't allocate econf_file in error case * tests: use cleanup to free key_file for some tests * libeconf: don't allocate array from size 0 * libeconf: fix use of uninitialized stat result if file does not exist * econftool: dynamically allocate xdg_config_dir * Disable clang <= 17, enable valgrind * Disable whitespace check * Disable deprecation warning for econftool and example * Add new CI with different compilers and valgrind * Test econf_readConfig() * Disable deprecation warning for tests * Implement econf_*freep functions for automatic cleanup * Cleanup *free functions - Update to version 0.7.5: * Removed PATH_MAX (Issue #220) * Add ROOT_PREFIX as option to replace TESTSDIR hack * CI: valgrind doesn't work together with sanitizers * econf_readConfig: don't allocate econf_file in error case * tests: use cleanup to free key_file for some tests * libeconf: don't allocate array from size 0 * libeconf: fix use of uninitialized stat result if file does not exist * econftool: dynamically allocate xdg_config_dir * Disable clang <= 17, enable valgrind * Disable whitespace check * Disable deprecation warning for econftool and example * Add new CI with different compilers and valgrind * Test econf_readConfig() * Disable deprecation warning for tests * Implement econf_*freep functions for automatic cleanup * Cleanup *free functions OBS-URL: https://build.opensuse.org/package/show/devel:microos/libeconf?expand=0&rev=38
69 lines
1.9 KiB
RPMSpec
69 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-libeconf
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
%define skip_python39 1
|
|
Name: python-libeconf
|
|
Version: 0.7.5
|
|
Release: 0
|
|
Summary: Python bindings for libeconf
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/openSUSE/libeconf
|
|
Source: libeconf-%{version}.tar.xz
|
|
BuildArch: noarch
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: python-rpm-macros
|
|
Requires: libeconf0 = %{version}
|
|
Suggests: python-libeconf-doc = %{version}
|
|
%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
|
|
%autosetup -n libeconf-%{version}/bindings/python3
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
mkdir -p %{buildroot}/usr/share/man/man3
|
|
cp docs/python-libeconf.3 %{buildroot}%{_mandir}/man3/
|
|
|
|
%files %python_files
|
|
%{python_sitelib}
|
|
# The cache is not always present
|
|
#pycache_only %{python_sitelib}/__pycache__
|
|
|
|
%files -n python-libeconf-doc
|
|
%defattr(-,root,root)
|
|
%{_mandir}/man3/*python-libeconf*
|
|
|
|
%changelog
|