Compare commits
10 Commits
6bec2350cd
...
3d03a3dab8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d03a3dab8 | ||
|
|
c1d821ed95 | ||
|
|
f8bf3c3c49 | ||
|
|
dc75710e62 | ||
|
|
645ee5be94 | ||
|
|
0574031d1a | ||
|
|
4ebcf2b961 | ||
|
|
8ef7d7eccf | ||
|
|
c51f00db21 | ||
|
|
391585837a |
43
fix-mtime-when-file-list-is-specified.patch
Normal file
43
fix-mtime-when-file-list-is-specified.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From 0eba12257e417c321ef50b48f2ce7081fdd278e3 Mon Sep 17 00:00:00 2001
|
||||
From: Aleksey <rhash.admin@gmail.com>
|
||||
Date: Sun, 22 Nov 2020 19:16:46 +0300
|
||||
Subject: [PATCH] fix '%{mtime}' when --file-list is specified
|
||||
|
||||
---
|
||||
ChangeLog | 9 +++++++++
|
||||
file.c | 2 +-
|
||||
2 files changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index 090a290..5ccfa5e 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -1,3 +1,12 @@
|
||||
+Sun 22 Nov 2020 Aleksey
|
||||
+ * Bugfix: print correct '%{mtime}' when --file-list is specified
|
||||
+
|
||||
+Sat 29 Aug 2020 Theodore Ts'o
|
||||
+ * Bugfix: only follow symbolic links when --follow is specified
|
||||
+
|
||||
+Wed 22 Jul 2020 Aleksey
|
||||
+ * Bugfix: fix buffer overflow in GOST12
|
||||
+
|
||||
Tue 14 Jul 2020 Aleksey
|
||||
* === Version 1.4.0 ===
|
||||
|
||||
diff --git a/file.c b/file.c
|
||||
index 7c8b346..43821d2 100644
|
||||
--- a/file.c
|
||||
+++ b/file.c
|
||||
@@ -884,7 +884,7 @@ int file_list_read(file_list_t* list)
|
||||
if (*line == '\0')
|
||||
continue; /* skip empty lines */
|
||||
file_init_by_print_path(&list->current_file, NULL, line,
|
||||
- (list->state & FileInitUtf8PrintPath));
|
||||
+ (list->state & FileInitUtf8PrintPath) | FileInitRunFstat);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
--
|
||||
2.42.0.windows.2
|
||||
|
||||
25
fix-reading-a-file-list-from-stdin.patch
Normal file
25
fix-reading-a-file-list-from-stdin.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From d10d941db89d919f3963f8dc9c0113b3d0e40854 Mon Sep 17 00:00:00 2001
|
||||
From: Aleksey <rhash.admin@gmail.com>
|
||||
Date: Fri, 17 Jul 2020 07:06:33 +0300
|
||||
Subject: [PATCH] fix reading a file-list from stdin
|
||||
|
||||
---
|
||||
find_file.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/find_file.c b/find_file.c
|
||||
index 00c7c9a..927a8a8 100644
|
||||
--- a/find_file.c
|
||||
+++ b/find_file.c
|
||||
@@ -80,7 +80,7 @@ void file_search_add_file(file_search_data* data, tstr_t path, unsigned file_mod
|
||||
}
|
||||
if (IS_DASH_TSTR(path))
|
||||
{
|
||||
- file_search_add_special_file(data, (FileIsRoot | FileIsStdin), NULL);
|
||||
+ file_search_add_special_file(data, (file_mode | FileIsStdin), NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
--
|
||||
2.27.0
|
||||
|
||||
BIN
rhash-1.4.0.tar.gz
Normal file
BIN
rhash-1.4.0.tar.gz
Normal file
Binary file not shown.
85
rhash.spec
Normal file
85
rhash.spec
Normal file
@ -0,0 +1,85 @@
|
||||
Name: rhash
|
||||
Version: 1.4.0
|
||||
Release: 4
|
||||
Summary: Great utility for computing hash sums
|
||||
License: MIT
|
||||
URL: https://github.com/rhash/RHash
|
||||
Source0: https://github.com/rhash/RHash/archive/v%{version}/rhash-%{version}.tar.gz
|
||||
Patch0: fix-reading-a-file-list-from-stdin.patch
|
||||
Patch1: fix-mtime-when-file-list-is-specified.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
|
||||
%description
|
||||
RHash is designed to calculate and verificate magnet links and hash sums.
|
||||
It supports a wide range of hash sums such as CRC32, MD4, MD5, SHA1, SHA256,
|
||||
SHA512, SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94,
|
||||
RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. The features include processing
|
||||
directories recursively, independent to platform and output in a user-defined format.
|
||||
This package also provides a professional, portable, thread-safe C library. It's
|
||||
small and easy to learn.
|
||||
|
||||
%package devel
|
||||
Summary: Headers for rhash
|
||||
Requires: rhash = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains header files for developing applications with rhash APIs.
|
||||
|
||||
%package help
|
||||
Summary: Documentation for rhash
|
||||
%description help
|
||||
Documentation for rhash
|
||||
|
||||
%prep
|
||||
%autosetup -n RHash-%{version}
|
||||
sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile
|
||||
|
||||
%build
|
||||
./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --sysconfdir=%{_sysconfdir} --libdir=%{_libdir} --mandir=%{_mandir} --enable-lib-shared --enable-gettext
|
||||
%make_build OPTFLAGS="%{optflags}" OPTLDFLAGS="-g %{?__global_ldflags}" build-shared
|
||||
|
||||
%install
|
||||
%make_install
|
||||
make DESTDIR=%{buildroot} -C librhash install-so-link install-lib-headers
|
||||
|
||||
%check
|
||||
make test-shared
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%config(noreplace) %{_sysconfdir}/rhashrc
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files help
|
||||
%doc ChangeLog README.md
|
||||
%{_mandir}/man1/*.1*
|
||||
|
||||
%changelog
|
||||
* Wed Dec 27 2023 fandehui <fandehui@xfusion.com> - 1.4.0-4
|
||||
- fix '%{mtime}' when --file-list is specified
|
||||
|
||||
* Fri Nov 24 2023 fandehui <fandehui@xfusion.com> - 1.4.0-3
|
||||
- fix reading a file-list from stdin
|
||||
|
||||
* Thu Apr 8 2021 shenyangyang <shenyangyang4@huawei.com> - 1.4.0-2
|
||||
- Delete unneeded build requires
|
||||
|
||||
* Wed Aug 19 2020 shixuantong <shixuantong@huawei.com> - 1.4.0-1
|
||||
- Upgrade to 1.4.0
|
||||
|
||||
* Sat Dec 4 2019 lihao <lihao129@huawei.com> - 1.3.5-5
|
||||
- Bump release for updating binary package in OBS
|
||||
|
||||
* Sat Nov 30 2019 lihao <lihao129@huawei.com> - 1.3.5-4
|
||||
- Package Init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user