Accepting request 1108363 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/1108363
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libbytesize?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2023-09-02 20:07:16 +00:00 committed by Git OBS Bridge
commit c9d655bcf0
5 changed files with 464 additions and 22 deletions

435
NEWS.rst Normal file
View File

@ -0,0 +1,435 @@
Libbytesize 2.9
---------------
Tomas Bzatek (1):
- build: Exit before AC_OUTPUT on error
Vojtech Trefny (1):
- ci: Manually prepare spec file for Packit
Weblate (1):
- Update translation files
triallax (1):
- tests: fix locale tests on musl
김인수 (1):
- Translated using Weblate (Korean)
Libbytesize 2.8
---------------
Baurzhan Muftakhidinov (2):
- Added translation using Weblate (Kazakh)
- Translated using Weblate (Kazakh)
Temuri Doghonadze (2):
- Added translation using Weblate (Georgian)
- Translated using Weblate (Georgian)
Vojtech Trefny (24):
- Sync spec with downstream
- README: Remove the Travis CI badge
- Add a GitHub action for running csmock static analysis
- ci: Run rpmbuild tests in GitHub actions
- ci: Update the csmock GitHub actions configuration
- ci: Rename csmock.Dockerfile to ci.Dockerfile
- ci: Update Fedora versions for RPM build tests
- spec: Change license string to the SPDX format required by Fedora
- misc: Remove "warn: false" from Ansible "command"
- ci: Update chroots for RPM builds
- configure.ac: Remove invalid email address for bug reports
- ci: Add Packit configuration for RPM builds on pull requests
- ci: Remove GitHub action for RPM builds
- ci: Use Packit for daily builds in Copr
- spec: Bump release to 21 for Packit daily builds
- ci: Add Packit automation for downstream builds
- spec: Fix source archive URL
- Make use of error optional
- Replace C++ style comments with C style
- Various docstring fixes
- docs: Remove information about Python 2 support
- Remove unused test dependencies variables from Makefile
- Do not hardcode pylint executable name in Makefile
- ci: Do not use release descriptions for Packit builds
Weblate (1):
- Update translation files
김인수 (1):
- Translated using Weblate (Korean)
Libbytesize 2.7
---------------
Gogo Gogsi (2):
- Added translation using Weblate (Croatian)
- Translated using Weblate (Croatian)
Sam James (1):
- build: avoid bashisms in configure
Vojtech Trefny (6):
- Do not use distutils to get Python library path
- Revert "Translations update from Weblate"
- Fix warnings dicovered by the GCC analyzer
- Fix some warnings and typos in docstrings and comments
- Remove Travis CI configuration
- Fix skipping tests when required locale is missing
Weblate (2):
- Update translation files
- Update translation files
Libbytesize 2.6
---------------
Hela Basa (1):
- Added translation using Weblate (Sinhala)
Ricky Tigg (1):
- Translated using Weblate (Finnish)
Vojtech Trefny (3):
- Sync spec with downstream
- Squashed 'translation-canary/' changes from fccbb1b..4d4e65b
- Make sure Size can be interpreted as integer in Python 3.10
Weblate (1):
- Update translation files
simmon (2):
- Added translation using Weblate (Korean)
- Translated using Weblate (Korean)
Libbytesize 2.5
---------------
Adolfo Jayme Barrientos (2):
- Translated using Weblate (Spanish)
- Translated using Weblate (Asturian)
Ricky Tigg (1):
- Translated using Weblate (Finnish)
Vojtech Trefny (6):
- Sync spec with downstream
- travis: Add --nogpgcheck when using dnf on Fedora
- bscalc: Add option to print only single "human readable" result
- tests: Run pylint and pycodestyle on bscalc
- travis: Print logs after failed tests
- tools: Read input from stdin when not running in a tty
Weblate (1):
- Update translation files
Yaron Shahrabani (2):
- Added translation using Weblate (Hebrew)
- Translated using Weblate (Hebrew)
gururajrkatti (1):
- Add support to ppc64le for debian build
Libbytesize 2.4
---------------
Adam Duskett (1):
- remove msgcat dependency
Akarshan Biswas (2):
- Added translation using Weblate (Bengali (India))
- Translated using Weblate (Bengali (India))
Vojtech Trefny (4):
- Fix library version in pkgconfig file
- Add ansible playbook for installing test dependencies
- Add Travis CI config and Dockerfiles for running tests
- Add Travis build status badge
Weblate (1):
- Update translation files
Libbytesize 2.3
---------------
Jean-Baptiste (1):
- add translation platform widget
Oğuz Ersen (1):
- Translated using Weblate (Turkish)
Vojtech Trefny (5):
- Sync spec with downstream
- Add PO files to git
- Remove Zanata from our build and release processes
- Do not regenerate POT file during 'make release'
- Fix memory leak in bs_size_new_from_str
Weblate (1):
- Update translation files
Libbytesize 2.2
---------------
Giulio Benetti (1):
- src/gettext: fix warning if gettext is already present
Tim Biermann (1):
- fix build on shells where test == fails
Vojtech Trefny (2):
- Add POT file to git and do not rebuild it during every build
- New version - 2.2
Vratislav Podzimek (2):
- Update README.md
- Require the same version of python3-bytesize in libbytesize-tools
Libbytesize 2.1
---------------
New minor release of the libbytesize library. There are only two bugfixes in
this release.
**Full list of changes**
Hongxu Jia (1):
- fix out of tree build failure
Vojtech Trefny (1):
- Fix return value for round_to_nearest when using Size
Libbytesize 2.0
---------------
New major release of the libbytesize library. There are no API or ABI changes
but we made some changes in dependencies and behavior.
**Notable changes**
- New bytesize calculator `bssize` has been added.
- Code has been ported from PCRE to PCRE2.
- Python 2 support has been removed.
**Full list of changes**
Vojtech Trefny (5):
- Run all libbytesize tests from one script
- Add all "public" python API symbols to __init__.py
- Allow running tests using installed library
- Remove Python 2 support
- Port to pcre2
Vratislav Podzimek (10):
- Add support for floor division by a non-integer number in Python
- Add a simple bytesize calculator tool
- Add tools to autotools and packaging
- Exit with 1 from configure if there were failures
- Add a summary to the end of ./configure output
- Only support modulo between two Size instances
- Fix parsing of exponential representations of real numbers
- Add the '--version' option to bs_calc.py
- Add a man page for the bscalc tool
- Assume the given expression is in bytes if no unit is given
Libbytesize 1.4
---------------
New minor release of the libbytesize library. There are only small changes in
this release.
**Full list of changes**
Vojtech Trefny (6):
- Use new ldconfig_scriptlets macro in spec
- Do not use rpm to check for Zanata client
- Fix licence header for "gettext.h"
- Do not try to run python2 tests without python2 support
- Make sure the test script fails if one of the test runs fail
- Squashed 'translation-canary/' changes from 840c2d6..fccbb1b
Thanks to all our contributors.
Vojtech Trefny, 2018-08-02
Libbytesize 1.3
---------------
New minor release of the libbytesize library. There are only small changes in
this release. Most notable change is new configure option `--without-python2`
that allows building libbytesize without Python 2 support.
**Full list of changes**
Vojtech Trefny (5):
- Do not segfault when trying to bs_size_free NULL
- Fix links for documentation and GH project
- Add gcc to BuildRequires
- Sync spec with downstream
- Allow building libbytesize without Python 2 support
Vratislav Podzimek (1):
- Add a HACKING.rst file
Thanks to all our contributors.
Vojtech Trefny, 2018-04-19
Libbytesize 1.2
---------------
New minor release of the libbytesize library. There are only small changes in
this release.
**Full list of changes**
Vratislav Podzimek (4):
- Do not lie about tag creation
- Do not require the glib-2.0 pkgconfig package
- Use only version as a tag of the last release
Thanks to all our contributors.
Vratislav Podzimek, 2017-09-29
Libbytesize 1.1
---------------
New minor release of the libbytesize library. There are only small changes in
this release and one important bug fix.
**Notable changes**
- Fixed parsing size strings with translated units (e.g. "10 Gio" in French).
**Full list of changes**
Vojtech Trefny (3):
- Use only one git tag for new releases
- Fix source and url in spec file
- Add NEWS.rst file
Vratislav Podzimek (4):
- Add two temporary test files to .gitignore
- Actually translate the units when expected
- Fix the shortlog target
- Sync spec with downstream
Thanks to all our contributors.
Vratislav Podzimek, 2017-09-21
Libbytesize 1.0
---------------
New major release of the libbytesize library. There are only small changes in
this release, mostly bug fixes. The version bump is intended as a statement of
"finishing" work on this library. The API is now stable and we don't plan to
change it or add new major features. Future changes will probably include only
bug fixes.
**Full list of changes**
Vojtech Trefny (1):
- Make more space for CI status image
Vratislav Podzimek (4):
- Properly support 64bit operands
- Remove extra 'is' in two docstrings
- Include limits.h to make sure ULONG_MAX is defined
- New version - 1.0
Thanks to all our contributors.
Vratislav Podzimek, 2017-09-14
Libbytesize 0.11
----------------
New minor release of the libbytesize library. Most changes in this release are
related to fixing new issues and bugs.
**Full list of changes**
Kai Lüke (1):
- Allow non-source directory builds
Vojtech Trefny (7):
- Do not try to run translation tests on CentOS/RHEL 7
- Fix library name in acinclude.m4
- Fix checking for available locales
- Check for requires in generated spec file, not in the template
- Remove "glibc-all-langpacks" from test dependencies
- Fix README file name
- Do not check for test dependencies for every test run
Vratislav Podzimek (4):
- Skip tests if they require unavailable locales
- Add a build status image to the README.md
- Reserve more space for the CI status
- New version - 0.11
Thanks to all our contributors.
Vratislav Podzimek, 2017-06-14

BIN
libbytesize-2.8.tar.gz (Stored with Git LFS)

Binary file not shown.

3
libbytesize-2.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd0ea11ece2c2423382a7c4534679050e72a8ee91b4fdea3a7cc85199846d0c3
size 458737

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 30 19:40:43 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>
- Update to version 2.9:
* This release contains fixes for some small issues.
* Updated translations.
-------------------------------------------------------------------
Sat May 6 21:46:55 UTC 2023 - Luciano Santos <luc14n0@opensuse.org>

View File

@ -16,16 +16,17 @@
#
%define somajor 1
%define libname %{name}%{somajor}
%define soversion 1
Name: libbytesize
Version: 2.8
Version: 2.9
Release: 0
Summary: A library for working with sizes in bytes
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: https://github.com/storaged-project/libbytesize
Source: https://github.com/storaged-project/libbytesize/releases/download/%{version}/%{name}-%{version}.tar.gz
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1: %{url}/raw/%{version}/NEWS.rst
BuildRequires: gcc
BuildRequires: gmp-devel
@ -41,33 +42,30 @@ bytes, be it parsing the input from users or producing a human-readable
representation of a size in bytes. This library takes localization into
account. It also provides support for sizes bigger than MAXUINT64.
%package -n %{libname}
%package -n libbytesize%{soversion}
Summary: A library for working with sizes in bytes
Group: System/Libraries
Provides: %{name} = %{version}
%description -n %{libname}
%description -n libbytesize%{soversion}
The LibBytesize is a C library that facilitates work with sizes in
bytes, be it parsing the input from users or producing a human-readable
representation of a size in bytes. This library takes localization into
account. It also provides support for sizes bigger than MAXUINT64.
%package -n bscalc
Summary: A utility for working with sizes in bytes
Summary: A libbytesize tool
Group: System/Libraries
Requires: %{libname} = %{version}
Requires: libbytesize%{soversion} = %{version}
BuildArch: noarch
%description -n bscalc
The LibBytesize is a C library that facilitates work with sizes in
bytes, be it parsing the input from users or producing a human-readable
representation of a size in bytes. This library takes localization into
account. It also provides support for sizes bigger than MAXUINT64.
This package solely contains the bscalc tool.
%package devel
Summary: Development files for LibBytesize
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Requires: libbytesize%{soversion} = %{version}
%description devel
This package contains header files and pkg-config files needed for development
@ -76,7 +74,7 @@ with the LibBytesize library.
%package -n python3-%{name}
Summary: Python 3 bindings for LibBytesize
Group: Development/Libraries/Python
Requires: %{libname} = %{version}
Requires: libbytesize%{soversion} = %{version}
Requires: python3-six
%description -n python3-%{name}
@ -86,7 +84,9 @@ the library from Python 3 easier and more convenient.
%lang_package
%prep
%autosetup
%autosetup -p1
# Place NEWS.rst in the source tree for %%doc'ing it later.
install -m 644 -t . %{SOURCE1}
%build
%configure \
@ -100,16 +100,16 @@ the library from Python 3 easier and more convenient.
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%post -n libbytesize%{soversion} -p /sbin/ldconfig
%postun -n libbytesize%{soversion} -p /sbin/ldconfig
%files -n bscalc
%license LICENSE
%doc README.md
%doc NEWS.rst README.md
%{_bindir}/bscalc
%{_mandir}/man1/bscalc.1*
%files -n %{libname}
%files -n libbytesize%{soversion}
%{_libdir}/%{name}.so.*
%files devel