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.3.tar.gz b/libbytesize-2.3.tar.gz new file mode 100644 index 0000000..0c6dd8d Binary files /dev/null and b/libbytesize-2.3.tar.gz differ diff --git a/libbytesize.spec b/libbytesize.spec index 57b66e4..3a87103 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: 8 +Version: 2.3 +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 +* Sat Jul 25 2020 yang_zhuang_zhuang - 2.3-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:update version to 2.3 + * Sat Mar 21 2020 openEuler Buildteam - 1.4-8 - fixbug in remove python2 support for package