diff --git a/RHash-1.3.8.tar.gz b/RHash-1.3.8.tar.gz new file mode 100644 index 0000000..c6062a4 --- /dev/null +++ b/RHash-1.3.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be536a56acfefc87dbc8b1db30fc639020e41edf05518185ea98630e3df7c04c +size 393544 diff --git a/rhash-1.3.0-shared.patch b/rhash-1.3.0-shared.patch deleted file mode 100644 index 43aafa7..0000000 --- a/rhash-1.3.0-shared.patch +++ /dev/null @@ -1,36 +0,0 @@ -Description: Install development files with shared library. -Author: Kyrill Detinov -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) diff --git a/rhash-1.3.5-src.tar.gz b/rhash-1.3.5-src.tar.gz deleted file mode 100644 index e10a9a6..0000000 --- a/rhash-1.3.5-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e -size 316867 diff --git a/rhash.changes b/rhash.changes index 297467b..5267620 100644 --- a/rhash.changes +++ b/rhash.changes @@ -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==' 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 diff --git a/rhash.spec b/rhash.spec index 8c412b2..1c4c74e 100644 --- a/rhash.spec +++ b/rhash.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -18,15 +18,13 @@ %define major 0 Name: rhash -Version: 1.3.5 +Version: 1.3.8 Release: 0 Summary: Recursive Hasher License: MIT Group: Productivity/File utilities -Url: http://rhash.anz.ru/?l=en -Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.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 +URL: https://github.com/rhash/RHash +Source0: RHash-%{version}.tar.gz Recommends: %{name}-lang %description @@ -78,25 +76,25 @@ This package includes LibRHash development files. %prep %setup -q -n RHash-%{version} -%patch0 -p1 %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. -make \ - ADDCFLAGS="-DUSE_GETTEXT -rdynamic" \ - OPTFLAGS="%{optflags}" \ - OPTLDFLAGS="" \ - lib-shared all +make ADDCFLAGS="-rdynamic" OPTLDFLAGS="" %install -%make_install \ - PREFIX=%{_prefix} \ - LIBDIR=%{_libdir} \ - OPTFLAGS="%{optflags}" \ - OPTLDFLAGS="" \ - install-lib-shared \ - install-gmo +%make_install install-lib-so-link install-lib-headers install-gmo %find_lang %{name} %{?no_lang_C} %check @@ -111,10 +109,12 @@ make \ %postun -n librhash%{major} -p /sbin/ldconfig %files -%doc ChangeLog COPYING README +%license COPYING +%doc ChangeLog README.md %config(noreplace) %{_sysconfdir}/rhashrc -%{_sysconfdir}/rhashrc %{_bindir}/ed2k-link +%{_bindir}/edonr256-hash +%{_bindir}/edonr512-hash %{_bindir}/gost-hash %{_bindir}/has160-hash %{_bindir}/magnet-link @@ -123,21 +123,24 @@ make \ %{_bindir}/tiger-hash %{_bindir}/tth-hash %{_bindir}/whirlpool-hash -%{_mandir}/man1/ed2k-link.1%{ext_man} -%{_mandir}/man1/gost-hash.1%{ext_man} -%{_mandir}/man1/has160-hash.1%{ext_man} -%{_mandir}/man1/magnet-link.1%{ext_man} -%{_mandir}/man1/rhash.1%{ext_man} -%{_mandir}/man1/sfv-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} +%{_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/has160-hash.1%{?ext_man} +%{_mandir}/man1/magnet-link.1%{?ext_man} +%{_mandir}/man1/rhash.1%{?ext_man} +%{_mandir}/man1/sfv-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} %{_libdir}/librhash.so.%{major}* %files devel -%doc ChangeLog COPYING README +%license COPYING +%doc ChangeLog README.md %{_includedir}/rhash.h %{_includedir}/rhash_torrent.h %{_libdir}/librhash.so