Skip to content

Commit

Permalink
- pl
Browse files Browse the repository at this point in the history
- more verbose files, ghost for soname symlink
- dropped NO_GLIBC_KEYERR, require glibc 2.4 instead
- internal deps

Changed files:
    keyutils.spec -> 1.2
  • Loading branch information
qboosh authored and cvs2git committed Jun 24, 2012
1 parent d4301ff commit 3621847
Showing 1 changed file with 46 additions and 22 deletions.
68 changes: 46 additions & 22 deletions keyutils.spec
Original file line number Diff line number Diff line change
@@ -1,41 +1,67 @@
Summary: Linux Key Management Utilities
Summary(pl.UTF-8): Narzędzia do linuksowego zarządzania kluczami
Name: keyutils
Version: 1.2
Release: 1
License: GPL/LGPL
License: LGPL v2+ (library), GPL v2+ (utility)
Group: Base
Source0: http://people.redhat.com/~dhowells/keyutils/%{name}-%{version}.tar.bz2
# Source0-md5: 227086776abccc3ee34599591db563f0
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)

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

%description -l pl.UTF-8
Narzędzia sterujące zarządzaniem kluczami w jądrze i dostarczające
mechanizm, przez który jądro odwołuje się do przestrzeni użytkownika w
celu pobrania instancji klucza.

%package libs
Summary: Key utilities library
Group: Base
Summary(pl.UTF-8): Biblioteka narzędzi do zarządzania kluczami
License: LGPL v2+
Group: Libraries
Requires: glibc >= 6:2.4

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

%description libs -l pl.UTF-8
Ten pakiet zawiera bibliotekę obudowującą wywołania systemowe do
zarządzania kluczami.

%package devel
Summary: Development package for building linux key management utilities
Summary: Development package for building Linux key management utilities
Summary(pl.UTF-8): Pakiet programistyczny do tworzenia narzędzi zarządzających linuksowymi kluczami
License: LGPL v2+
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}

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

%description devel -l pl.UTF-8
Ten pakiet udostępnia pliki nagłówkowe do tworzenia narzędzi
zarządzających kluczami.

%package static
Summary: Static linux key management libraries
Summary: Static Linux key management library
Summary(pl.UTF-8): Statyczna biblioetka do zarządzania linuksowymi kluczami
License: LGPL v2+
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}

%description static
Static linux key management libraries.

%description static -l pl.UTF-8
Statyczna biblioetka do zarządzania linuksowymi kluczami.

%prep
%setup -q

Expand All @@ -44,7 +70,6 @@ Static linux key management libraries.
CC="%{__cc}" \
LIBDIR=/%{_lib} \
USRLIBDIR=%{_libdir} \
NO_GLIBC_KEYERR=1 \
CFLAGS="-Wall %{rpmcflags}" \
LDFLAGS="%{rpmldflags}"

Expand Down Expand Up @@ -74,33 +99,32 @@ echo ".so keyctl_link.3" > $RPM_BUILD_ROOT%{_mandir}/man3/keyctl_unlink.3
%clean
rm -rf $RPM_BUILD_ROOT

%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig

%files
%defattr(644,root,root,755)
%doc README LICENCE.GPL
%attr(755,root,root) /sbin/*
%attr(755,root,root) /bin/*
%doc README
%attr(755,root,root) /bin/keyctl
%attr(755,root,root) /sbin/request-key
%dir %{_datadir}/keyutils
%attr(755,root,root) %{_datadir}/keyutils/*.sh
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
%{_mandir}/man1/keyctl.1*
%{_mandir}/man5/request-key.conf.5*
%{_mandir}/man8/request-key.8*
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/request-key.conf

%files libs
%defattr(644,root,root,755)
%doc LICENCE.LGPL
%attr(755,root,root) /%{_lib}/libkeyutils-*.so
%attr(755,root,root) /%{_lib}/libkeyutils.so.*
%attr(755,root,root) %ghost /%{_lib}/libkeyutils.so.1

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so
%{_includedir}/*.h
%{_mandir}/man3/*
%attr(755,root,root) %{_libdir}/libkeyutils.so
%{_includedir}/keyutils.h
%{_mandir}/man3/keyctl_*.3*

%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
%{_libdir}/libkeyutils.a

0 comments on commit 3621847

Please sign in to comment.