61 lines
1.8 KiB
RPMSpec
61 lines
1.8 KiB
RPMSpec
Name: python-olefile
|
|
Version: 0.46
|
|
Release: 2
|
|
Summary: This Python package is used to parse, read and write Microsoft OLE2 files
|
|
License: BSD
|
|
URL: https://pypi.python.org/pypi/olefile/
|
|
Source0: https://files.pythonhosted.org/packages/source/o/olefile/olefile-%{version}.zip
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
olefile is a Python package to parse, read and write Microsoft OLE2 files, \
|
|
such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ files, \
|
|
Image Composer and FlashPix files, Outlook messages, StickyNotes, several \
|
|
Microscopy file formats, McAfee antivirus quarantine files, etc.
|
|
|
|
%package -n python2-olefile
|
|
Summary: This Python package is used to parse, read and write Microsoft OLE2 files.
|
|
BuildRequires: python2-devel
|
|
%{?python_provide: %python_provide python2-olefile}
|
|
|
|
%description -n python2-olefile
|
|
Python2 version.
|
|
|
|
%package -n python%{python3_pkgversion}-olefile
|
|
Summary: This Python package is used to parse, read and write Microsoft OLE2 files.
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
%{?python_provide: %python_provide python%{python3_pkgversion}-olefile}
|
|
|
|
%description -n python%{python3_pkgversion}-olefile
|
|
Python3 version.
|
|
|
|
%prep
|
|
%autosetup -p1 -n olefile-%{version}
|
|
|
|
%build
|
|
%py2_build
|
|
%py3_build
|
|
|
|
%install
|
|
%py2_install
|
|
%py3_install
|
|
|
|
%check
|
|
|
|
%files -n python2-olefile
|
|
%doc README.md
|
|
%license doc/License.rst
|
|
%{python2_sitelib}/olefile-*.egg-info
|
|
%{python2_sitelib}/olefile/
|
|
|
|
%files -n python%{python3_pkgversion}-olefile
|
|
%doc README.md
|
|
%license doc/License.rst
|
|
%{python3_sitelib}/olefile-*.egg-info
|
|
%{python3_sitelib}/olefile/
|
|
|
|
|
|
%changelog
|
|
* Thu Dec 12 2019 Senlin Xia <xiasenlin1@huawei.com> - 0.46-2
|
|
- Package init
|