Compare commits
10 Commits
2ec21c3c94
...
c6db3ff156
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6db3ff156 | ||
|
|
66ad500a7a | ||
|
|
52f6e81a83 | ||
|
|
3f2d47ded8 | ||
|
|
3f0425c233 | ||
|
|
f70997e21a | ||
|
|
414968106c | ||
|
|
9a2f17aab0 | ||
|
|
5c657308f0 | ||
|
|
beb9439085 |
Binary file not shown.
BIN
libbytesize-2.4.tar.gz
Normal file
BIN
libbytesize-2.4.tar.gz
Normal file
Binary file not shown.
@ -1,22 +1,27 @@
|
|||||||
%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: 6
|
Release: 2
|
||||||
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
|
|
||||||
|
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 python2-polib python2-pocketlint python2-six
|
||||||
|
%else
|
||||||
|
Obsoletes: python2-libbytesize
|
||||||
%endif
|
%endif
|
||||||
%if %{with_python3}
|
%if %{with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel python3-polib python3-pocketlint python3-six
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The goal of this project is to provide a tiny library that would
|
The goal of this project is to provide a tiny library that would
|
||||||
facilitate the common operations with sizes in bytes.
|
facilitate the common operations with sizes in bytes.
|
||||||
@ -45,6 +50,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
|
||||||
@ -59,6 +74,9 @@ Python 2 bindings for libbytesize.
|
|||||||
find %{buildroot} -type f -name "*.la" -delete
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -77,6 +95,8 @@ find %{buildroot} -type f -name "*.la" -delete
|
|||||||
%files -n python2-bytesize
|
%files -n python2-bytesize
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/python2*/site-packages/*
|
%{_libdir}/python2*/site-packages/*
|
||||||
|
%else
|
||||||
|
%exclude %{_libdir}/python2*/site-packages/*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with_python3}
|
%if %{with_python3}
|
||||||
@ -89,7 +109,34 @@ 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
|
||||||
|
* 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
|
* Sat Feb 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.4-6
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user