Blame SPECS/keyutils.spec

c7061c
%define vermajor 1
c7061c
%define verminor 5.8
c7061c
%define version %{vermajor}.%{verminor}
c7061c
%define libdir /%{_lib}
c7061c
%define usrlibdir %{_prefix}/%{_lib}
c7061c
%define libapivermajor 1
c7061c
%define libapiversion %{libapivermajor}.5
c7061c
c7061c
# % define buildid .local
c7061c
c7061c
Summary: Linux Key Management Utilities
c7061c
Name: keyutils
c7061c
Version: %{version}
c7061c
Release: 3%{?buildid}%{?dist}
c7061c
License: GPLv2+ and LGPLv2+
c7061c
Group: System Environment/Base
c7061c
ExclusiveOS: Linux
c7061c
Url: http://people.redhat.com/~dhowells/keyutils/
c7061c
c7061c
Source0: http://people.redhat.com/~dhowells/keyutils/keyutils-%{version}.tar.bz2
c7061c
c7061c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c7061c
BuildRequires: glibc-kernheaders >= 2.4-9.1.92
c7061c
Requires: keyutils-libs == %{version}-%{release}
c7061c
c7061c
%description
c7061c
Utilities to control the kernel key management facility and to provide
c7061c
a mechanism by which the kernel call back to user space to get a key
c7061c
instantiated.
c7061c
c7061c
%package libs
c7061c
Summary: Key utilities library
c7061c
Group: System Environment/Base
c7061c
c7061c
%description libs
c7061c
This package provides a wrapper library for the key management facility system
c7061c
calls.
c7061c
c7061c
%package libs-devel
c7061c
Summary: Development package for building Linux key management utilities
c7061c
Group: System Environment/Base
c7061c
Requires: keyutils-libs == %{version}-%{release}
c7061c
c7061c
%description libs-devel
c7061c
This package provides headers and libraries for building key utilities.
c7061c
c7061c
%prep
c7061c
%setup -q
c7061c
c7061c
%build
c7061c
make \
c7061c
	NO_ARLIB=1 \
c7061c
	LIBDIR=%{libdir} \
c7061c
	USRLIBDIR=%{usrlibdir} \
c7061c
	RELEASE=.%{release} \
c7061c
	NO_GLIBC_KEYERR=1 \
c7061c
	CFLAGS="-Wall $RPM_OPT_FLAGS -Werror"
c7061c
c7061c
%install
c7061c
rm -rf $RPM_BUILD_ROOT
c7061c
make \
c7061c
	NO_ARLIB=1 \
c7061c
	DESTDIR=$RPM_BUILD_ROOT \
c7061c
	LIBDIR=%{libdir} \
c7061c
	USRLIBDIR=%{usrlibdir} \
c7061c
	install
c7061c
c7061c
%clean
c7061c
rm -rf $RPM_BUILD_ROOT
c7061c
c7061c
%post libs -p /sbin/ldconfig
c7061c
%postun libs -p /sbin/ldconfig
c7061c
c7061c
%files
c7061c
%defattr(-,root,root,-)
c7061c
%doc README LICENCE.GPL
c7061c
/sbin/*
c7061c
/bin/*
c7061c
/usr/share/keyutils
c7061c
%{_mandir}/man1/*
c7061c
%{_mandir}/man5/*
c7061c
%{_mandir}/man8/*
c7061c
%config(noreplace) /etc/*
c7061c
c7061c
%files libs
c7061c
%defattr(-,root,root,-)
c7061c
%doc LICENCE.LGPL
c7061c
%{libdir}/libkeyutils.so.%{libapiversion}
c7061c
%{libdir}/libkeyutils.so.%{libapivermajor}
c7061c
c7061c
%files libs-devel
c7061c
%defattr(-,root,root,-)
c7061c
%{usrlibdir}/libkeyutils.so
c7061c
%{_includedir}/*
c7061c
%{_mandir}/man3/*
c7061c
c7061c
%changelog
c7061c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.5.8-3
c7061c
- Mass rebuild 2014-01-24
c7061c
c7061c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.5.8-2
c7061c
- Mass rebuild 2013-12-27
c7061c
c7061c
* Fri Oct 4 2013 David Howells <dhowells@redhat.com> - 1.5.8-1
c7061c
- New lib symbols should go in a new library minor version [BZ 1014739].
c7061c
c7061c
* Wed Oct 2 2013 David Howells <dhowells@redhat.com> - 1.5.7-1
c7061c
- Provide a utility function to find a key by type and name.
c7061c
- Allow keyctl commands to take a type+name arg instead of a key-id arg.
c7061c
- Add per-UID get_persistent keyring function [BZ 1014739].
c7061c
c7061c
* Thu Aug 29 2013 David Howells <dhowells@redhat.com> - 1.5.6-1
c7061c
- Fix the request-key.conf.5 manpage.
c7061c
- Fix the max depth of key tree dump (keyctl show) [BZ 1002761].
c7061c
- The input buffer size for keyctl padd and pinstantiate should be larger [BZ 1002761].
c7061c
- Add keyctl_invalidate.3 manpage [BZ 1002761].
c7061c
c7061c
* Wed Nov 30 2011 David Howells <dhowells@redhat.com> - 1.5.5-1
c7061c
- Fix a Makefile error.
c7061c
c7061c
* Wed Nov 30 2011 David Howells <dhowells@redhat.com> - 1.5.4-1
c7061c
- Fix the keyctl padd command and similar to handle binary input.
c7061c
- Make keyctl show able to take a keyring to dump.
c7061c
- Make keyctl show able to take a flag to request hex key IDs.
c7061c
- Make keyctl show print the real ID of the root keyring.
c7061c
c7061c
* Tue Nov 15 2011 David Howells <dhowells@redhat.com>
c7061c
- Allow /sbin/request-key to have multiple config files.
c7061c
c7061c
* Wed Aug 31 2011 David Howells <dhowells@redhat.com>
c7061c
- Adjust the manual page for 'keyctl unlink' to show keyring is optional.
c7061c
- Add --version support for the keyutils version and build date.
c7061c
c7061c
* Thu Aug 11 2011 David Howells <dhowells@redhat.com> - 1.5.3-1
c7061c
- Make the keyutils rpm depend on the same keyutils-libs rpm version.
c7061c
c7061c
* Tue Jul 26 2011 David Howells <dhowells@redhat.com> - 1.5.2-1
c7061c
- Use correct format spec for printing pointer subtraction results.
c7061c
c7061c
* Tue Jul 19 2011 David Howells <dhowells@redhat.com> - 1.5.1-1
c7061c
- Fix unread variables.
c7061c
- Licence file update.
c7061c
c7061c
* Thu Mar 10 2011 David Howells <dhowells@redhat.com> - 1.5-1
c7061c
- Disable RPATH setting in Makefile.
c7061c
- Add -I. to build to get this keyutils.h.
c7061c
- Make CFLAGS override on make command line work right.
c7061c
- Make specfile UTF-8.
c7061c
- Support KEYCTL_REJECT.
c7061c
- Support KEYCTL_INSTANTIATE_IOV.
c7061c
- Add AFSDB DNS lookup program from Wang Lei.
c7061c
- Generalise DNS lookup program.
c7061c
- Add recursive scan utility function.
c7061c
- Add bad key reap command to keyctl.
c7061c
- Add multi-unlink variant to keyctl unlink command.
c7061c
- Add multi key purger command to keyctl.
c7061c
- Handle multi-line commands in keyctl command table.
c7061c
- Move the package to version to 1.5.
c7061c
c7061c
* Tue Mar 1 2011 David Howells <dhowells@redhat.com> - 1.4-4
c7061c
- Make build guess at default libdirs and word size.
c7061c
- Make program build depend on library in Makefile.
c7061c
- Don't include $(DESTDIR) in MAN* macros.
c7061c
- Remove NO_GLIBC_KEYSYS as it is obsolete.
c7061c
- Have Makefile extract version info from specfile and version script.
c7061c
- Provide RPM build rule in Makefile.
c7061c
- Provide distclean rule in Makefile.
c7061c
c7061c
* Fri Dec 17 2010 Diego Elio Pettenò <flameeyes@hosting.flameeyes.eu> - 1.4-3
c7061c
- Fix local linking and RPATH.
c7061c
c7061c
* Thu Jun 10 2010 David Howells <dhowells@redhat.com> - 1.4-2
c7061c
- Fix prototypes in manual pages (some char* should be void*).
c7061c
- Rename the keyctl_security.3 manpage to keyctl_get_security.3.
c7061c
c7061c
* Fri Mar 19 2010 David Howells <dhowells@redhat.com> - 1.4-1
c7061c
- Fix the library naming wrt the version.
c7061c
- Move the package to version to 1.4.
c7061c
c7061c
* Fri Mar 19 2010 David Howells <dhowells@redhat.com> - 1.3-3
c7061c
- Fix spelling mistakes in manpages.
c7061c
- Add an index manpage for all the keyctl functions.
c7061c
c7061c
* Thu Mar 11 2010 David Howells <dhowells@redhat.com> - 1.3-2
c7061c
- Fix rpmlint warnings.
c7061c
c7061c
* Fri Feb 26 2010 David Howells <dhowells@redhat.com> - 1.3-1
c7061c
- Fix compiler warnings in request-key.
c7061c
- Expose the kernel function to get a key's security context.
c7061c
- Expose the kernel function to set a processes keyring onto its parent.
c7061c
- Move libkeyutils library version to 1.3.
c7061c
c7061c
* Tue Aug 22 2006 David Howells <dhowells@redhat.com> - 1.2-1
c7061c
- Remove syscall manual pages (section 2) to man-pages package [BZ 203582]
c7061c
- Don't write to serial port in debugging script
c7061c
c7061c
* Mon Jun 5 2006 David Howells <dhowells@redhat.com> - 1.1-4
c7061c
- Call ldconfig during (un)installation.
c7061c
c7061c
* Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-3
c7061c
- Don't include the release number in the shared library filename
c7061c
- Don't build static library
c7061c
c7061c
* Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-2
c7061c
- More bug fixes from Fedora reviewer.
c7061c
c7061c
* Thu May 4 2006 David Howells <dhowells@redhat.com> - 1.1-1
c7061c
- Fix rpmlint errors
c7061c
c7061c
* Mon Dec 5 2005 David Howells <dhowells@redhat.com> - 1.0-2
c7061c
- Add build dependency on glibc-kernheaders with key management syscall numbers
c7061c
c7061c
* Tue Nov 29 2005 David Howells <dhowells@redhat.com> - 1.0-1
c7061c
- Add data pipe-in facility for keyctl request2
c7061c
c7061c
* Mon Nov 28 2005 David Howells <dhowells@redhat.com> - 1.0-1
c7061c
- Rename library and header file "keyutil" -> "keyutils" for consistency
c7061c
- Fix shared library version naming to same way as glibc.
c7061c
- Add versioning for shared library symbols
c7061c
- Create new keyutils-libs package and install library and main symlink there
c7061c
- Install base library symlink in /usr/lib and place in devel package
c7061c
- Added a keyutils archive library
c7061c
- Shorten displayed key permissions list to just those we actually have
c7061c
c7061c
* Thu Nov 24 2005 David Howells <dhowells@redhat.com> - 0.3-4
c7061c
- Add data pipe-in facilities for keyctl add, update and instantiate
c7061c
c7061c
* Fri Nov 18 2005 David Howells <dhowells@redhat.com> - 0.3-3
c7061c
- Added stdint.h inclusion in keyutils.h
c7061c
- Made request-key.c use request_key() rather than keyctl_search()
c7061c
- Added piping facility to request-key
c7061c
c7061c
* Thu Nov 17 2005 David Howells <dhowells@redhat.com> - 0.3-2
c7061c
- Added timeout keyctl option
c7061c
- request_key auth keys must now be assumed
c7061c
- Fix keyctl argument ordering for debug negate line in request-key.conf
c7061c
c7061c
* Thu Jul 28 2005 David Howells <dhowells@redhat.com> - 0.3-1
c7061c
- Must invoke initialisation from perror() override in libkeyutils
c7061c
- Minor UI changes
c7061c
c7061c
* Wed Jul 20 2005 David Howells <dhowells@redhat.com> - 0.2-2
c7061c
- Bump version to permit building in main repositories.
c7061c
c7061c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.2-1
c7061c
- Don't attempt to define the error codes in the header file.
c7061c
- Pass the release ID through to the makefile to affect the shared library name.
c7061c
c7061c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-3
c7061c
- Build in the perror() override to get the key error strings displayed.
c7061c
c7061c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-2
c7061c
- Need a defattr directive after each files directive.
c7061c
c7061c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-1
c7061c
- Package creation.