summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2023-03-27 15:55:24 (GMT)
committerJakub Bogusz2023-03-27 15:55:24 (GMT)
commit2ec8cb8943f0c5fad2370b195685f740ca5c4e5a (patch)
tree0c164288ca1782a3d95fa098f0b16e5a1d1f2002
parent44fecf5836ceb4671966d8f9ebd9e4ba50353179 (diff)
downloadrhash-2ec8cb8943f0c5fad2370b195685f740ca5c4e5a.zip
rhash-2ec8cb8943f0c5fad2370b195685f740ca5c4e5a.tar.gz
- updated to 1.4.3, package .pc fileauto/th/rhash-1.4.3-1
-rw-r--r--rhash.spec25
1 files changed, 16 insertions, 9 deletions
diff --git a/rhash.spec b/rhash.spec
index 1d23772..3d256f6 100644
--- a/rhash.spec
+++ b/rhash.spec
@@ -1,13 +1,13 @@
Summary: RHash - Recursive Hasher
Summary(pl.UTF-8): RHash - rekursywne obliczanie funkcji skrótu
Name: rhash
-Version: 1.3.6
+Version: 1.4.3
Release: 1
-License: MIT
+License: BSD Zero Clause
Group: Applications/File
-Source0: http://downloads.sourceforge.net/rhash/%{name}-%{version}-src.tar.gz
-# Source0-md5: 9af110ade09b4a4b1b3bdf88dcae3713
-URL: http://rhash.anz.ru/
+Source0: https://downloads.sourceforge.net/rhash/%{name}-%{version}-src.tar.gz
+# Source0-md5: 6de2d29618321e98cbb6138813b99797
+URL: https://rhash.sourceforge.net/
BuildRequires: openssl-devel
BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -84,6 +84,9 @@ RHash - statyczna wersja biblioteki funkcji skrótu.
%prep
%setup -q -n RHash-%{version}
+# missing update in 1.4.3
+%{__sed} -i -e 's/1\.4\.2/%{version}/' version.h
+
%build
# not ac-based configure
./configure \
@@ -107,7 +110,8 @@ RHash - statyczna wersja biblioteki funkcji skrótu.
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+
+%{__make} install install-pkg-config \
DESTDIR=$RPM_BUILD_ROOT
# missing from top-level Makefile
@@ -125,12 +129,12 @@ rm -rf $RPM_BUILD_ROOT
%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}/edonr256-hash
%attr(755,root,root) %{_bindir}/edonr512-hash
-%attr(755,root,root) %{_bindir}/gost-hash
+%attr(755,root,root) %{_bindir}/gost12-256-hash
+%attr(755,root,root) %{_bindir}/gost12-512-hash
%attr(755,root,root) %{_bindir}/has160-hash
%attr(755,root,root) %{_bindir}/magnet-link
%attr(755,root,root) %{_bindir}/sfv-hash
@@ -142,7 +146,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/ed2k-link.1*
%{_mandir}/man1/edonr256-hash.1*
%{_mandir}/man1/edonr512-hash.1*
-%{_mandir}/man1/gost-hash.1*
+%{_mandir}/man1/gost12-256-hash.1*
+%{_mandir}/man1/gost12-512-hash.1*
%{_mandir}/man1/has160-hash.1*
%{_mandir}/man1/magnet-link.1*
%{_mandir}/man1/rhash.1*
@@ -153,6 +158,7 @@ rm -rf $RPM_BUILD_ROOT
%files libs
%defattr(644,root,root,755)
+%doc COPYING ChangeLog README.md
%attr(755,root,root) %{_libdir}/librhash.so.0
%files devel
@@ -160,6 +166,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/librhash.so
%{_includedir}/rhash.h
%{_includedir}/rhash_torrent.h
+%{_pkgconfigdir}/librhash.pc
%files static
%defattr(644,root,root,755)