Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c6db3ff156
!19 enable check test suite
From: @panxh_purple 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-07-13 07:07:01 +00:00
panxiaohe
66ad500a7a enable check test suite 2022-07-12 16:59:43 +08:00
openeuler-ci-bot
52f6e81a83 !8 update to 2.4
Merge pull request !8 from wangchen/wangchen
2020-08-31 17:00:54 +08:00
wangchen2020
3f2d47ded8 update to 2.4 2020-08-31 11:11:15 +08:00
openeuler-ci-bot
3f0425c233 !7 add release version for update
Merge pull request !7 from small_leek/openEuler-20.03-LTS
2020-08-21 10:47:18 +08:00
small_leek
f70997e21a add release for update 2020-08-21 10:24:46 +08:00
openeuler-ci-bot
414968106c !4 fixbug in remove python2 support for package
Merge pull request !4 from chengquan/dev
2020-03-21 21:51:46 +08:00
chengquan
9a2f17aab0 fixbug in remove python2 support for package 2020-03-21 18:22:23 +08:00
openeuler-ci-bot
5c657308f0 !3 fix bug in self-building
Merge pull request !3 from chengquan/dev
2020-03-15 10:30:09 +08:00
chengquan
beb9439085 fixbug in self-building 2020-03-14 17:22:27 +08:00
3 changed files with 52 additions and 5 deletions

Binary file not shown.

BIN
libbytesize-2.4.tar.gz Normal file

Binary file not shown.

View File

@ -1,22 +1,27 @@
%define with_python2 0
%define with_python3 1
%define with_tools 1
Name: libbytesize
Version: 1.4
Release: 6
Version: 2.4
Release: 2
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
BuildRequires: gcc gmp-devel mpfr-devel pcre-devel gettext-devel libxslt gdb pcre2-devel
%if %{with_python2}
BuildRequires: python2-devel
BuildRequires: python2-devel python2-polib python2-pocketlint python2-six
%else
Obsoletes: python2-libbytesize
%endif
%if %{with_python3}
BuildRequires: python3-devel
BuildRequires: python3-devel python3-polib python3-pocketlint python3-six
%endif
BuildRequires: gtk-doc
%description
The goal of this project is to provide a tiny library that would
facilitate the common operations with sizes in bytes.
@ -45,6 +50,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
@ -59,6 +74,9 @@ Python 2 bindings for libbytesize.
find %{buildroot} -type f -name "*.la" -delete
%find_lang %{name}
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -77,6 +95,8 @@ find %{buildroot} -type f -name "*.la" -delete
%files -n python2-bytesize
%defattr(-,root,root)
%{_libdir}/python2*/site-packages/*
%else
%exclude %{_libdir}/python2*/site-packages/*
%endif
%if %{with_python3}
@ -89,7 +109,34 @@ 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
* Tue Jul 12 2022 panxiaohe <panxh.life@foxmail.com> - 2.4-2
- enable check test suite
* 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
- Type:rebuild
- ID:NA
- SUG:NA
- DESC:rebuild for requirement package update
* Sat Mar 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-8
- fixbug in remove python2 support for package
* 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
- Type:bugfix
- ID:NA