add build requires of python2-devel if with python2
This commit is contained in:
parent
758a1b57c1
commit
0fafa9c948
@ -3,12 +3,15 @@
|
|||||||
|
|
||||||
Name: libbytesize
|
Name: libbytesize
|
||||||
Version: 1.4
|
Version: 1.4
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A library for working with sizes in bytes
|
Summary: A library for working with sizes in bytes
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://github.com/storaged-project/libbytesize
|
URL: https://github.com/storaged-project/libbytesize
|
||||||
Source0: https://github.com/storaged-project/libbytesize/releases/download/%{version}/%{name}-%{version}.tar.gz
|
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
|
BuildRequires: gcc gmp-devel mpfr-devel pcre-devel gettext-devel libxslt
|
||||||
|
%if %{with_python2}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
%endif
|
||||||
%if %{with_python3}
|
%if %{with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif
|
%endif
|
||||||
@ -87,6 +90,12 @@ find %{buildroot} -type f -name "*.la" -delete
|
|||||||
%{_datadir}/gtk-doc/html/*
|
%{_datadir}/gtk-doc/html/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Nov 20 2019 fangyufa<fangyufa1@huawei.com> - 1.4-4
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user