Name: rhash Version: 1.3.4 Release: 2%{?dist} Summary: Great utility for computing hash sums Group: System Environment/Libraries License: MIT URL: https://github.com/rhash/RHash Source0: https://github.com/rhash/RHash/archive/v%{version}/%{name}-%{version}.tar.gz %description RHash is a console utility for calculation and verification of magnet links and a wide range of hash sums like 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. Hash sums are used to ensure and verify integrity of large volumes of data for a long-term storing or transferring. Features: * Output in a predefined (SFV, BSD-like) or a user-defined format. * Can calculate Magnet links. * Updating hash files (adding hash sums of files missing in the hash file). * Calculates several hash sums in one pass * Ability to process directories recursively. * Portability: the program works the same on Linux, *BSD or Windows. %package devel Summary: Development files for lib%{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %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, SHA3, 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. Features: * Small and easy to learn interface. * Hi-level and Low-level API. * Allows calculating of several hash functions simultaneously. * Portability: the library works on Linux, *BSD and Windows. The %{name}-devel package contains libraries and header files for developing applications that use lib%{name}. %prep %setup -q -n RHash-%{version} sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile %build %make_build OPTFLAGS="%{optflags}" OPTLDFLAGS="-g %{__global_ldflags}" build-shared %install make DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir} install-shared install-lib-shared make DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir} -C librhash install-so-link install-headers %check make test-shared %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING %doc README %config(noreplace) %{_sysconfdir}/rhashrc %{_bindir}/* %{_libdir}/*.so.* %{_mandir}/man1/*.1* %files devel %license COPYING %{_includedir}/* %{_libdir}/*.so %changelog * Mon Mar 20 2017 Orion Poplawski - 1.3.4-2 - Add %%check section * Thu Mar 9 2017 Orion Poplawski - 1.3.4-1 - Initial Fedora package