fipscheck/fipscheck.spec

99 lines
2.3 KiB
RPMSpec
Raw Normal View History

2020-12-11 14:42:57 +08:00
Name: fipscheck
2019-09-30 10:38:51 -04:00
Version: 1.5.0
Release: 9
2019-09-30 10:38:51 -04:00
Summary: Helper library for FIPS integrity checking
License: BSD
URL: https://pagure.io/fipscheck
Source0: https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
2019-11-06 19:06:55 +08:00
BuildRequires: gcc openssl-devel >= 1.0.0
2019-09-30 10:38:51 -04:00
Obsoletes: %{name}-lib < %{version}-%{release}
2019-11-06 19:06:55 +08:00
Provides: %{name}-lib = %{version}-%{release}
Provides: %{name}-lib%{_isa} = %{version}-%{release}
2019-09-30 10:38:51 -04:00
%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}
2019-11-06 19:06:55 +08:00
%package_help
2019-09-30 10:38:51 -04:00
%prep
2019-11-06 19:06:55 +08:00
%autosetup -n %{name}-%{version} -p1
2019-09-30 10:38:51 -04:00
%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)
2019-11-06 19:06:55 +08:00
%license COPYING AUTHORS
%doc ChangeLog
2019-09-30 10:38:51 -04:00
%{_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
* Mon Oct 24 2022 zhengxiaoxiao<zhengxiaoxiao2@huawei.com> - 1.5.0-9
- update release
2020-12-11 14:42:57 +08:00
* Fri Dec 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5.0-8
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: correct "name" to "Name" in spec file
2019-11-06 19:06:55 +08:00
* Wed Oct 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.0-7
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: change the directory of AUTHORS
* Thu Aug 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.0-6
2019-09-30 10:38:51 -04:00
- Package init