Blame SPECS/keyutils.spec

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