summaryrefslogtreecommitdiff
path: root/packaging/keyutils.spec
blob: 97bab232e8fcf42d4627f86020d63c88ca08ac2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Name:           keyutils
Url:            http://people.redhat.com/~dhowells/keyutils/
Summary:        Linux Key Management Utilities
License:        GPL-2.0+ ; LGPL-2.1+
Group:          System/Kernel
Version:        1.5.3
Release:        0
Source0:        http://people.redhat.com/~dhowells/keyutils/%name-%version.tar.bz2
Source1001: 	keyutils.manifest

%description
Utilities to control the kernel key management facility and to provide
a mechanism by which the kernel can call back to user space to get a
key instantiated.

%package -n libkeyutils
Summary:        Key utilities library
Group:          System/Kernel

%description -n libkeyutils
This package provides a wrapper library for the key management facility
system calls.

%package devel
Summary:        Development package for building linux key management utilities
Group:          System/Kernel
Requires:       libkeyutils = %version
Requires:       glibc-devel

%description devel
This package provides headers and libraries for building key utilities.

%prep
%setup -q
cp %{SOURCE1001} .

%build
make %{?_smp_mflags} NO_ARLIB=1 CFLAGS="$RPM_OPT_FLAGS" CC="%__cc"

%install
make install NO_ARLIB=1 DESTDIR=$RPM_BUILD_ROOT LIBDIR=/%_lib USRLIBDIR=/usr/%_lib

%post -n libkeyutils -p /sbin/ldconfig 

%postun -n libkeyutils -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license LICENCE.GPL
/sbin/*
/bin/*
/usr/share/keyutils
%{_mandir}/*/*
%config(noreplace) /etc/*

%files -n libkeyutils
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license LICENCE.LGPL
/%{_lib}/libkeyutils.so.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
/usr/%{_lib}/libkeyutils.so
%{_includedir}/*