remove python2 dependency
This commit is contained in:
parent
3abc523a80
commit
adf38935d3
@ -1,6 +1,6 @@
|
|||||||
Name: python-olefile
|
Name: python-olefile
|
||||||
Version: 0.46
|
Version: 0.46
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: This Python package is used to parse, read and write Microsoft OLE2 files
|
Summary: This Python package is used to parse, read and write Microsoft OLE2 files
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://pypi.python.org/pypi/olefile/
|
URL: https://pypi.python.org/pypi/olefile/
|
||||||
@ -13,14 +13,6 @@ such as Microsoft Office 97-2003 documents, vbaProject.bin in MS Office 2007+ fi
|
|||||||
Image Composer and FlashPix files, Outlook messages, StickyNotes, several \
|
Image Composer and FlashPix files, Outlook messages, StickyNotes, several \
|
||||||
Microscopy file formats, McAfee antivirus quarantine files, etc.
|
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
|
%package -n python%{python3_pkgversion}-olefile
|
||||||
Summary: This Python package is used to parse, read and write Microsoft OLE2 files.
|
Summary: This Python package is used to parse, read and write Microsoft OLE2 files.
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@ -33,21 +25,13 @@ Python3 version.
|
|||||||
%autosetup -p1 -n olefile-%{version}
|
%autosetup -p1 -n olefile-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%check
|
%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
|
%files -n python%{python3_pkgversion}-olefile
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license doc/License.rst
|
%license doc/License.rst
|
||||||
@ -56,5 +40,8 @@ Python3 version.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 0.46-3
|
||||||
|
- remove python2 dependency
|
||||||
|
|
||||||
* Thu Dec 12 2019 Senlin Xia <xiasenlin1@huawei.com> - 0.46-2
|
* Thu Dec 12 2019 Senlin Xia <xiasenlin1@huawei.com> - 0.46-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user