forked from pool/rhash
Accepting request 678256 from home:dliw:branches:network:utilities
Update to version 1.3.8 OBS-URL: https://build.opensuse.org/request/show/678256 OBS-URL: https://build.opensuse.org/package/show/network:utilities/rhash?expand=0&rev=9
This commit is contained in:
parent
bf04ccdfe9
commit
76bf01f237
3
RHash-1.3.8.tar.gz
Normal file
3
RHash-1.3.8.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:be536a56acfefc87dbc8b1db30fc639020e41edf05518185ea98630e3df7c04c
|
||||||
|
size 393544
|
@ -1,36 +0,0 @@
|
|||||||
Description: Install development files with shared library.
|
|
||||||
Author: Kyrill Detinov <lazy.kent@opensuse.org>
|
|
||||||
Index: RHash-1.3.5/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- RHash-1.3.5.orig/Makefile
|
|
||||||
+++ RHash-1.3.5/Makefile
|
|
||||||
@@ -174,7 +174,7 @@ check: version.h
|
|
||||||
echo "version=$(VERSION)" > bindings/version.properties
|
|
||||||
[ -s dist/rhash.1.html ]
|
|
||||||
|
|
||||||
-$(TARGET): $(OBJECTS) $(LIBRHASH)
|
|
||||||
+$(TARGET): $(OBJECTS)
|
|
||||||
$(CC) $(OBJECTS) -o $@ $(ALLLDFLAGS)
|
|
||||||
|
|
||||||
$(SHARED_TRG): $(OBJECTS) $(SHAREDLIB)
|
|
||||||
Index: RHash-1.3.5/librhash/Makefile
|
|
||||||
===================================================================
|
|
||||||
--- RHash-1.3.5.orig/librhash/Makefile
|
|
||||||
+++ RHash-1.3.5/librhash/Makefile
|
|
||||||
@@ -49,13 +49,14 @@ dylib: $(DYNAME)
|
|
||||||
dll: $(DLLNAME)
|
|
||||||
dist-clean: clean
|
|
||||||
|
|
||||||
-install-lib-static: $(LIBRARY) install-headers
|
|
||||||
+install-lib-static: $(LIBRARY)
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
|
||||||
$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBDIR)/
|
|
||||||
|
|
||||||
-install-lib-shared: $(SONAME)
|
|
||||||
+install-lib-shared: $(SONAME) install-headers
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
|
||||||
$(INSTALL_SHARED) $(SONAME) $(DESTDIR)$(LIBDIR)/
|
|
||||||
+ cp -d $(SOLINK) $(DESTDIR)$(LIBDIR)/
|
|
||||||
|
|
||||||
install-so-link:
|
|
||||||
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e
|
|
||||||
size 316867
|
|
@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 22 11:57:32 UTC 2019 - dliw@posteo.net
|
||||||
|
|
||||||
|
- Update to version 1.3.8
|
||||||
|
Version 1.3.8
|
||||||
|
* rename Windows encoding options: --ansi to --win, --oem to --dos
|
||||||
|
* support GOST R 34.11-2012 hash function (options: --gost12-256, --gost12-512)
|
||||||
|
* changed the short option `-G' to be alias of --gost12-256
|
||||||
|
* changed printf format token `%g' to be alias of %{gost12-256}
|
||||||
|
|
||||||
|
Version 1.3.7
|
||||||
|
* option `--message==<string>' to calculate a hash for string
|
||||||
|
* option `--crc32c' for CRC32C hash function
|
||||||
|
* changed magnet link short option from '-m' to '-g'
|
||||||
|
* Bugfix: `--file-list=-' shall read a file list from stdin
|
||||||
|
* speedup CRC32 hash function
|
||||||
|
|
||||||
|
Version 1.3.6
|
||||||
|
* support --file-list option
|
||||||
|
* librhash: speedup sha3
|
||||||
|
* Bugfix: fix --follow option
|
||||||
|
* better MSYS and CygWin support
|
||||||
|
* configuration script
|
||||||
|
* Bugfix: broken binary hash output
|
||||||
|
- Remove rhash-1.3.0-shared.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 16 14:09:59 UTC 2017 - mpluskal@suse.com
|
Wed Aug 16 14:09:59 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
67
rhash.spec
67
rhash.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package rhash
|
# spec file for package rhash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,15 +18,13 @@
|
|||||||
|
|
||||||
%define major 0
|
%define major 0
|
||||||
Name: rhash
|
Name: rhash
|
||||||
Version: 1.3.5
|
Version: 1.3.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Recursive Hasher
|
Summary: Recursive Hasher
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Productivity/File utilities
|
Group: Productivity/File utilities
|
||||||
Url: http://rhash.anz.ru/?l=en
|
URL: https://github.com/rhash/RHash
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.gz
|
Source0: RHash-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE rhash-1.3.0-shared.patch lazy.kent@opensuse.org -- install development files with shared library
|
|
||||||
Patch0: rhash-1.3.0-shared.patch
|
|
||||||
Recommends: %{name}-lang
|
Recommends: %{name}-lang
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,25 +76,25 @@ This package includes LibRHash development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n RHash-%{version}
|
%setup -q -n RHash-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Don't run parallel make %{?_smp_mflags} — it doesn't work.
|
export CFLAGS="%{optflags}"
|
||||||
|
export CXXFLAGS="%{optflags}"
|
||||||
|
%{_configure} --prefix=%{_prefix} \
|
||||||
|
--exec-prefix=%{_prefix} \
|
||||||
|
--bindir=%{_bindir} \
|
||||||
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--enable-lib-shared \
|
||||||
|
--enable-gettext
|
||||||
|
|
||||||
|
# Parallel make_build fails on older versions
|
||||||
# Use OPTLDFLAGS="" not to strip binaries.
|
# Use OPTLDFLAGS="" not to strip binaries.
|
||||||
make \
|
make ADDCFLAGS="-rdynamic" OPTLDFLAGS=""
|
||||||
ADDCFLAGS="-DUSE_GETTEXT -rdynamic" \
|
|
||||||
OPTFLAGS="%{optflags}" \
|
|
||||||
OPTLDFLAGS="" \
|
|
||||||
lib-shared all
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install \
|
%make_install install-lib-so-link install-lib-headers install-gmo
|
||||||
PREFIX=%{_prefix} \
|
|
||||||
LIBDIR=%{_libdir} \
|
|
||||||
OPTFLAGS="%{optflags}" \
|
|
||||||
OPTLDFLAGS="" \
|
|
||||||
install-lib-shared \
|
|
||||||
install-gmo
|
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -111,10 +109,12 @@ make \
|
|||||||
%postun -n librhash%{major} -p /sbin/ldconfig
|
%postun -n librhash%{major} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ChangeLog COPYING README
|
%license COPYING
|
||||||
|
%doc ChangeLog README.md
|
||||||
%config(noreplace) %{_sysconfdir}/rhashrc
|
%config(noreplace) %{_sysconfdir}/rhashrc
|
||||||
%{_sysconfdir}/rhashrc
|
|
||||||
%{_bindir}/ed2k-link
|
%{_bindir}/ed2k-link
|
||||||
|
%{_bindir}/edonr256-hash
|
||||||
|
%{_bindir}/edonr512-hash
|
||||||
%{_bindir}/gost-hash
|
%{_bindir}/gost-hash
|
||||||
%{_bindir}/has160-hash
|
%{_bindir}/has160-hash
|
||||||
%{_bindir}/magnet-link
|
%{_bindir}/magnet-link
|
||||||
@ -123,21 +123,24 @@ make \
|
|||||||
%{_bindir}/tiger-hash
|
%{_bindir}/tiger-hash
|
||||||
%{_bindir}/tth-hash
|
%{_bindir}/tth-hash
|
||||||
%{_bindir}/whirlpool-hash
|
%{_bindir}/whirlpool-hash
|
||||||
%{_mandir}/man1/ed2k-link.1%{ext_man}
|
%{_mandir}/man1/ed2k-link.1%{?ext_man}
|
||||||
%{_mandir}/man1/gost-hash.1%{ext_man}
|
%{_mandir}/man1/edonr256-hash.1%{?ext_man}
|
||||||
%{_mandir}/man1/has160-hash.1%{ext_man}
|
%{_mandir}/man1/edonr512-hash.1%{?ext_man}
|
||||||
%{_mandir}/man1/magnet-link.1%{ext_man}
|
%{_mandir}/man1/gost-hash.1%{?ext_man}
|
||||||
%{_mandir}/man1/rhash.1%{ext_man}
|
%{_mandir}/man1/has160-hash.1%{?ext_man}
|
||||||
%{_mandir}/man1/sfv-hash.1%{ext_man}
|
%{_mandir}/man1/magnet-link.1%{?ext_man}
|
||||||
%{_mandir}/man1/tiger-hash.1%{ext_man}
|
%{_mandir}/man1/rhash.1%{?ext_man}
|
||||||
%{_mandir}/man1/tth-hash.1%{ext_man}
|
%{_mandir}/man1/sfv-hash.1%{?ext_man}
|
||||||
%{_mandir}/man1/whirlpool-hash.1%{ext_man}
|
%{_mandir}/man1/tiger-hash.1%{?ext_man}
|
||||||
|
%{_mandir}/man1/tth-hash.1%{?ext_man}
|
||||||
|
%{_mandir}/man1/whirlpool-hash.1%{?ext_man}
|
||||||
|
|
||||||
%files -n librhash%{major}
|
%files -n librhash%{major}
|
||||||
%{_libdir}/librhash.so.%{major}*
|
%{_libdir}/librhash.so.%{major}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc ChangeLog COPYING README
|
%license COPYING
|
||||||
|
%doc ChangeLog README.md
|
||||||
%{_includedir}/rhash.h
|
%{_includedir}/rhash.h
|
||||||
%{_includedir}/rhash_torrent.h
|
%{_includedir}/rhash_torrent.h
|
||||||
%{_libdir}/librhash.so
|
%{_libdir}/librhash.so
|
||||||
|
Loading…
Reference in New Issue
Block a user