Blame SPECS/python-olefile.spec

b069d7
Name:           python-olefile
b069d7
Version:        0.47
b069d7
Release:        6%{?dist}
b069d7
Summary:        Python package to parse, read and write Microsoft OLE2 files
b069d7
b069d7
%global         srcname         olefile
b069d7
%global         _description    %{expand:
b069d7
olefile is a Python package to parse, read and write Microsoft OLE2 files
b069d7
(also called Structured Storage, Compound File Binary Format or Compound
b069d7
Document File Format), such as Microsoft Office 97-2003 documents,
b069d7
vbaProject.bin in MS Office 2007+ files, Image Composer and FlashPix files,
b069d7
Outlook messages, StickyNotes, several Microscopy file formats, McAfee
b069d7
antivirus quarantine files, etc.
b069d7
}
b069d7
b069d7
License:        BSD-2-Clause
b069d7
URL:            https://www.decalage.info/olefile
b069d7
Source0:        %{pypi_source olefile %version zip}
b069d7
b069d7
BuildArch:      noarch
b069d7
BuildRequires:  make
b069d7
BuildRequires:  dos2unix
b069d7
BuildRequires:  /usr/bin/find
b069d7
b069d7
%description %{_description}
b069d7
b069d7
%package doc
b069d7
Summary:        %{summary}
b069d7
BuildArch:      noarch
b069d7
# Fedora >= 31 does not have python2-sphinx anymore.
b069d7
# There is python-sphinx in RHEL 7, but it's possibly too old.
b069d7
# Python26 sphinx works
b069d7
BuildRequires:  python3-sphinx
b069d7
BuildRequires:  python3-sphinx_rtd_theme
b069d7
b069d7
%description doc %{_description}
b069d7
This package contains documentation for %{name}.
b069d7
b069d7
b069d7
%package -n python3-%{srcname}
b069d7
Summary:        %{summary}
b069d7
BuildRequires:  python3-devel
b069d7
BuildRequires:  python3-setuptools
b069d7
b069d7
%description -n python3-%{srcname} %{_description}
b069d7
Python3 version.
b069d7
b069d7
b069d7
%prep
b069d7
%autosetup -p1 -n %{srcname}-%{version}
b069d7
b069d7
# Fix windows EOL
b069d7
find ./ -type f -name '*.py' -exec dos2unix '{}' ';'
b069d7
dos2unix doc/*.rst
b069d7
b069d7
b069d7
%build
b069d7
%py3_build
b069d7
make -C doc html BUILDDIR=_doc_build SPHINXBUILD=sphinx-build-%{python3_version}
b069d7
b069d7
b069d7
%install
b069d7
%py3_install
b069d7
b069d7
b069d7
%check
b069d7
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} tests/test_olefile.py
b069d7
b069d7
b069d7
%files doc
b069d7
%doc doc/_doc_build/html
b069d7
b069d7
%files -n python3-%{srcname}
b069d7
%doc README.md
b069d7
%license doc/License.rst
b069d7
%{python3_sitelib}/olefile-*.egg-info
b069d7
%{python3_sitelib}/olefile/
b069d7
b069d7
b069d7
%changelog
b069d7
* Mon Jan 20 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-6
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
b069d7
b069d7
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-5
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
b069d7
b069d7
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.47-4
b069d7
- Rebuilt for Python 3.13
b069d7
b069d7
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-3
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b069d7
b069d7
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.47-2
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b069d7
b069d7
* Sun Dec 03 2023 Sandro Mani <manisandro@gmail.com> - 0.47-1
b069d7
- Update to 0.47
b069d7
b069d7
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-21
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
b069d7
b069d7
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.46-20
b069d7
- Rebuilt for Python 3.12
b069d7
b069d7
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-19
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
b069d7
b069d7
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-18
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b069d7
b069d7
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.46-17
b069d7
- Rebuilt for Python 3.11
b069d7
b069d7
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-16
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b069d7
b069d7
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-15
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b069d7
b069d7
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.46-14
b069d7
- Rebuilt for Python 3.10
b069d7
b069d7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-13
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b069d7
b069d7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-12
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b069d7
b069d7
* Sat May 30 2020 Sandro Mani <manisandro@gmail.com> - 0.46-11
b069d7
- Build python2 subpackage on F33, python2-pillow is still around
b069d7
b069d7
* Sat May 23 2020 Miro Hron훾ok <mhroncok@redhat.com> - 0.46-10
b069d7
- Rebuilt for Python 3.9
b069d7
b069d7
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-9
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b069d7
b069d7
* Fri Nov 08 2019 Michal Ambroz <rebus AT_ seznam.cz> - 0.46-8
b069d7
- rebuild for new version of oletools
b069d7
- conditional stop building python2 subpackage on fc>32 and rhel>8
b069d7
- split doc to separate subpackage
b069d7
b069d7
* Mon Oct 07 2019 Sandro Mani <manisandro@gmail.com> - 0.46-7
b069d7
- BR: python-setuptools (#1758972)
b069d7
b069d7
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.46-6
b069d7
- Rebuilt for Python 3.8.0rc1 (#1748018)
b069d7
b069d7
* Fri Aug 16 2019 Miro Hron훾ok <mhroncok@redhat.com> - 0.46-5
b069d7
- Rebuilt for Python 3.8
b069d7
b069d7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-4
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b069d7
b069d7
* Mon Mar 11 2019 Sandro Mani <manisandro@gmail.com> - 0.46-3
b069d7
- Drop docs in python2 build
b069d7
b069d7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.46-2
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b069d7
b069d7
* Tue Sep 11 2018 Sandro Mani <manisandro@gmail.com> - 0.46-1
b069d7
- Update to 0.46
b069d7
b069d7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.45.1-3
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b069d7
b069d7
* Sat Jun 16 2018 Miro Hron훾ok <mhroncok@redhat.com> - 0.45.1-2
b069d7
- Rebuilt for Python 3.7
b069d7
b069d7
* Mon Feb 12 2018 Sandro Mani <manisandro@gmail.com> - 0.45.1-1
b069d7
- Update to 0.45.1
b069d7
b069d7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-5
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b069d7
b069d7
* Wed Oct 04 2017 Robert Scheck <robert@fedoraproject.org> - 0.44-4
b069d7
- Added spec file conditionals to build for EPEL 7 (#1498616)
b069d7
b069d7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-3
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b069d7
b069d7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.44-2
b069d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b069d7
b069d7
* Thu Jan 12 2017 Sandro Mani <manisandro@gmail.com> - 0.44-1
b069d7
- Update to 0.44
b069d7
b069d7
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.4.gitbc9d196
b069d7
- Fix incorrect line endings
b069d7
- Remove shebang from non-executable scripts
b069d7
b069d7
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.3.gitbc9d196
b069d7
- Further reduce duplicate text
b069d7
- Add python_provides
b069d7
b069d7
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.2.gitbc9d196
b069d7
- Use %%py_build and %%py_install macros
b069d7
- Use %%summary, %%url to reduce duplicate text
b069d7
- Add %%check
b069d7
- Move BR to subpackages
b069d7
b069d7
* Mon Jan 02 2017 Sandro Mani <manisandro@gmail.com> - 0.44-0.1.gitbc9d196
b069d7
- Initial package