forked from pool/python-odfpy
Accepting request 1281972 from devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1281972 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-odfpy?expand=0&rev=25
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 2 14:49:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 20 12:39:16 UTC 2023 - Michal Suchanek <msuchanek@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package python-odfpy
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -29,13 +29,15 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/eea/odfpy
|
||||
Source: https://github.com/eea/odfpy/archive/refs/tags/release-%{version}.tar.gz
|
||||
BuildRequires: %{python_module defusedxml}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-defusedxml
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -71,10 +73,10 @@ Visit https://github.com/eea/odfpy for documentation and examples.
|
||||
sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
for b in %{binaries}; do
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/$b.1
|
||||
%python_clone -a %{buildroot}%{_bindir}/$b
|
||||
|
||||
Reference in New Issue
Block a user