summaryrefslogtreecommitdiff
path: root/packaging/keyutils.spec
blob: 4438ace385ad27083a4a6f12a6d13bded32167f1 (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
68
69
70
71
72
73
Name:           keyutils
Url:            http://people.redhat.com/~dhowells/keyutils/
Summary:        Linux Key Management Utilities
License:        GPL-2.0+ and 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=%{buildroot} \
        LIBDIR=%{_libdir} \
        USRLIBDIR=%{_libdir} \
        BINDIR=%{_bindir} \
        SBINDIR=%{_sbindir}

%post -n libkeyutils -p /sbin/ldconfig 

%postun -n libkeyutils -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license LICENCE.GPL
%{_sbindir}/*
%{_bindir}/*
%{_datadir}/keyutils
%{_mandir}/*/*
%config(noreplace) /etc/*

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

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