]> www.wagner.pp.ru Git - openssl-gost/rpm.git/blobdiff - openssl-gost-engine.spec
Added gostsum rpm package
[openssl-gost/rpm.git] / openssl-gost-engine.spec
index 310d1ce84a36e99cd9e83f7bce19180479d3d757..0eef1ebcadcd45a37265ceb20ee5071059f2c804 100644 (file)
@@ -11,10 +11,20 @@ Source0: %{name}-%{version}.tar.bz2
 BuildRequires: cmake, openssl-devel    
 Requires: openssl-libs 
 
+
 %description
 
 This package contains openssl module with software implementation of GOST cryptoalgorithms.
 
+%package -n gostsum
+Summary: utilities to compute GOST hashes
+Group: Utilities/Cryptography
+License: OpenSSL
+
+%description -n gostsum
+Gostsum and gost12sum are utilities, similar to md5sum or sha1sum which computes
+
+
 %prep
 %setup -q
 
@@ -27,6 +37,12 @@ make %{?_smp_mflags}
 %install
 install -d -m 755 %{buildroot}%{_libdir}/engines-1.1
 install -c -m 755 bin/gost.so %{buildroot}%{_libdir}/engines-1.1
+install -d -m 755 %{buildroot}%{_bindir}
+install -d -m 755 %{buildroot}%{_mandir}/man1
+install -c -m 755 bin/gostsum %{buildroot}%{_bindir}
+install -c -m 755 bin/gost12sum %{buildroot}%{_bindir}
+install -c -m 644 gostsum.1 %{buildroot}%{_mandir}/man1
+install -c -m 644 gost12sum.1 %{buildroot}%{_mandir}/man1
 
 %files
 %doc README.gost
@@ -34,6 +50,12 @@ install -c -m 755 bin/gost.so %{buildroot}%{_libdir}/engines-1.1
 %dir %{_libdir}/engines-1.1
 %{_libdir}/engines-1.1/gost.so
 
+%files -n gostsum
+%{_bindir}/gostsum
+%{_bindir}/gost12sum
+%{_mandir}/man1/gostsum.1*
+%{_mandir}/man1/gost12sum.1*
+
 %changelog
 
 * Wed Aug  2 2017 Victor Wagner <vitus@wagner.pp.ru>