Name: odfpy Version: 1.4.1 Release: 12%{?dist} Summary: Python library for manipulating OpenDocument files # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: https://github.com/eea/odfpy Source0: https://github.com/eea/%{name}/archive/release-%{version}.tar.gz#/%{name}-%{version}.tar.gz Patch0: odfpy-allow-py38-testing.patch BuildArch: noarch %description Odfpy aims to be a complete API for OpenDocument in Python. Unlike other more convenient APIs, this one is essentially an abstraction layer just above the XML format. The main focus has been to prevent the programmer from creating invalid documents. It has checks that raise an exception if the programmer adds an invalid element, adds an attribute unknown to the grammar, forgets to add a required attribute or adds text to an element that doesn't allow it. These checks and the API itself were generated from the RelaxNG schema, and then hand-edited. Therefore the API is complete and can handle all ODF constructions, but could be improved in its understanding of data types. %package -n python3-%{name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-defusedxml %{?python_provide:%python_provide python3-%{name}} Provides: odfpy = %{version}-%{release} Obsoletes: odfpy < %{version}-%{release} %description -n python3-%{name} Odfpy aims to be a complete API for OpenDocument in Python. Unlike other more convenient APIs, this one is essentially an abstraction layer just above the XML format. The main focus has been to prevent the programmer from creating invalid documents. It has checks that raise an exception if the programmer adds an invalid element, adds an attribute unknown to the grammar, forgets to add a required attribute or adds text to an element that doesn't allow it. These checks and the API itself were generated from the RelaxNG schema, and then hand-edited. Therefore the API is complete and can handle all ODF constructions, but could be improved in its understanding of data types. This package provides Python 3 build of %{name}. %package doc Summary: %{summary} %description doc Odfpy aims to be a complete API for OpenDocument in Python. Unlike other more convenient APIs, this one is essentially an abstraction layer just above the XML format. The main focus has been to prevent the programmer from creating invalid documents. It has checks that raise an exception if the programmer adds an invalid element, adds an attribute unknown to the grammar, forgets to add a required attribute or adds text to an element that doesn't allow it. These checks and the API itself were generated from the RelaxNG schema, and then hand-edited. Therefore the API is complete and can handle all ODF constructions, but could be improved in its understanding of data types. This package provides documentation of %{name}. %prep %autosetup -n %{name}-release-%{version} # Change shebang in all relevant files find -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + %build %py3_build %install %py3_install %check PYTHONPATH=%{_builddir}/%{name}-release-%{version} pytest %files -n python3-%{name} %license GPL-LICENSE-2.txt APACHE-LICENSE-2.0.txt %{_bindir}/* %{_mandir}/man1/* %{python3_sitelib}/*egg-info %{python3_sitelib}/odf %files doc %license GPL-LICENSE-2.txt APACHE-LICENSE-2.0.txt %doc doc examples contrib %changelog * Fri Jul 26 2024 Miroslav Suchý - 1.4.1-12 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 1.4.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.4.1-10 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 1.4.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.4.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1.4.1-6 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 1.4.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.4.1-3 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Aug 14 2021 Paul W. Frields - 1.4.1-1 - New upstream release 1.4.1 * Thu Jul 22 2021 Fedora Release Engineering - 1.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.4.0-7 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 1.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.4.0-4 - Rebuilt for Python 3.9 * Wed Jan 29 2020 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.4.0-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Fri Aug 30 2019 Paul W. Frields - 1.4.0-1 - New upstream release 1.4.0 * Fri Aug 30 2019 Miro Hrončok - 1.3.4-10 - Subpackage python2-odfpy has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Mon Aug 19 2019 Miro Hrončok - 1.3.4-9 - Rebuilt for Python 3.8 * Thu Jul 25 2019 Fedora Release Engineering - 1.3.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.3.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.3.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.3.4-5 - Rebuilt for Python 3.7 * Thu Feb 08 2018 Fedora Release Engineering - 1.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Mar 13 2017 Charalampos Stratakis 1.3.4-2 - Add proper provides and obsoletes for a clean upgrade path after renaming the python2 subpackage * Fri Mar 3 2017 Iryna Shcherbina 1.3.4-1 - Update to 1.3.4, run tests * Fri Mar 3 2017 Jan Beran 1.3.3-1 - New version including Python 3 subpackage * Sat Feb 11 2017 Fedora Release Engineering - 0.9.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 0.9.6-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.9.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.9.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Apr 25 2014 Kevin Fenzi 0.9.6-1 - Update to 0.9.6 Fixes calibre bug #989538 * Sat Aug 03 2013 Fedora Release Engineering - 0.9.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jun 12 2013 Peter Robinson 0.9.2-7 - Fix FTBFS * Thu Feb 14 2013 Fedora Release Engineering - 0.9.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.9.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 30 2010 Ian Weller - 0.9.2-2 - Fixed previous changelog entry * Fri Jul 30 2010 Ian Weller - 0.9.2-1 - Update to 0.9.2 * Wed Jul 21 2010 David Malcolm - 0.9-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sat Jul 25 2009 Fedora Release Engineering - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Apr 20 2009 Ian Weller - 0.9-1 - Update upstream * Thu Feb 26 2009 Fedora Release Engineering - 0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.8-2 - Rebuild for Python 2.6 * Fri Aug 22 2008 Ian Weller 0.8-1 - Update upstream * Tue Jul 15 2008 Ian Weller 0.7-2 - Change macros - Remove license file * Sun Jul 13 2008 Ian Weller 0.7-1 - Add COPYING file - Use setuptools instead - sed out shebangs from module files - Other minor fixes * Sun Jul 13 2008 Paul W. Frields - 0.7-0.1 - Initial RPM package