diff --git a/libbytesize-1.4.tar.gz b/libbytesize-1.4.tar.gz deleted file mode 100644 index 13fd171..0000000 Binary files a/libbytesize-1.4.tar.gz and /dev/null differ diff --git a/libbytesize-2.4.tar.gz b/libbytesize-2.4.tar.gz new file mode 100644 index 0000000..60935b7 Binary files /dev/null and b/libbytesize-2.4.tar.gz differ diff --git a/libbytesize.spec b/libbytesize.spec index b2e80ac..e32dd00 100644 --- a/libbytesize.spec +++ b/libbytesize.spec @@ -1,14 +1,15 @@ %define with_python2 0 %define with_python3 1 +%define with_tools 1 Name: libbytesize -Version: 1.4 -Release: 9 +Version: 2.4 +Release: 1 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 gdb +BuildRequires: gcc gmp-devel mpfr-devel pcre-devel gettext-devel libxslt gdb pcre2-devel %if %{with_python2} BuildRequires: python2-devel %else @@ -48,6 +49,16 @@ Requires: python2-six Python 2 bindings for libbytesize. %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 %prep @@ -94,7 +105,19 @@ find %{buildroot} -type f -name "*.la" -delete %doc ABOUT-NLS README.md %{_datadir}/gtk-doc/html/* +%if %{with_tools} +%files tools +%{_bindir}/bscalc +%{_mandir}/man1/bscalc.1* +%endif + %changelog +* Mon Aug 31 2020 wangchen - 2.4-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:update version to 2.4 + * Tue Aug 21 2020 openEuler Buildteam - 1.4-9 - Type:rebuild - ID:NA