diff options
author | Adam Osuchowski | 2015-01-04 00:04:40 (GMT) |
---|---|---|
committer | Adam Osuchowski | 2015-01-04 00:04:40 (GMT) |
commit | 0a8e5a5e6651c48d5c7ac87c8f637e18f63a3e6f (patch) | |
tree | ea37397ddc9b4ad4134162f1e90214fa4a2fa046 | |
download | rhash-0a8e5a5e6651c48d5c7ac87c8f637e18f63a3e6f.zip rhash-0a8e5a5e6651c48d5c7ac87c8f637e18f63a3e6f.tar.gz |
- initial version, 1.3.3
-rw-r--r-- | rhash.spec | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/rhash.spec b/rhash.spec new file mode 100644 index 0000000..dd35bb3 --- /dev/null +++ b/rhash.spec @@ -0,0 +1,145 @@ +Summary: RHash - Recursive Hasher +Summary(pl.UTF-8): RHash - rekursywne obliczanie funkcji skrótu +Name: rhash +Version: 1.3.3 +Release: 1 +License: MIT +Group: Applications/File +Source0: http://downloads.sourceforge.net/rhash/%{name}-%{version}-src.tar.gz +# Source0-md5: 0e3c758b5e4b25e29e0094a33a9d2764 +URL: http://rhash.anz.ru/ +BuildRequires: openssl-devel +BuildRequires: sed >= 4.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +RHash (Recursive Hasher) is a console utility for computing and +verifying hash sums of files. It supports CRC32, MD4, MD5, SHA1, +SHA256, SHA512, Tiger, DC++ TTH, BitTorrent BTIH, ED2K, AICH, GOST +R 34.11-94, RIPEMD-160, HAS-160, EDON-R 256/512, Whirlpool and +Snefru-128/256 algorithms. Hash sums are used to ensure and verify +integrity of large volumes of data for a long-term storing or +transferring. + +Features: +* Can calculate Magnet links. +* Output in a predefined (SFV, BSD-like) or user defined format. +* Ability to process directories recursively. +* Updating of existing hash files (adding sums of files missing in the + hash file). +* Calculates several hash sums in one pass. + +%description -l pl.UTF-8 +RHash jest konsolowym narzędziem służącym do obliczania +różnych funkcji skrótu dla plików. Obsługiwane algorytmy to: +CRC32, MD4, MD5, SHA1, SHA256, SHA512, Tiger, DC++ TTH, BitTorrent +BTIH, ED2K, AICH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R +256/512, Whirlpool i Snefru-128/256. Funkcje skrótu są +wykorzystywane do zapewnienia spójności danych przy +długotrwałym składowaniu oraz transmisji. + +Własności: +* Potrafi tworzyć linki typu magnet. +* Wynik w postaci predefiniowanej (SFV, BSD) lub zdefiniowanej przez + użytkownika. +* Rekursywne przetwarzanie katalogów. +* Aktualizowanie istniejących plików ze skrótami (dodaje skróty + plików brakujących w pliku ze skrótami). +* Obliczanie wielu funkcji skrótu w jednym przebiegu. + +%package libs +Summary: RHash - library +Summary(pl.UTF-8): RHash - biblioteka funkcji skrótu +Group: Libraries + +%description libs +RHash (Recursive Hasher) library. + +%description libs -l pl.UTF-8 +RHash - biblioteka funkcji skrótu. + +%package devel +Summary: Header files for RHash library +Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki RHash +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} + +%description devel +Header files for RHash library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe do biblioteki RHash. + +%package static +Summary: RHash - static library +Summary(pl.UTF-8): RHash - biblioteka statyczna +Group: Development/Libraries +Requires: %{name}-devel = %{epoch}:%{version}-%{release} + +%description static +Static version of RHash library. + +%description static -l pl.UTF-8 +RHash - statyczna wersja biblioteki funkcji skrótu. + +%prep +%setup -q + +%build +%{__make} \ + build-shared \ + lib-static \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags} -DUSE_GETTEXT -DUSE_OPENSSL" \ + LDFLAGS="%{rpmldflags} -lcrypto" + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} \ + install-shared \ + install-lib-static \ + install-lib-shared \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + INCDIR=%{_includedir} \ + MANDIR=%{_mandir} \ + DESTDIR=$RPM_BUILD_ROOT + +%{__chmod} 755 $RPM_BUILD_ROOT/%{_libdir}/librhash.so* + +%clean +rm -rf $RPM_BUILD_ROOT + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc COPYING ChangeLog README +%attr(755,root,root) %{_bindir}/rhash +%attr(755,root,root) %{_bindir}/ed2k-link +%attr(755,root,root) %{_bindir}/gost-hash +%attr(755,root,root) %{_bindir}/has160-hash +%attr(755,root,root) %{_bindir}/magnet-link +%attr(755,root,root) %{_bindir}/sfv-hash +%attr(755,root,root) %{_bindir}/tiger-hash +%attr(755,root,root) %{_bindir}/tth-hash +%attr(755,root,root) %{_bindir}/whirlpool-hash + +%{_sysconfdir}/%{name}rc +%{_mandir}/man1/* + +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/librhash.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/librhash.so +%{_includedir}/rhash.h +%{_includedir}/rhash_torrent.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/librhash.a |