Accepting request 770003 from network:utilities

- Update to version 1.3.9:
  * change project license to BSD Zero Clause License
  * add uk translations
  * new printf-format modifier '%u' to print url-encoded filename, path or hash
  * Bugfix: btih in magnet links shall be hex-encoded
  * correctly align UTF8 file paths, while printing verification results
  * respect UTF8 BOM when updating or verifying a hash file
  * print a new-line after ed2k link, when --ed2k-link option is passed
  * exit on output errors with exit_code = 2
  * change option --update=<file> to update the specified file
  * make short option '-P' to be an alias for --percents
  * change %{mtime} format to 'YYYY-MM-DD hh:mm:ss'
  * Bugfix: --sysconfdir was ignored while searching for config on Linux
  * support verification of base64-formated hash sums
  * add formatting options: --hex, --base32, -b/--base64
  * Bugfix: properly handle symlinks on the command line
- Fix localisation building by rhash-uk.patch

OBS-URL: https://build.opensuse.org/request/show/770003
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rhash?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2020-02-07 14:52:20 +00:00 committed by Git OBS Bridge
commit cb264611aa
5 changed files with 56 additions and 10 deletions

View File

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

3
rhash-1.3.9.tar.gz Normal file
View File

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

22
rhash-uk.patch Normal file
View File

@ -0,0 +1,22 @@
From a165520d3f63e976dd3b842c2fbb05f05f1029a8 Mon Sep 17 00:00:00 2001
From: Aleksey <rhash.admin@gmail.com>
Date: Sun, 15 Dec 2019 03:35:09 +0300
Subject: [PATCH] i18n: fix a string in uk.po by adding newline
---
po/uk.po | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/po/uk.po b/po/uk.po
index 959e47a..d6c0b1d 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -234,7 +234,7 @@ msgstr "Перевірити хеш-файли, вказані у командн
#: parse_cmdline.c:91
msgid "Update the specified hash file.\n"
-msgstr "Оновити вказаний хеш-файл"
+msgstr "Оновити вказаний хеш-файл.\n"
#: parse_cmdline.c:92
msgid "Rename files by inserting crc32 sum into name.\n"

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Tue Feb 4 14:47:45 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Update to version 1.3.9:
* change project license to BSD Zero Clause License
* add uk translations
* new printf-format modifier '%u' to print url-encoded filename, path or hash
* Bugfix: btih in magnet links shall be hex-encoded
* correctly align UTF8 file paths, while printing verification results
* respect UTF8 BOM when updating or verifying a hash file
* print a new-line after ed2k link, when --ed2k-link option is passed
* exit on output errors with exit_code = 2
* change option --update=<file> to update the specified file
* make short option '-P' to be an alias for --percents
* change %{mtime} format to 'YYYY-MM-DD hh:mm:ss'
* Bugfix: --sysconfdir was ignored while searching for config on Linux
* support verification of base64-formated hash sums
* add formatting options: --hex, --base32, -b/--base64
* Bugfix: properly handle symlinks on the command line
- Fix localisation building by rhash-uk.patch
-------------------------------------------------------------------
Wed Oct 16 07:51:08 UTC 2019 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package rhash
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,12 +18,13 @@
%define major 0
Name: rhash
Version: 1.3.8
Version: 1.3.9
Release: 0
Summary: Recursive Hasher
License: MIT
License: 0BSD
URL: https://github.com/rhash/RHash
Source0: https://github.com/rhash/RHash/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: rhash-uk.patch
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
@ -73,7 +74,7 @@ This package includes LibRHash development files.
%lang_package
%prep
%setup -q -n RHash-%{version}
%autosetup -n RHash-%{version} -p1
%build
# repleace unwanted fomit-frame pointer with desirable optflags
@ -95,7 +96,7 @@ sed -i "s|-fomit-frame-pointer|%{optflags}|g" configure
%find_lang %{name} %{?no_lang_C}
%check
make %{?_smp_mflags} test
%make_build test
%post -n librhash%{major} -p /sbin/ldconfig
%postun -n librhash%{major} -p /sbin/ldconfig
@ -107,7 +108,8 @@ make %{?_smp_mflags} test
%{_bindir}/ed2k-link
%{_bindir}/edonr256-hash
%{_bindir}/edonr512-hash
%{_bindir}/gost-hash
%{_bindir}/gost12-256-hash
%{_bindir}/gost12-512-hash
%{_bindir}/has160-hash
%{_bindir}/magnet-link
%{_bindir}/rhash
@ -118,7 +120,8 @@ make %{?_smp_mflags} test
%{_mandir}/man1/ed2k-link.1%{?ext_man}
%{_mandir}/man1/edonr256-hash.1%{?ext_man}
%{_mandir}/man1/edonr512-hash.1%{?ext_man}
%{_mandir}/man1/gost-hash.1%{?ext_man}
%{_mandir}/man1/gost12-256-hash.1%{?ext_man}
%{_mandir}/man1/gost12-512-hash.1%{?ext_man}
%{_mandir}/man1/has160-hash.1%{?ext_man}
%{_mandir}/man1/magnet-link.1%{?ext_man}
%{_mandir}/man1/rhash.1%{?ext_man}