From b6a405bca5be0169c5c0b60dbf36b794557f216c8a8371ccc7e7f6400f4416c0 Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Sat, 3 Jun 2017 00:50:11 +0000 Subject: [PATCH] Accepting request 500760 from home:pluskalm:branches:network:utilities moving package to more suitable devel project, please add me as maintainer OBS-URL: https://build.opensuse.org/request/show/500760 OBS-URL: https://build.opensuse.org/package/show/network:utilities/rhash?expand=0&rev=1 --- .gitattributes | 23 ++++++ .gitignore | 1 + baselibs.conf | 1 + rhash-1.3.0-shared.patch | 36 +++++++++ rhash-1.3.4-src.tar.gz | 3 + rhash.changes | 161 +++++++++++++++++++++++++++++++++++++++ rhash.spec | 137 +++++++++++++++++++++++++++++++++ 7 files changed, 362 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 rhash-1.3.0-shared.patch create mode 100644 rhash-1.3.4-src.tar.gz create mode 100644 rhash.changes create mode 100644 rhash.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..aad946f --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +librhash0 diff --git a/rhash-1.3.0-shared.patch b/rhash-1.3.0-shared.patch new file mode 100644 index 0000000..76b38c7 --- /dev/null +++ b/rhash-1.3.0-shared.patch @@ -0,0 +1,36 @@ +Description: Install development files with shared library. +Author: Kyrill Detinov +Index: rhash-1.3.4/Makefile +=================================================================== +--- rhash-1.3.4.orig/Makefile ++++ rhash-1.3.4/Makefile +@@ -164,7 +164,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.4/librhash/Makefile +=================================================================== +--- rhash-1.3.4.orig/librhash/Makefile ++++ rhash-1.3.4/librhash/Makefile +@@ -43,13 +43,14 @@ lib-shared: $(SONAME) + libs-all: lib-static lib-shared + 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.4-src.tar.gz b/rhash-1.3.4-src.tar.gz new file mode 100644 index 0000000..8c320ef --- /dev/null +++ b/rhash-1.3.4-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:406662c4703bd4cb1caae26f32700951a5e12adf39f141d3f40e0b461b1e9e49 +size 249357 diff --git a/rhash.changes b/rhash.changes new file mode 100644 index 0000000..6cf1b8f --- /dev/null +++ b/rhash.changes @@ -0,0 +1,161 @@ +------------------------------------------------------------------- +Fri Jun 2 07:01:53 UTC 2017 - mpluskal@suse.com + +- Update to version 1.3.4: + * Compilation fixes for FreeBSD + * return non zero exit code if a file was not found +- Refresh rhash-1.3.0-shared.patch + +------------------------------------------------------------------- +Tue Aug 5 14:38:40 UTC 2014 - lazy.kent@opensuse.org + +- Update to 1.3.3. + * Ctrl-C now interrupts benchmarking. + * Set a boolean in config to true by a string `true', `on' or + `yes'. + * Changed the `-p' format names of sha* families, see manpage. + * Fixed test_rhash.sh script failing on the en_US.UTF-8 locale. + * LibRHash now exports torrent functions. + * Support torrents with more than one announce url. + * Update the SHA3 algorithm to follow the changes of the FIPS 202 + draft. + * Option --exclude for skipping some files during recursive + scanning. + * librhash: small optimization of Whirlpool. + +------------------------------------------------------------------- +Sat Jul 5 17:43:14 UTC 2014 - lazy.kent@opensuse.org + +- Update to 1.3.2. + * BTIH piece length calculation updated to follow the uTorrent + algorithm change. + * Option --follow for following symlinks to directories. + * Ignore non-regular files while scanning directories + recursively. + * Report warnings on files locked by some processes. + +------------------------------------------------------------------- +Fri Jan 10 11:22:52 UTC 2014 - lazy.kent@opensuse.org + +- Update to 1.3.1. + Bugfix: corrected sha3-224 for big-endian processors. + * Fixed 'value too large' error on 32-bit Linux. + * Improved directory scanning. + * Exclude the files specified by -o and -l from processing. +- Drop rhash-remove-assert.patch (fixed upstream). +- Rename librhash-devel package to rhash-devel. + +------------------------------------------------------------------- +Sun Oct 27 10:21:09 UTC 2013 - lazy.kent@opensuse.org + +- Add rhash-remove-assert.patch: remove wrong assertion statement + (https://sourceforge.net/p/rhash/bugs/43/). + +------------------------------------------------------------------- +Wed Sep 18 07:09:59 UTC 2013 - lazy.kent@opensuse.org + +- Update to 1.3.0. + * Bugfixes: + + %{mtime} formating option was broken. + + Fixed memory leaks. + + Fixed output of percents when two or more files are hashed. + * Supported SHA3 (Keccak) hash function. + * Updated translations: de, es, gl, it. + * Add baselibs.conf as a source. + * Refresh rhash-shared.patch. + +------------------------------------------------------------------- +Mon Dec 24 21:08:05 UTC 2012 - lazy.kent@opensuse.org + +- Update to 1.2.10. + * Bugfixes: + + Different BTIH were generated for the same file. + + Path issue with verification of hash files. + + Non-zero exit code if some files were not found. + + Incorrect GOST hash for ("\FF" x 64) on non-x86 CPU. + * Improved Ctrl-C processing. + * Shortcut -k for --check-embedded. + * Update rhash-*-shared.patch. + +------------------------------------------------------------------- +Fri Apr 13 19:19:53 UTC 2012 - lazy.kent@opensuse.org + +- Update to 1.2.9. + * Option --bt-batch for batch torrents. +- Updated "shared" patch. +- Splitted off language package. + +------------------------------------------------------------------- +Mon Sep 19 12:39:52 UTC 2011 - lazy.kent@opensuse.org + +- Update to 1.2.8. + * Fix bugs (sf#3391587). +- Dropped obsolete patches (fixed upstream). +- Build shared library. +- Build rhash against shared library (added patch). + +------------------------------------------------------------------- +Tue Sep 6 13:16:54 UTC 2011 - lazy.kent@opensuse.org + +- Build shared library. + +------------------------------------------------------------------- +Sat Aug 20 12:36:43 UTC 2011 - lazy.kent@opensuse.org + +- Added fix_crash and memfix patches (sf#3391587). + +------------------------------------------------------------------- +Sun Aug 14 16:05:36 UTC 2011 - lazy.kent@opensuse.org + +- Update to 1.2.7. + * Supported verification of sha256, sha512 and other hash sum. + * Bugfix: percents option was broken in v1.2.6. + +------------------------------------------------------------------- +Wed Jun 15 20:15:09 UTC 2011 - lazy.kent@opensuse.org + +- Update to 1.2.6. + * Bugfix: --output failed for cyrillic file name. +- Updated description. +- Updated make options. + +------------------------------------------------------------------- +Sat May 28 01:02:32 UTC 2011 - lazy.kent@opensuse.org + +- Update to 1.2.5. + * Option --openssl allows to replace some algorithms + by the OpenSSL ones. + * Bugfix: incorrect recursive traversing of very long UTF-8 + filepaths. + * Bugfix: corrected calculation of BTIH hash and torrent files. +- Build requires libopenssl-devel. +- Use full URL for source. + +------------------------------------------------------------------- +Fri Apr 15 08:24:59 UTC 2011 - lazy.kent@opensuse.org + +- Update to 1.2.4. + * Option --benchmark-raw for machine-readable benchmark output + format. + * On Intel/AMD CPUs benchmark now prints the clocks-per-byte + value. + * Bugfix: repaired --path-separator on linux/unix. + +------------------------------------------------------------------- +Mon Apr 4 09:15:27 UTC 2011 - lazy.kent@opensuse.org + +- Update to 1.2.3. + * One-line percent for linux/unix. + * Bugfix: verification of base2-like formated md5 hash sums. + +------------------------------------------------------------------- +Sun Jan 23 09:15:29 UTC 2011 - lazy.kent@opensuse.org + +- update to 1.2.2. + * Bugfix: --accept/--crc-accept were not working since 1.1.9. + +------------------------------------------------------------------- +Wed Nov 24 14:03:56 UTC 2010 - lazy.kent.suse@gmail.com + +- Initial package created - 1.2.0. + diff --git a/rhash.spec b/rhash.spec new file mode 100644 index 0000000..9c39f3f --- /dev/null +++ b/rhash.spec @@ -0,0 +1,137 @@ +# +# spec file for package rhash +# +# Copyright (c) 2017 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define major 0 +Name: rhash +Version: 1.3.4 +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 +Source1: baselibs.conf +# 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 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libcrypto) +Recommends: %{name}-lang + +%description +RHash (Recurcive Hasher) is a console utility for computing and +verifying magnet links and hash sums of files. +It supports CRC32, MD4, MD5, SHA1/SHA2, Tiger, DC++ TTH, BitTorrent +BTIH, AICH, eDonkey hash, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, +Whirlpool and Snefru hash algorithms. Hash sums are used to ensure and +verify integrity of large volumes of data for a long-term storing or +transferring. + +Program features: + * Calculation of Magnet links and EDonkey 2000 links. + * Output in a predefined (SFV, BSD-like) or a user-defined format. + * Updating crc files (adding hash sums of files missing in the crc + file). + * Ability to process directories recursively. + +%package -n librhash%{major} +Summary: LibRHash Shared Library +Group: System/Libraries + +%description -n librhash%{major} +LibRHash is a professional, portable, thread-safe C library for +computing a wide variety of hash sums, such as CRC32, MD4, MD5, SHA1, +SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R +34.11-94, RIPEMD-160 HAS-160, EDON-R, Whirlpool and Snefru. +Hash sums are used to ensure and verify integrity of large volumes of +data for a long-term storing or transferring. + +%package devel +Summary: Headers and Static Library for LibRHash +Group: Development/Libraries/C and C++ +Requires: librhash%{major} = %{version} +Provides: librhash-devel = %{version} +Obsoletes: librhash-devel < 1.3.1 + +%description devel +LibRHash is a professional, portable, thread-safe C library for +computing a wide variety of hash sums, such as CRC32, MD4, MD5, SHA1, +SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R +34.11-94, RIPEMD-160 HAS-160, EDON-R, Whirlpool and Snefru. +Hash sums are used to ensure and verify integrity of large volumes of +data for a long-term storing or transferring. + +This package includes LibRHash development files. + +%lang_package + +%prep +%setup -q +%patch0 -p1 + +%build +# Don't run parallel make — it doesn't work. +# Use OPTLDFLAGS="" not to strip binaries. +make \ + ADDCFLAGS="-DUSE_GETTEXT -DUSE_OPENSSL -DOPENSSL_RUNTIME -rdynamic" \ + ADDLDFLAGS="-ldl" \ + OPTFLAGS="%{optflags}" \ + OPTLDFLAGS="" \ + lib-shared all + +%install +%make_install \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + OPTFLAGS="%{optflags}" \ + OPTLDFLAGS="" \ + install-lib-shared \ + install-gmo +%find_lang %{name} %{?no_lang_C} + +%check +make \ + OPTFLAGS="%{optflags}" \ + ADDCFLAGS="-DUSE_OPENSSL -DOPENSSL_RUNTIME -rdynamic" \ + ADDLDFLAGS="-ldl" \ + LD_LIBRARY_PATH="../librhash" \ + test + +%post -n librhash%{major} -p /sbin/ldconfig +%postun -n librhash%{major} -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING README dist/rhash.1.html +%{_bindir}/* +%{_mandir}/man?/* +%config(noreplace) %{_sysconfdir}/rhashrc + +%files -n librhash%{major} +%defattr(-,root,root,-) +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%doc ChangeLog COPYING README +%{_includedir}/rhash* +%{_libdir}/*.so + +%files lang -f %{name}.lang +%defattr(-,root,root) + +%changelog