From 3b9da15636e56fed70f56eec6ccc557817cab6ec Mon Sep 17 00:00:00 2001 From: tigro Date: Wed, 25 Dec 2024 23:07:21 +0300 Subject: [PATCH] import python-olefile-0.47-5.el10 --- .gitignore | 5 +- .python-olefile.metadata | 1 + .../python-olefile.spec | 130 +++++++----------- sources | 1 - 4 files changed, 51 insertions(+), 86 deletions(-) create mode 100644 .python-olefile.metadata rename python-olefile.spec => SPECS/python-olefile.spec (70%) delete mode 100644 sources diff --git a/.gitignore b/.gitignore index 11d512b..b8ba66d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -/olefile-bc9d196.tar.gz -/olefile-0.44.zip -/olefile-0.45.1.zip -/olefile-0.46.zip +SOURCES/olefile-0.47.zip diff --git a/.python-olefile.metadata b/.python-olefile.metadata new file mode 100644 index 0000000..9bc8d7b --- /dev/null +++ b/.python-olefile.metadata @@ -0,0 +1 @@ +97f0425e9cf41ff787d17483d5eb078b095acf74 SOURCES/olefile-0.47.zip diff --git a/python-olefile.spec b/SPECS/python-olefile.spec similarity index 70% rename from python-olefile.spec rename to SPECS/python-olefile.spec index b25e3ae..dee58b1 100644 --- a/python-olefile.spec +++ b/SPECS/python-olefile.spec @@ -1,6 +1,6 @@ Name: python-olefile -Version: 0.46 -Release: 15%{?dist} +Version: 0.47 +Release: 5%{?dist} Summary: Python package to parse, read and write Microsoft OLE2 files %global srcname olefile @@ -13,27 +13,12 @@ Outlook messages, StickyNotes, several Microscopy file formats, McAfee antivirus quarantine files, etc. } -# Build with python3 package by default -%bcond_without python3 - -# Build without python2 package for newer releases > fc32 and > rhel8 -# python2 package already released for rhel8 -# https://pagure.io/fesco/issue/2266 -%if (0%{?fedora} && 0%{?fedora} > 33 ) || ( 0%{?rhel} && 0%{?rhel} > 8 ) || 0%{?flatpak} -%bcond_with python2 -%else -%bcond_without python2 -%endif - - -License: BSD -URL: https://www.decalage.info/python/olefile -# https://pypi.python.org/pypi/olefile/ -# https://github.com/decalage2/olefile/releases -Source0: https://files.pythonhosted.org/packages/source/o/%{srcname}/%{srcname}-%{version}.zip +License: BSD-2-Clause +URL: https://www.decalage.info/olefile +Source0: %{pypi_source olefile %version zip} BuildArch: noarch -BuildRequires: make +BuildRequires: make BuildRequires: dos2unix BuildRequires: /usr/bin/find @@ -45,39 +30,20 @@ BuildArch: noarch # Fedora >= 31 does not have python2-sphinx anymore. # There is python-sphinx in RHEL 7, but it's possibly too old. # Python26 sphinx works -BuildRequires: python%{python3_pkgversion}-sphinx -BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme %description doc %{_description} This package contains documentation for %{name}. - -%if 0%{?with_python2} -%package -n python2-%{srcname} -Summary: %{summary} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%{?python_provide:%python_provide python2-%{srcname}} - -%description -n python2-%{srcname} %{_description} -Python2 version. -%endif - - - -%if 0%{?with_python3} -%package -n python%{python3_pkgversion}-%{srcname} +%package -n python3-%{srcname} Summary: %{summary} -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -#BuildRequires: python%%{python3_pkgversion}-sphinx_rtd_theme -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools -%description -n python%{python3_pkgversion}-%{srcname} %{_description} +%description -n python3-%{srcname} %{_description} Python3 version. -%endif - %prep @@ -89,63 +55,65 @@ dos2unix doc/*.rst %build -%if 0%{?with_python2} -%py2_build -%endif - -%if 0%{?with_python3} %py3_build -%endif - make -C doc html BUILDDIR=_doc_build SPHINXBUILD=sphinx-build-%{python3_version} - %install -%if 0%{?with_python2} -%py2_install -%endif - -%if 0%{?with_python3} %py3_install -%endif - %check -# Tests got left out in the 0.44 source archive -# https://github.com/decalage2/olefile/issues/56 -%if 0%{?with_python2} -PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} tests/test_olefile.py -%endif - -%if 0%{?with_python3} PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests/test_olefile.py -%endif %files doc %doc doc/_doc_build/html - -%if 0%{?with_python2} -%files -n python2-%{srcname} -%doc README.md -%license doc/License.rst -%{python2_sitelib}/olefile-*.egg-info -%{python2_sitelib}/olefile/ -%endif - -%if 0%{?with_python3} -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python3-%{srcname} %doc README.md %license doc/License.rst %{python3_sitelib}/olefile-*.egg-info %{python3_sitelib}/olefile/ -%endif %changelog +* Wed Dec 25 2024 Arkady L. Shane - 0.47-5 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.47-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 0.47-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.47-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.47-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Dec 03 2023 Sandro Mani - 0.47-1 +- Update to 0.47 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.46-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 0.46-20 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.46-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.46-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.46-17 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.46-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 0.46-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources deleted file mode 100644 index 8ce868b..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (olefile-0.46.zip) = 2a19c443c1e4519680027ff557b5f737e6d0e707c1932a759ea85105717f4f6393149e0eb04589fe2b2b7e0c474042cfe34801faad38517799483b711001b4ac