fixbug in self-building

This commit is contained in:
chengquan 2020-03-14 17:22:27 +08:00 committed by Gitee
parent 2ec21c3c94
commit beb9439085

View File

@ -3,12 +3,12 @@
Name: libbytesize Name: libbytesize
Version: 1.4 Version: 1.4
Release: 6 Release: 7
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 gdb
%if %{with_python2} %if %{with_python2}
BuildRequires: python2-devel BuildRequires: python2-devel
%endif %endif
@ -77,6 +77,8 @@ find %{buildroot} -type f -name "*.la" -delete
%files -n python2-bytesize %files -n python2-bytesize
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/python2*/site-packages/* %{_libdir}/python2*/site-packages/*
%else
%exclude %{_libdir}/python2*/site-packages/*
%endif %endif
%if %{with_python3} %if %{with_python3}
@ -90,6 +92,9 @@ find %{buildroot} -type f -name "*.la" -delete
%{_datadir}/gtk-doc/html/* %{_datadir}/gtk-doc/html/*
%changelog %changelog
* Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-7
- fixbug in self-building
* Sat Feb 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-6 * Sat Feb 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-6
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA