forked from pool/libkcapi
This commit is contained in:
parent
c265cd4278
commit
25b1ff4350
@ -89,27 +89,27 @@ autoreconf -i
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot} LIBDIR="%{_libdir}" BINDIR=/usr/%_lib/libkcapi/ %{?_smp_mflags}
|
||||
make install DESTDIR=%{buildroot} LIBDIR="%{_libdir}" BINDIR=/%_libexecdir/libkcapi/ %{?_smp_mflags}
|
||||
rm %{buildroot}/%_libdir/libkcapi.la
|
||||
|
||||
mkdir -p %{buildroot}/usr/%_lib/libkcapi/
|
||||
mv %{buildroot}/usr/bin/* %{buildroot}/usr/%_lib/libkcapi/
|
||||
mkdir -p %{buildroot}/%_libexecdir/libkcapi/
|
||||
mv %{buildroot}/usr/bin/* %{buildroot}/%_libexecdir/libkcapi/
|
||||
|
||||
# Add generation of HMAC checksums of the final fipshmac fipscheck stripped binaries
|
||||
%define __spec_install_post \
|
||||
%{?__debug_package:%{__debug_install_post}} \
|
||||
%{__arch_install_post} \
|
||||
%{__os_install_post} \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/usr/%_lib/libkcapi/fipscheck |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.fipscheck.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/usr/%_lib/libkcapi/fipshmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.fipshmac.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha1sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha1sum.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha256sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha256sum.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha384sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha384sum.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha512sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha512sum.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha1hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha1hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha256hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha256hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha384hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha384hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/usr/%_lib/libkcapi/sha512hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/usr/%_lib/libkcapi/.sha512hmac.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/%_libexecdir/libkcapi/fipscheck |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.fipscheck.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/%_libexecdir/libkcapi/fipshmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.fipshmac.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha1sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha1sum.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha256sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha256sum.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha384sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha384sum.hmac \
|
||||
openssl sha256 -hmac orboDeJITITejsirpADONivirpUkvarP $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha512sum |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha512sum.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha1hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha1hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha256hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha256hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha384hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha384hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libexecdir/libkcapi/sha512hmac |sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libexecdir/libkcapi/.sha512hmac.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libdir/libkcapi.so|sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libdir/.libkcapi.so.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libdir/libkcapi.so.1|sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libdir/.libkcapi.so.1.hmac \
|
||||
openssl sha512 -hmac FIPS-FTW-RHT2009 $RPM_BUILD_ROOT/%_libdir/libkcapi.so.%version|sed -e 's/.* //;' > $RPM_BUILD_ROOT/%_libdir/.libkcapi.so.%version.hmac \
|
||||
@ -135,8 +135,8 @@ mv %{buildroot}/usr/bin/* %{buildroot}/usr/%_lib/libkcapi/
|
||||
|
||||
%files tools
|
||||
%dir %{_libexecdir}/libkcapi
|
||||
/usr/%_lib/libkcapi/*sum*
|
||||
/usr/%_lib/libkcapi/*hmac*
|
||||
/%_libexecdir/libkcapi/*sum*
|
||||
/%_libexecdir/libkcapi/*hmac*
|
||||
%{_libexecdir}/libkcapi/kcapi
|
||||
%{_libexecdir}/libkcapi/kcapi-convenience
|
||||
%{_libexecdir}/libkcapi/compile-test.sh
|
||||
|
Loading…
Reference in New Issue
Block a user