commit aa53a5f6515af4f6c4129791900720f4920d8bab Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:38:51 2019 -0400 Package init diff --git a/fipscheck-1.5.0.tar.bz2 b/fipscheck-1.5.0.tar.bz2 new file mode 100644 index 0000000..5fd7631 Binary files /dev/null and b/fipscheck-1.5.0.tar.bz2 differ diff --git a/fipscheck.spec b/fipscheck.spec new file mode 100644 index 0000000..a06acaa --- /dev/null +++ b/fipscheck.spec @@ -0,0 +1,90 @@ +name: fipscheck +Version: 1.5.0 +Release: 6 +Summary: Helper library for FIPS integrity checking +License: BSD +URL: https://pagure.io/fipscheck +Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2 + +BuildRequires: gcc git openssl-devel >= 1.0.0 +Requires: %{_bindir}/fipscheck +Obsoletes: %{name}-lib < %{version}-%{release} +Provides:%{name}-lib = %{version}-%{release} +Provides:%{name}-lib%{_isa} = %{version}-%{release} + +%description +This package contains library (libfipscheck) and helper binaries which +implement the integrity check of libraries and binaries as required by +FIPS-140-2 validated modules. + +%package devel +Summary: Development headers and libraries for %{name} +Requires:%{name} = %{version}-%{release} + +%description devel +Development headers and libraries for %{name} + +%package help +Summary: Documents for %{name} +Buildarch: noarch +Requires: man info + +%description help +Man page and other related documents for %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 -Sgit + +%build +%configure +make %{?_smp_mflags} + +%define __spec_install_post \ + %{?__debug_package:%{__debug_install_post}} \ + %{__arch_install_post} \ + %{__os_install_post} \ + %{buildroot}%{_bindir}/fipshmac -d %{buildroot}%{_libdir}/fipscheck %{buildroot}%{_bindir}/fipscheck %{buildroot}%{_libdir}/libfipscheck.so.1.2.1 \ + ln -s libfipscheck.so.1.2.1.hmac %{buildroot}%{_libdir}/fipscheck/libfipscheck.so.1.hmac \ +%{nil} + +%install +rm -rf %{buildroot} +%make_install +mkdir -p %{buildroot}%{_libdir}/fipscheck + +%check +make check + +%pre + +%preun + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%license COPYING +%doc ChangeLog AUTHORS +%{_bindir}/* +%{_libdir}/fipscheck/fipscheck.hmac +%{_libdir}/*.so.* +%dir %{_libdir}/fipscheck +%{_libdir}/fipscheck/libfipscheck.so.*.hmac + +%files devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/*.so +%{_libdir}/*.la +%{_libdir}/*.a + +%files help +%doc README NEWS +%{_mandir}/man8/* +%{_mandir}/man3/* + +%changelog +* Thu Aug 22 2019 openEuler Buildteam - 1.5.0-6 +- Package init