diff --git a/.gitignore b/.gitignore index e69de29..18bf272 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rhash-1.3.4.tar.gz diff --git a/rhash.spec b/rhash.spec new file mode 100644 index 0000000..dfe2df9 --- /dev/null +++ b/rhash.spec @@ -0,0 +1,95 @@ +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 diff --git a/sources b/sources index e69de29..b567ba2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (rhash-1.3.4.tar.gz) = 1d6af41f98588005ad2dcabdf479a30f7e4e6b59d56b322702827470e6eaa9a6905e9c1424f778b90488f04e719aa3b2985b92820b7da40ae30f2968339990c0