]> git.pld-linux.org Git - packages/keyutils.git/blob - keyutils.spec
- release 2
[packages/keyutils.git] / keyutils.spec
1 #
2 # Conditional build:
3 %if "%{pld_release}" == "ac"
4 %bcond_with             glibc24         # build for older glibc
5 %else
6 %bcond_without  glibc24         # build for older glibc
7 %endif
8
9 Summary:        Linux Key Management Utilities
10 Summary(pl.UTF-8):      Narzędzia do linuksowego zarządzania kluczami
11 Name:           keyutils
12 Version:        1.4
13 Release:        2
14 License:        LGPL v2+ (library), GPL v2+ (utility)
15 Group:          Base
16 Source0:        http://people.redhat.com/~dhowells/keyutils/%{name}-%{version}.tar.bz2
17 # Source0-md5:  e168c1bdaf5aa93c2cbf8a5e7f8ef27b
18 BuildRequires:  rpmbuild(macros) >= 1.402
19 Requires:       %{name}-libs = %{version}-%{release}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Utilities to control the kernel key management facility and to provide
24 a mechanism by which the kernel call back to userspace to get a key
25 instantiated.
26
27 %description -l pl.UTF-8
28 Narzędzia sterujące zarządzaniem kluczami w jądrze i dostarczające
29 mechanizm, przez który jądro odwołuje się do przestrzeni użytkownika w
30 celu pobrania instancji klucza.
31
32 %package libs
33 Summary:        Key utilities library
34 Summary(pl.UTF-8):      Biblioteka narzędzi do zarządzania kluczami
35 License:        LGPL v2+
36 Group:          Libraries
37 %{?with_glibc24:Requires:       glibc >= 6:2.4}
38
39 %description libs
40 This package provides a wrapper library for the key management
41 facility system calls.
42
43 %description libs -l pl.UTF-8
44 Ten pakiet zawiera bibliotekę obudowującą wywołania systemowe do
45 zarządzania kluczami.
46
47 %package devel
48 Summary:        Development package for building Linux key management utilities
49 Summary(pl.UTF-8):      Pakiet programistyczny do tworzenia narzędzi zarządzających linuksowymi kluczami
50 License:        LGPL v2+
51 Group:          Development/Libraries
52 Requires:       %{name}-libs = %{version}-%{release}
53
54 %description devel
55 This package provides the header files for building key utilities.
56
57 %description devel -l pl.UTF-8
58 Ten pakiet udostępnia pliki nagłówkowe do tworzenia narzędzi
59 zarządzających kluczami.
60
61 %package static
62 Summary:        Static Linux key management library
63 Summary(pl.UTF-8):      Statyczna biblioetka do zarządzania linuksowymi kluczami
64 License:        LGPL v2+
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static linux key management libraries.
70
71 %description static -l pl.UTF-8
72 Statyczna biblioetka do zarządzania linuksowymi kluczami.
73
74 %prep
75 %setup -q
76
77 %build
78 %{__make} -j1 \
79         CC="%{__cc}" \
80         LIBDIR=/%{_lib} \
81         USRLIBDIR=%{_libdir} \
82 %if %{without glibc24}
83         NO_GLIBC_KEYERR=1 \
84 %endif
85         CFLAGS="-Wall %{rpmcflags}" \
86         LDFLAGS="%{rpmldflags}"
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT \
93         LIBDIR=/%{_lib} \
94         USRLIBDIR=%{_libdir}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   libs -p /sbin/ldconfig
100 %postun libs -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc README
105 %attr(755,root,root) /bin/keyctl
106 %attr(755,root,root) /sbin/request-key
107 %dir %{_datadir}/keyutils
108 %attr(755,root,root) %{_datadir}/keyutils/*.sh
109 %{_mandir}/man1/keyctl.1*
110 %{_mandir}/man5/request-key.conf.5*
111 %{_mandir}/man8/request-key.8*
112 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/request-key.conf
113
114 %files libs
115 %defattr(644,root,root,755)
116 %attr(755,root,root) /%{_lib}/libkeyutils.so.*.*
117 %attr(755,root,root) %ghost /%{_lib}/libkeyutils.so.1
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libkeyutils.so
122 %{_includedir}/keyutils.h
123 %{_mandir}/man3/keyctl_*.3*
124
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libkeyutils.a
This page took 0.061921 seconds and 3 git commands to generate.