|
|
971967 |
Name: python-olefile
|
|
|
971967 |
Version: 0.46
|
|
|
971967 |
Release: 13%{?dist}
|
|
|
971967 |
Summary: Python package to parse, read and write Microsoft OLE2 files
|
|
|
971967 |
|
|
|
971967 |
%global srcname olefile
|
|
|
971967 |
%global _description %{expand:
|
|
|
971967 |
olefile is a Python package to parse, read and write Microsoft OLE2 files
|
|
|
971967 |
(also called Structured Storage, Compound File Binary Format or Compound
|
|
|
971967 |
Document File Format), such as Microsoft Office 97-2003 documents,
|
|
|
971967 |
vbaProject.bin in MS Office 2007+ files, Image Composer and FlashPix files,
|
|
|
971967 |
Outlook messages, StickyNotes, several Microscopy file formats, McAfee
|
|
|
971967 |
antivirus quarantine files, etc.
|
|
|
971967 |
}
|
|
|
971967 |
|
|
|
971967 |
# Build with python3 package by default
|
|
|
971967 |
%bcond_without python3
|
|
|
971967 |
|
|
|
971967 |
# Build without python2 package for newer releases > fc32 and > rhel8
|
|
|
971967 |
# python2 package already released for rhel8
|
|
|
971967 |
# https://pagure.io/fesco/issue/2266
|
|
|
971967 |
%if (0%{?fedora} && 0%{?fedora} > 33 ) || ( 0%{?rhel} && 0%{?rhel} > 8 ) || 0%{?flatpak}
|
|
|
971967 |
%bcond_with python2
|
|
|
971967 |
%else
|
|
|
971967 |
%bcond_without python2
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
License: BSD
|
|
|
971967 |
URL: https://www.decalage.info/python/olefile
|
|
|
971967 |
# https://pypi.python.org/pypi/olefile/
|
|
|
971967 |
# https://github.com/decalage2/olefile/releases
|
|
|
971967 |
Source0: https://files.pythonhosted.org/packages/source/o/%{srcname}/%{srcname}-%{version}.zip
|
|
|
971967 |
|
|
|
971967 |
BuildArch: noarch
|
|
|
971967 |
BuildRequires: make
|
|
|
971967 |
BuildRequires: dos2unix
|
|
|
971967 |
BuildRequires: /usr/bin/find
|
|
|
971967 |
|
|
|
971967 |
%description %{_description}
|
|
|
971967 |
|
|
|
971967 |
%package doc
|
|
|
971967 |
Summary: %{summary}
|
|
|
971967 |
BuildArch: noarch
|
|
|
971967 |
# Fedora >= 31 does not have python2-sphinx anymore.
|
|
|
971967 |
# There is python-sphinx in RHEL 7, but it's possibly too old.
|
|
|
971967 |
# Python26 sphinx works
|
|
|
971967 |
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
|
971967 |
BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme
|
|
|
971967 |
|
|
|
971967 |
%description doc %{_description}
|
|
|
971967 |
This package contains documentation for %{name}.
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python2}
|
|
|
971967 |
%package -n python2-%{srcname}
|
|
|
971967 |
Summary: %{summary}
|
|
|
971967 |
BuildRequires: python2-devel
|
|
|
971967 |
BuildRequires: python2-setuptools
|
|
|
971967 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
971967 |
|
|
|
971967 |
%description -n python2-%{srcname} %{_description}
|
|
|
971967 |
Python2 version.
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python3}
|
|
|
971967 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
971967 |
Summary: %{summary}
|
|
|
971967 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
971967 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
971967 |
#BuildRequires: python%%{python3_pkgversion}-sphinx_rtd_theme
|
|
|
971967 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
971967 |
|
|
|
971967 |
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
|
|
|
971967 |
Python3 version.
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%prep
|
|
|
971967 |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
971967 |
|
|
|
971967 |
# Fix windows EOL
|
|
|
971967 |
find ./ -type f -name '*.py' -exec dos2unix '{}' ';'
|
|
|
971967 |
dos2unix doc/*.rst
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%build
|
|
|
971967 |
%if 0%{?with_python2}
|
|
|
971967 |
%py2_build
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python3}
|
|
|
971967 |
%py3_build
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
make -C doc html BUILDDIR=_doc_build SPHINXBUILD=sphinx-build-%{python3_version}
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%install
|
|
|
971967 |
%if 0%{?with_python2}
|
|
|
971967 |
%py2_install
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python3}
|
|
|
971967 |
%py3_install
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%check
|
|
|
971967 |
# Tests got left out in the 0.44 source archive
|
|
|
971967 |
# https://github.com/decalage2/olefile/issues/56
|
|
|
971967 |
%if 0%{?with_python2}
|
|
|
971967 |
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} tests/test_olefile.py
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python3}
|
|
|
971967 |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests/test_olefile.py
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%files doc
|
|
|
971967 |
%doc doc/_doc_build/html
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python2}
|
|
|
971967 |
%files -n python2-%{srcname}
|
|
|
971967 |
%doc README.md
|
|
|
971967 |
%license doc/License.rst
|
|
|
971967 |
%{python2_sitelib}/olefile-*.egg-info
|
|
|
971967 |
%{python2_sitelib}/olefile/
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
%if 0%{?with_python3}
|
|
|
971967 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
971967 |
%doc README.md
|
|
|
971967 |
%license doc/License.rst
|
|
|
971967 |
%{python3_sitelib}/olefile-*.egg-info
|
|
|
971967 |
%{python3_sitelib}/olefile/
|
|
|
971967 |
%endif
|
|
|
971967 |
|
|
|
971967 |
|
|
|
971967 |
%changelog
|
|
|
971967 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-13
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-12
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Sat May 30 2020 Sandro Mani <manisandro@gmail.com> - 0.46-11
|
|
|
971967 |
- Build python2 subpackage on F33, python2-pillow is still around
|
|
|
971967 |
|
|
|
971967 |
* Sat May 23 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.46-10
|
|
|
971967 |
- Rebuilt for Python 3.9
|
|
|
971967 |
|
|
|
971967 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-9
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Fri Nov 08 2019 Michal Ambroz <rebus AT_ seznam.cz> - 0.46-8
|
|
|
971967 |
- rebuild for new version of oletools
|
|
|
971967 |
- conditional stop building python2 subpackage on fc>32 and rhel>8
|
|
|
971967 |
- split doc to separate subpackage
|
|
|
971967 |
|
|
|
971967 |
* Mon Oct 07 2019 Sandro Mani <manisandro@gmail.com> - 0.46-7
|
|
|
971967 |
- BR: python-setuptools (#1758972)
|
|
|
971967 |
|
|
|
971967 |
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.46-6
|
|
|
971967 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
971967 |
|
|
|
971967 |
* Fri Aug 16 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.46-5
|
|
|
971967 |
- Rebuilt for Python 3.8
|
|
|
971967 |
|
|
|
971967 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-4
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Mon Mar 11 2019 Sandro Mani <manisandro@gmail.com> - 0.46-3
|
|
|
971967 |
- Drop docs in python2 build
|
|
|
971967 |
|
|
|
971967 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-2
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Tue Sep 11 2018 Sandro Mani <manisandro@gmail.com> - 0.46-1
|
|
|
971967 |
- Update to 0.46
|
|
|
971967 |
|
|
|
971967 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.45.1-3
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Sat Jun 16 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.45.1-2
|
|
|
971967 |
- Rebuilt for Python 3.7
|
|
|
971967 |
|
|
|
971967 |
* Mon Feb 12 2018 Sandro Mani <manisandro@gmail.com> - 0.45.1-1
|
|
|
971967 |
- Update to 0.45.1
|
|
|
971967 |
|
|
|
971967 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-5
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Wed Oct 04 2017 Robert Scheck <robert@fedoraproject.org> - 0.44-4
|
|
|
971967 |
- Added spec file conditionals to build for EPEL 7 (#1498616)
|
|
|
971967 |
|
|
|
971967 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-3
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-2
|
|
|
971967 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
971967 |
|
|
|
971967 |
* Thu Jan 12 2017 Sandro Mani <manisandro@gmail.com> - 0.44-1
|
|
|
971967 |
- Update to 0.44
|
|
|
971967 |
|
|
|
971967 |
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.4.gitbc9d196
|
|
|
971967 |
- Fix incorrect line endings
|
|
|
971967 |
- Remove shebang from non-executable scripts
|
|
|
971967 |
|
|
|
971967 |
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.3.gitbc9d196
|
|
|
971967 |
- Further reduce duplicate text
|
|
|
971967 |
- Add python_provides
|
|
|
971967 |
|
|
|
971967 |
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.2.gitbc9d196
|
|
|
971967 |
- Use %%py_build and %%py_install macros
|
|
|
971967 |
- Use %%summary, %%url to reduce duplicate text
|
|
|
971967 |
- Add %%check
|
|
|
971967 |
- Move BR to subpackages
|
|
|
971967 |
|
|
|
971967 |
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.1.gitbc9d196
|
|
|
971967 |
- Initial package
|