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