Compare commits

..

No commits in common. "c6db3ff15627e0eddda4189ff07e89e0354ef26f" and "2ec21c3c9485959f11fea80b2096ce6f5ab02a87" have entirely different histories.

3 changed files with 5 additions and 52 deletions

BIN
libbytesize-1.4.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,27 +1,22 @@
%define with_python2 0
%define with_python3 1
%define with_tools 1
Name: libbytesize
Version: 2.4
Release: 2
Version: 1.4
Release: 6
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 pcre2-devel
BuildRequires: gcc gmp-devel mpfr-devel pcre-devel gettext-devel libxslt
%if %{with_python2}
BuildRequires: python2-devel python2-polib python2-pocketlint python2-six
%else
Obsoletes: python2-libbytesize
BuildRequires: python2-devel
%endif
%if %{with_python3}
BuildRequires: python3-devel python3-polib python3-pocketlint python3-six
BuildRequires: python3-devel
%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.
@ -50,16 +45,6 @@ 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
@ -74,9 +59,6 @@ for doing calculations with storage sizes.
find %{buildroot} -type f -name "*.la" -delete
%find_lang %{name}
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -95,8 +77,6 @@ make check
%files -n python2-bytesize
%defattr(-,root,root)
%{_libdir}/python2*/site-packages/*
%else
%exclude %{_libdir}/python2*/site-packages/*
%endif
%if %{with_python3}
@ -109,34 +89,7 @@ make check
%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