keyutils/keyutils.spec

108 lines
2.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:54:23 -04:00
Name: keyutils
Version: 1.5.10
Release: 10
2019-09-30 10:54:23 -04:00
Summary: Utilities of Linux Key Management
License: GPLv2+ and LGPLv2+
Url: http://people.redhat.com/~dhowells/keyutils/
Source0: http://people.redhat.com/~dhowells/keyutils/keyutils-%{version}.tar.bz2
Patch9000: bugfix-fix-argv-string-out-of-bounds.patch
BuildRequires: gcc
BuildRequires: glibc-kernheaders >= 2.4-9.1.92
%description
The keyutils contains the kernel key management facility and provides the
call back mechanism to get a key to user space.
%package libs
Summary: Key utilities library
%description libs
This package provides a wrapper library for the key management facility system
calls.
2019-09-30 10:54:23 -04:00
%package libs-devel
Summary: libs-devle package for keyutils
Requires: %{name}-libs = %{version}-%{release}
%description libs-devel
The libs-devel package of keyutils.
%package help
Summary: man files and other docs for keyutils
%description help
The help package for keyutils.
%prep
%autosetup -n %{name}-%{version} -p1
%build
make \
NO_ARLIB=1 \
ETCDIR=%{_sysconfdir} \
LIBDIR=%{_libdir} \
USRLIBDIR=%{_libdir} \
BINDIR=%{_bindir} \
SBINDIR=%{_sbindir} \
MANDIR=%{_mandir} \
INCLUDEDIR=%{_includedir} \
SHAREDIR=%{_datarootdir}/keyutils \
RELEASE=.%{release} \
NO_GLIBC_KEYERR=1 \
CFLAGS="-Wall $RPM_OPT_FLAGS" \
LDFLAGS="%{?__global_ldflags}"
%install
make \
NO_ARLIB=1 \
DESTDIR=$RPM_BUILD_ROOT \
ETCDIR=%{_sysconfdir} \
LIBDIR=%{_libdir} \
USRLIBDIR=%{_libdir} \
BINDIR=%{_bindir} \
SBINDIR=%{_sbindir} \
MANDIR=%{_mandir} \
INCLUDEDIR=%{_includedir} \
SHAREDIR=%{_datarootdir}/keyutils \
install
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
2019-09-30 10:54:23 -04:00
%files
%doc README
%license LICENCE.GPL
%license LICENCE.LGPL
%{_sbindir}/*
%{_bindir}/*
%{_datarootdir}/keyutils
%config(noreplace) %{_sysconfdir}/*
%files libs
%license LICENCE.LGPL
2019-09-30 10:54:23 -04:00
%{_libdir}/libkeyutils.so.*
%files libs-devel
%{_libdir}/libkeyutils.so
%{_includedir}/*
%files help
%{_mandir}/man*/*
%changelog
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.5.10-10
- add keyutils-libs containing dynamic library for keyutils
2019-09-30 10:54:23 -04:00
* Thu May 10 2019 huangchangyu <huangchangyu@huawei.com> - 1.5.10-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix argv string out of bounds
* Fri Mar 1 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.10-8
- Package init