forked from pool/python-odfpy
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 929e86bb1a | |||
| 25429d97aa | |||
| a11c72ab86 | |||
| c51c29a311 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 9 12:43:41 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
#
|
#
|
||||||
%define modname odfpy
|
%define modname odfpy
|
||||||
%define binaries csv2ods mailodf odf2mht odf2xhtml odf2xml odfimgimport odflint odfmeta odfoutline odfuserfield xml2odf
|
%define binaries csv2ods mailodf odf2mht odf2xhtml odf2xml odfimgimport odflint odfmeta odfoutline odfuserfield xml2odf
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.4.2
|
Version: 1.4.2
|
||||||
@@ -29,13 +30,15 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/eea/odfpy
|
URL: https://github.com/eea/odfpy
|
||||||
Source: https://github.com/eea/odfpy/archive/refs/tags/release-%{version}.tar.gz
|
Source: https://github.com/eea/odfpy/archive/refs/tags/release-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module defusedxml}
|
BuildRequires: %{python_module defusedxml}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-defusedxml
|
Requires: python-defusedxml
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -71,10 +74,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
|
sed -i "1d" odf/{userfield,odf2xhtml,manifest,element,elementtypes,load,odfmanifest,thumbnail}.py # Fix non-executable scripts
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
for b in %{binaries}; do
|
for b in %{binaries}; do
|
||||||
%python_clone -a %{buildroot}%{_mandir}/man1/$b.1
|
%python_clone -a %{buildroot}%{_mandir}/man1/$b.1
|
||||||
%python_clone -a %{buildroot}%{_bindir}/$b
|
%python_clone -a %{buildroot}%{_bindir}/$b
|
||||||
@@ -84,14 +87,9 @@ done
|
|||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
for b in %{binaries}; do
|
for b in %{binaries}; do
|
||||||
%python_install_alternative $b $b.1
|
%python_libalternatives_reset_alternative $b
|
||||||
done
|
|
||||||
|
|
||||||
%postun
|
|
||||||
for b in %{binaries}; do
|
|
||||||
%python_uninstall_alternative $b
|
|
||||||
done
|
done
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
|||||||
Reference in New Issue
Block a user