add build requires of python2-devel if with python2

This commit is contained in:
openeuler-basic 2020-02-21 18:51:29 +08:00
parent 758a1b57c1
commit 0fafa9c948

View File

@ -3,12 +3,15 @@
Name: libbytesize
Version: 1.4
Release: 4
Release: 5
Summary: A library for working with sizes in bytes
License: LGPLv2+
URL: https://github.com/storaged-project/libbytesize
Source0: https://github.com/storaged-project/libbytesize/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc gmp-devel mpfr-devel pcre-devel gettext-devel libxslt
%if %{with_python2}
BuildRequires: python2-devel
%endif
%if %{with_python3}
BuildRequires: python3-devel
%endif
@ -87,6 +90,12 @@ find %{buildroot} -type f -name "*.la" -delete
%{_datadir}/gtk-doc/html/*
%changelog
* Fri Feb 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add build requires of python2-devel if with python2
* Wed Nov 20 2019 fangyufa<fangyufa1@huawei.com> - 1.4-4
- Type:bugfix
- ID:NA