|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: python-olefile
|
|
|
|
Name: python-olefile
|
|
|
|
Version: 0.47
|
|
|
|
Version: 0.46
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 15%{?dist}
|
|
|
|
Summary: Python package to parse, read and write Microsoft OLE2 files
|
|
|
|
Summary: Python package to parse, read and write Microsoft OLE2 files
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname olefile
|
|
|
|
%global srcname olefile
|
|
|
@ -13,12 +13,27 @@ Outlook messages, StickyNotes, several Microscopy file formats, McAfee
|
|
|
|
antivirus quarantine files, etc.
|
|
|
|
antivirus quarantine files, etc.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
License: BSD-2-Clause
|
|
|
|
# Build with python3 package by default
|
|
|
|
URL: https://www.decalage.info/olefile
|
|
|
|
%bcond_without python3
|
|
|
|
Source0: %{pypi_source olefile %version zip}
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: /usr/bin/find
|
|
|
|
BuildRequires: /usr/bin/find
|
|
|
|
|
|
|
|
|
|
|
@ -30,20 +45,39 @@ BuildArch: noarch
|
|
|
|
# Fedora >= 31 does not have python2-sphinx anymore.
|
|
|
|
# Fedora >= 31 does not have python2-sphinx anymore.
|
|
|
|
# There is python-sphinx in RHEL 7, but it's possibly too old.
|
|
|
|
# There is python-sphinx in RHEL 7, but it's possibly too old.
|
|
|
|
# Python26 sphinx works
|
|
|
|
# Python26 sphinx works
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme
|
|
|
|
|
|
|
|
|
|
|
|
%description doc %{_description}
|
|
|
|
%description doc %{_description}
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
|
|
|
#BuildRequires: python%%{python3_pkgversion}-sphinx_rtd_theme
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{srcname} %{_description}
|
|
|
|
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
|
|
|
|
Python3 version.
|
|
|
|
Python3 version.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
@ -55,65 +89,63 @@ dos2unix doc/*.rst
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
make -C doc html BUILDDIR=_doc_build SPHINXBUILD=sphinx-build-%{python3_version}
|
|
|
|
make -C doc html BUILDDIR=_doc_build SPHINXBUILD=sphinx-build-%{python3_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
|
|
|
%py2_install
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%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
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests/test_olefile.py
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc doc/_doc_build/html
|
|
|
|
%doc doc/_doc_build/html
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%license doc/License.rst
|
|
|
|
%license doc/License.rst
|
|
|
|
%{python3_sitelib}/olefile-*.egg-info
|
|
|
|
%{python3_sitelib}/olefile-*.egg-info
|
|
|
|
%{python3_sitelib}/olefile/
|
|
|
|
%{python3_sitelib}/olefile/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Dec 25 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.47-5
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.47-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Dec 03 2023 Sandro Mani <manisandro@gmail.com> - 0.47-1
|
|
|
|
|
|
|
|
- Update to 0.47
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-21
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.46-20
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-19
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-18
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.46-17
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-16
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-15
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|