2017-06-03 02:50:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package rhash
|
|
|
|
#
|
2019-02-25 08:56:30 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-06-03 02:50:11 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-16 09:54:53 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-03 02:50:11 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define major 0
|
|
|
|
Name: rhash
|
2019-02-25 08:56:30 +01:00
|
|
|
Version: 1.3.8
|
2017-06-03 02:50:11 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Recursive Hasher
|
|
|
|
License: MIT
|
2019-02-25 08:56:30 +01:00
|
|
|
URL: https://github.com/rhash/RHash
|
2019-10-16 09:54:53 +02:00
|
|
|
Source0: https://github.com/rhash/RHash/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%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
|
|
|
|
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
|
2017-08-16 16:17:05 +02:00
|
|
|
%setup -q -n RHash-%{version}
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%build
|
2019-10-16 09:54:53 +02:00
|
|
|
# repleace unwanted fomit-frame pointer with desirable optflags
|
|
|
|
sed -i "s|-fomit-frame-pointer|%{optflags}|g" configure
|
|
|
|
# not a autotools configure
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--exec-prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--sysconfdir=%{_sysconfdir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--enable-lib-shared \
|
|
|
|
--enable-gettext
|
|
|
|
%make_build
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%install
|
2019-02-25 08:56:30 +01:00
|
|
|
%make_install install-lib-so-link install-lib-headers install-gmo
|
2017-06-03 02:50:11 +02:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
|
|
|
|
%check
|
2019-10-16 09:54:53 +02:00
|
|
|
make %{?_smp_mflags} test
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%post -n librhash%{major} -p /sbin/ldconfig
|
|
|
|
%postun -n librhash%{major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2019-02-25 08:56:30 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README.md
|
2017-06-03 02:50:11 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/rhashrc
|
2017-08-16 16:17:05 +02:00
|
|
|
%{_bindir}/ed2k-link
|
2019-02-25 08:56:30 +01:00
|
|
|
%{_bindir}/edonr256-hash
|
|
|
|
%{_bindir}/edonr512-hash
|
2017-08-16 16:17:05 +02:00
|
|
|
%{_bindir}/gost-hash
|
|
|
|
%{_bindir}/has160-hash
|
|
|
|
%{_bindir}/magnet-link
|
|
|
|
%{_bindir}/rhash
|
|
|
|
%{_bindir}/sfv-hash
|
|
|
|
%{_bindir}/tiger-hash
|
|
|
|
%{_bindir}/tth-hash
|
|
|
|
%{_bindir}/whirlpool-hash
|
2019-02-25 08:56:30 +01:00
|
|
|
%{_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}
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%files -n librhash%{major}
|
2017-08-16 16:17:05 +02:00
|
|
|
%{_libdir}/librhash.so.%{major}*
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%files devel
|
2019-02-25 08:56:30 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog README.md
|
2017-08-16 16:17:05 +02:00
|
|
|
%{_includedir}/rhash.h
|
|
|
|
%{_includedir}/rhash_torrent.h
|
|
|
|
%{_libdir}/librhash.so
|
2017-06-03 02:50:11 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|