Blame SPECS/keyutils.spec

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