Blame SPECS/keyutils.spec

91783c
%define vermajor 1
91783c
%define verminor 5.10
91783c
%define version %{vermajor}.%{verminor}
91783c
%define libapivermajor 1
91783c
%define libapiversion %{libapivermajor}.6
91783c
91783c
# % define buildid .local
91783c
91783c
Summary: Linux Key Management Utilities
91783c
Name: keyutils
91783c
Version: %{version}
91783c
Release: 6%{?buildid}%{?dist}
91783c
License: GPLv2+ and LGPLv2+
91783c
Group: System Environment/Base
91783c
ExclusiveOS: Linux
91783c
Url: http://people.redhat.com/~dhowells/keyutils/
91783c
91783c
Source0: http://people.redhat.com/~dhowells/keyutils/keyutils-%{version}.tar.bz2
91783c
91783c
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
91783c
BuildRequires: glibc-kernheaders >= 2.4-9.1.92
91783c
Requires: keyutils-libs == %{version}-%{release}
91783c
91783c
%description
91783c
Utilities to control the kernel key management facility and to provide
91783c
a mechanism by which the kernel call back to user space to get a key
91783c
instantiated.
91783c
91783c
%package libs
91783c
Summary: Key utilities library
91783c
Group: System Environment/Base
91783c
91783c
%description libs
91783c
This package provides a wrapper library for the key management facility system
91783c
calls.
91783c
91783c
%package libs-devel
91783c
Summary: Development package for building Linux key management utilities
91783c
Group: System Environment/Base
91783c
Requires: keyutils-libs == %{version}-%{release}
91783c
91783c
%description libs-devel
91783c
This package provides headers and libraries for building key utilities.
91783c
91783c
%prep
91783c
%setup -q
91783c
91783c
%define datadir %{_datarootdir}/keyutils
91783c
91783c
%build
91783c
make \
91783c
	NO_ARLIB=1 \
91783c
	ETCDIR=%{_sysconfdir} \
91783c
	LIBDIR=%{_libdir} \
91783c
	USRLIBDIR=%{_libdir} \
91783c
	BINDIR=%{_bindir} \
91783c
	SBINDIR=%{_sbindir} \
91783c
	MANDIR=%{_mandir} \
91783c
	INCLUDEDIR=%{_includedir} \
91783c
	SHAREDIR=%{datadir} \
91783c
	RELEASE=.%{release} \
91783c
	NO_GLIBC_KEYERR=1 \
91783c
	CFLAGS="-Wall $RPM_OPT_FLAGS" \
91783c
	LDFLAGS="%{?__global_ldflags}"
91783c
91783c
%install
91783c
make \
91783c
	NO_ARLIB=1 \
91783c
	DESTDIR=$RPM_BUILD_ROOT \
91783c
	ETCDIR=%{_sysconfdir} \
91783c
	LIBDIR=%{_libdir} \
91783c
	USRLIBDIR=%{_libdir} \
91783c
	BINDIR=%{_bindir} \
91783c
	SBINDIR=%{_sbindir} \
91783c
	MANDIR=%{_mandir} \
91783c
	INCLUDEDIR=%{_includedir} \
91783c
	SHAREDIR=%{datadir} \
91783c
	install
91783c
91783c
%ldconfig_scriptlets libs
91783c
91783c
%files
91783c
%doc README
91783c
%license LICENCE.GPL
91783c
%{_sbindir}/*
91783c
%{_bindir}/*
91783c
%{datadir}
91783c
%{_mandir}/man1/*
91783c
%{_mandir}/man5/*
91783c
%{_mandir}/man8/*
91783c
%config(noreplace) %{_sysconfdir}/*
91783c
91783c
%files libs
91783c
%license LICENCE.LGPL
91783c
%{_mandir}/man7/*
91783c
%{_libdir}/libkeyutils.so.%{libapiversion}
91783c
%{_libdir}/libkeyutils.so.%{libapivermajor}
91783c
91783c
%files libs-devel
91783c
%{_libdir}/libkeyutils.so
91783c
%{_includedir}/*
91783c
%{_mandir}/man3/*
91783c
91783c
%changelog
91783c
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.10-6
91783c
- Escape macros in %%changelog
91783c
91783c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.10-5
91783c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
91783c
91783c
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.10-4
91783c
- Switch to %%ldconfig_scriptlets
91783c
91783c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.10-3
91783c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
91783c
91783c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.10-2
91783c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
91783c
91783c
* Wed Mar 15 2017 David Howells <dhowells@redhat.com> - 1.5.10-1
91783c
- Include sys/types.h in keyutils.h.
91783c
- The dns resolver needs limits.h.
91783c
- Overhaul of all manual pages.
91783c
- Some manual pages moved to Linux man-pages project.
91783c
- Add Diffie-Helman keyctl function.
91783c
91783c
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 1.5.9-7
91783c
- Pass ldflags into the build so hardening works
91783c
91783c
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 1.5.9-3
91783c
- Fix license handling
91783c
91783c
* Fri Feb 21 2014 David Howells <dhowells@redhat.com> - 1.5.9-1
91783c
- Add manpages for get_persistent.
91783c
- Fix memory leaks in keyctl_describe/read/get_security_alloc().
91783c
- Use keyctl_describe_alloc in dump_key_tree_aux rather than open coding it.
91783c
- Exit rather than returning from act_xxx() functions.
91783c
- Fix memory leak in dump_key_tree_aux.
91783c
- Only get the groups list if we need it.
91783c
- Don't trust sscanf's %%n argument.
91783c
- Use the correct path macros in the specfile.
91783c
- Avoid use realloc when the memory has no content.
91783c
- Fix a bunch of issues in key.dns_resolver.
91783c
- Fix command table searching in keyctl utility.
91783c
- Fix a typo in the permissions mask constants.
91783c
- Improve the keyctl_read manpage.
91783c
- Add man7 pages describing various keyrings concepts.
91783c
91783c
* Fri Oct 4 2013 David Howells <dhowells@redhat.com> - 1.5.8-1
91783c
- New lib symbols should go in a new library minor version.
91783c
91783c
* Wed Oct 2 2013 David Howells <dhowells@redhat.com> - 1.5.7-1
91783c
- Provide a utility function to find a key by type and name.
91783c
- Allow keyctl commands to take a type+name arg instead of a key-id arg.
91783c
- Add per-UID get_persistent keyring function.
91783c
91783c
* Thu Aug 29 2013 David Howells <dhowells@redhat.com> - 1.5.6-1
91783c
- Fix the request-key.conf.5 manpage.
91783c
- Fix the max depth of key tree dump (keyctl show).
91783c
- The input buffer size for keyctl padd and pinstantiate should be larger.
91783c
- Add keyctl_invalidate.3 manpage.
91783c
91783c
* Wed Nov 30 2011 David Howells <dhowells@redhat.com> - 1.5.5-1
91783c
- Fix a Makefile error.
91783c
91783c
* Wed Nov 30 2011 David Howells <dhowells@redhat.com> - 1.5.4-1
91783c
- Fix the keyctl padd command and similar to handle binary input.
91783c
- Make keyctl show able to take a keyring to dump.
91783c
- Make keyctl show able to take a flag to request hex key IDs.
91783c
- Make keyctl show print the real ID of the root keyring.
91783c
91783c
* Tue Nov 15 2011 David Howells <dhowells@redhat.com>
91783c
- Allow /sbin/request-key to have multiple config files.
91783c
91783c
* Wed Aug 31 2011 David Howells <dhowells@redhat.com>
91783c
- Adjust the manual page for 'keyctl unlink' to show keyring is optional.
91783c
- Add --version support for the keyutils version and build date.
91783c
91783c
* Thu Aug 11 2011 David Howells <dhowells@redhat.com> - 1.5.3-1
91783c
- Make the keyutils rpm depend on the same keyutils-libs rpm version.
91783c
91783c
* Tue Jul 26 2011 David Howells <dhowells@redhat.com> - 1.5.2-1
91783c
- Use correct format spec for printing pointer subtraction results.
91783c
91783c
* Tue Jul 19 2011 David Howells <dhowells@redhat.com> - 1.5.1-1
91783c
- Fix unread variables.
91783c
- Licence file update.
91783c
91783c
* Thu Mar 10 2011 David Howells <dhowells@redhat.com> - 1.5-1
91783c
- Disable RPATH setting in Makefile.
91783c
- Add -I. to build to get this keyutils.h.
91783c
- Make CFLAGS override on make command line work right.
91783c
- Make specfile UTF-8.
91783c
- Support KEYCTL_REJECT.
91783c
- Support KEYCTL_INSTANTIATE_IOV.
91783c
- Add AFSDB DNS lookup program from Wang Lei.
91783c
- Generalise DNS lookup program.
91783c
- Add recursive scan utility function.
91783c
- Add bad key reap command to keyctl.
91783c
- Add multi-unlink variant to keyctl unlink command.
91783c
- Add multi key purge command to keyctl.
91783c
- Handle multi-line commands in keyctl command table.
91783c
- Move the package to version to 1.5.
91783c
91783c
* Tue Mar 1 2011 David Howells <dhowells@redhat.com> - 1.4-4
91783c
- Make build guess at default libdirs and word size.
91783c
- Make program build depend on library in Makefile.
91783c
- Don't include $(DESTDIR) in MAN* macros.
91783c
- Remove NO_GLIBC_KEYSYS as it is obsolete.
91783c
- Have Makefile extract version info from specfile and version script.
91783c
- Provide RPM build rule in Makefile.
91783c
- Provide distclean rule in Makefile.
91783c
91783c
* Fri Dec 17 2010 Diego Elio Pettenò <flameeyes@hosting.flameeyes.eu> - 1.4-3
91783c
- Fix local linking and RPATH.
91783c
91783c
* Thu Jun 10 2010 David Howells <dhowells@redhat.com> - 1.4-2
91783c
- Fix prototypes in manual pages (some char* should be void*).
91783c
- Rename the keyctl_security.3 manpage to keyctl_get_security.3.
91783c
91783c
* Fri Mar 19 2010 David Howells <dhowells@redhat.com> - 1.4-1
91783c
- Fix the library naming wrt the version.
91783c
- Move the package to version to 1.4.
91783c
91783c
* Fri Mar 19 2010 David Howells <dhowells@redhat.com> - 1.3-3
91783c
- Fix spelling mistakes in manpages.
91783c
- Add an index manpage for all the keyctl functions.
91783c
91783c
* Thu Mar 11 2010 David Howells <dhowells@redhat.com> - 1.3-2
91783c
- Fix rpmlint warnings.
91783c
91783c
* Fri Feb 26 2010 David Howells <dhowells@redhat.com> - 1.3-1
91783c
- Fix compiler warnings in request-key.
91783c
- Expose the kernel function to get a key's security context.
91783c
- Expose the kernel function to set a processes keyring onto its parent.
91783c
- Move libkeyutils library version to 1.3.
91783c
91783c
* Tue Aug 22 2006 David Howells <dhowells@redhat.com> - 1.2-1
91783c
- Remove syscall manual pages (section 2) to man-pages package [BZ 203582]
91783c
- Don't write to serial port in debugging script
91783c
91783c
* Mon Jun 5 2006 David Howells <dhowells@redhat.com> - 1.1-4
91783c
- Call ldconfig during (un)installation.
91783c
91783c
* Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-3
91783c
- Don't include the release number in the shared library filename
91783c
- Don't build static library
91783c
91783c
* Fri May 5 2006 David Howells <dhowells@redhat.com> - 1.1-2
91783c
- More bug fixes from Fedora reviewer.
91783c
91783c
* Thu May 4 2006 David Howells <dhowells@redhat.com> - 1.1-1
91783c
- Fix rpmlint errors
91783c
91783c
* Mon Dec 5 2005 David Howells <dhowells@redhat.com> - 1.0-2
91783c
- Add build dependency on glibc-kernheaders with key management syscall numbers
91783c
91783c
* Tue Nov 29 2005 David Howells <dhowells@redhat.com> - 1.0-1
91783c
- Add data pipe-in facility for keyctl request2
91783c
91783c
* Mon Nov 28 2005 David Howells <dhowells@redhat.com> - 1.0-1
91783c
- Rename library and header file "keyutil" -> "keyutils" for consistency
91783c
- Fix shared library version naming to same way as glibc.
91783c
- Add versioning for shared library symbols
91783c
- Create new keyutils-libs package and install library and main symlink there
91783c
- Install base library symlink in /usr/lib and place in devel package
91783c
- Added a keyutils archive library
91783c
- Shorten displayed key permissions list to just those we actually have
91783c
91783c
* Thu Nov 24 2005 David Howells <dhowells@redhat.com> - 0.3-4
91783c
- Add data pipe-in facilities for keyctl add, update and instantiate
91783c
91783c
* Fri Nov 18 2005 David Howells <dhowells@redhat.com> - 0.3-3
91783c
- Added stdint.h inclusion in keyutils.h
91783c
- Made request-key.c use request_key() rather than keyctl_search()
91783c
- Added piping facility to request-key
91783c
91783c
* Thu Nov 17 2005 David Howells <dhowells@redhat.com> - 0.3-2
91783c
- Added timeout keyctl option
91783c
- request_key auth keys must now be assumed
91783c
- Fix keyctl argument ordering for debug negate line in request-key.conf
91783c
91783c
* Thu Jul 28 2005 David Howells <dhowells@redhat.com> - 0.3-1
91783c
- Must invoke initialisation from perror() override in libkeyutils
91783c
- Minor UI changes
91783c
91783c
* Wed Jul 20 2005 David Howells <dhowells@redhat.com> - 0.2-2
91783c
- Bump version to permit building in main repositories.
91783c
91783c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.2-1
91783c
- Don't attempt to define the error codes in the header file.
91783c
- Pass the release ID through to the makefile to affect the shared library name.
91783c
91783c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-3
91783c
- Build in the perror() override to get the key error strings displayed.
91783c
91783c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-2
91783c
- Need a defattr directive after each files directive.
91783c
91783c
* Tue Jul 12 2005 David Howells <dhowells@redhat.com> - 0.1-1
91783c
- Package creation.