From: Victor Wagner Date: Thu, 3 Aug 2017 15:07:35 +0000 (+0300) Subject: Added gostsum rpm package X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=10e348d308712e0d95dc5ccddaa1e36b022e0f03;p=openssl-gost%2Frpm.git Added gostsum rpm package --- diff --git a/Makefile b/Makefile index c5920c5..7bbc773 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,15 @@ ARCH:=$(shell rpm --eval '%_arch') DIST:=$(shell rpm --eval '%dist') BRANCH=master -rpm: openssl-gost-engine-$(VERSION)-1$(DIST).$(ARCH).rpm +rpm: openssl-gost-engine-$(VERSION)-1$(DIST).$(ARCH).rpm gostsum-$(VERSION)-1$(DIST).$(ARCH).rpm -openssl-gost-engine-$(VERSION)-1$(DIST).$(ARCH).rpm: $(RPMTOP)/RPMS/$(ARCH)/openssl-gost-engine-$(VERSION)-1$(DIST).$(ARCH).rpm +%-$(VERSION)-1$(DIST).$(ARCH).rpm: $(RPMTOP)/RPMS/$(ARCH)/%-$(VERSION)-1$(DIST).$(ARCH).rpm cp $^ $@ -$(RPMTOP)/RPMS/$(ARCH)/openssl-gost-engine-$(VERSION)-1$(DIST).$(ARCH).rpm: $(RPMTOP)/SOURCES/openssl-gost-engine-$(VERSION).tar.bz2 $(RPMTOP)/SPECS/openssl-gost-engine.spec +$(RPMTOP)/RPMS/$(ARCH)/openssl-gost-engine-$(VERSION)-1$(DIST).$(ARCH).rpm $(RPMTOP)/RPMS/$(ARCH)/gostsum-$(VERSION)-1$(DIST).$(ARCH).rpm: $(RPMTOP)/SOURCES/openssl-gost-engine-$(VERSION).tar.bz2 $(RPMTOP)/SPECS/openssl-gost-engine.spec mkdir -p $(RPMTOP)/RPMS/$(ARCH) || true mkdir -p $(RPMTOP)/SRPMS - CXX=/bin/true rpmbuild -ba $(RPMTOP)/SPECS/openssl-gost-engine.spec + rpmbuild -ba $(RPMTOP)/SPECS/openssl-gost-engine.spec $(RPMTOP)/SPECS/openssl-gost-engine.spec: openssl-gost-engine.spec mkdir -p $(RPMTOP)/SPECS || true diff --git a/README.md b/README.md index d4af9d0..92dd5af 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ -# rpm -spec files to build rpm package for gost engine +GOST ENGINE RPM +=============== + +This repository contain spec files to build rpm package for gost engine + +Separate GOST engine package can be build for systems with openssl 1.1.0 and +above. + +You should have installed rpm-build, git, openssl-devel and cmake in order +to build RPM package + +Type make in this directory and it would + +1. Clone gost-engine/engine repository +2. Prepare source tarball +3. Copy it and spec file out into rpm build tree +4. Build RPM +5. Copy it back here. + diff --git a/openssl-gost-engine.spec b/openssl-gost-engine.spec index 310d1ce..0eef1eb 100644 --- a/openssl-gost-engine.spec +++ b/openssl-gost-engine.spec @@ -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