mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 06:12:32 +02:00

The xattr API/ABI is provided by both the c-library, as well as by the libattr package. The c-library's header file is sys/xattr.h, whereas libattr's header file can be found in attr/xattr.h. Given none of the code here *links* against the libattr.so shared library, it is wrong to *compile* against libattr's API (header file). Doing so avoids confusion as to which xattr.h is used as the least problem, and potential ABI differences as the worst problem due the mismatching header file used. So make sure we compile and link against the same thing, the c-library in both cases. Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
53 lines
866 B
RPMSpec
53 lines
866 B
RPMSpec
Name: @PACKAGE_NAME@
|
|
Version: @PACKAGE_VERSION@
|
|
Release: 1%{?dist}
|
|
Summary: @PACKAGE_NAME@ - IMA/EVM control utility
|
|
Group: System/Libraries
|
|
License: GPLv2
|
|
#URL:
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: keyutils-libs-devel
|
|
|
|
%description
|
|
This package provide IMA/EVM control utility
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
./autogen.sh
|
|
%configure --prefix=/usr
|
|
make
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
exit 0
|
|
|
|
%preun -p /sbin/ldconfig
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/*
|
|
%{_libdir}/libimaevm.*
|
|
%{_includedir}/*
|
|
|
|
%changelog
|
|
* Thu Apr 05 2012 Dmitry Kasatkin <dmitry.kasatkin@intel.com>
|
|
- Initial RPM spec file
|
|
|