update to 2.4

This commit is contained in:
wangchen2020 2020-08-31 11:11:15 +08:00
parent 3f0425c233
commit 3f2d47ded8
3 changed files with 26 additions and 3 deletions

Binary file not shown.

BIN
libbytesize-2.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,14 +1,15 @@
%define with_python2 0 %define with_python2 0
%define with_python3 1 %define with_python3 1
%define with_tools 1
Name: libbytesize Name: libbytesize
Version: 1.4 Version: 2.4
Release: 9 Release: 1
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 gdb BuildRequires: gcc gmp-devel mpfr-devel pcre-devel gettext-devel libxslt gdb pcre2-devel
%if %{with_python2} %if %{with_python2}
BuildRequires: python2-devel BuildRequires: python2-devel
%else %else
@ -48,6 +49,16 @@ Requires: python2-six
Python 2 bindings for libbytesize. Python 2 bindings for libbytesize.
%endif %endif
%if %{with_tools}
%package tools
Summary: Various nice tools based on libbytesize
Requires: python3-bytesize = %{version}-%{release}
%description tools
Variousnicetoolsbasedonlibbytesize, in particular the calculator
for doing calculations with storage sizes.
%endif
%package_help %package_help
%prep %prep
@ -94,7 +105,19 @@ find %{buildroot} -type f -name "*.la" -delete
%doc ABOUT-NLS README.md %doc ABOUT-NLS README.md
%{_datadir}/gtk-doc/html/* %{_datadir}/gtk-doc/html/*
%if %{with_tools}
%files tools
%{_bindir}/bscalc
%{_mandir}/man1/bscalc.1*
%endif
%changelog %changelog
* Mon Aug 31 2020 wangchen <wangchen137@huawei.com> - 2.4-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 2.4
* Tue Aug 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-9 * Tue Aug 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-9
- Type:rebuild - Type:rebuild
- ID:NA - ID:NA