2011-08-17 15:48:31 +00:00
|
|
|
Name: p11-kit
|
2013-03-20 21:26:19 +00:00
|
|
|
Version: 0.17.4
|
2013-03-05 09:09:59 +00:00
|
|
|
Release: 1%{?dist}
|
2011-08-17 15:48:31 +00:00
|
|
|
Summary: Library for loading and sharing PKCS#11 modules
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
URL: http://p11-glue.freedesktop.org/p11-kit.html
|
|
|
|
Source0: http://p11-glue.freedesktop.org/releases/p11-kit-%{version}.tar.gz
|
2013-03-05 09:09:59 +00:00
|
|
|
BuildRequires: libtasn1-devel >= 2.14
|
2011-08-17 15:48:31 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
|
|
|
|
as a standard configuration setup for installing PKCS#11 modules in
|
|
|
|
such a way that they're discoverable.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2011-08-17 15:49:49 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2011-08-17 15:48:31 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
2013-03-08 12:01:51 +00:00
|
|
|
%package trust
|
|
|
|
Summary: System trust module from %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
Conflicts: nss < 3.14.3-9
|
|
|
|
|
|
|
|
%description trust
|
|
|
|
The %{name}-trust package contains a system trust PKCS#11 module which
|
|
|
|
contains certificate anchors and black lists.
|
|
|
|
|
|
|
|
|
|
|
|
# solution taken from icedtea-web.spec
|
|
|
|
%define multilib_arches ppc64 sparc64 x86_64
|
|
|
|
%ifarch %{multilib_arches}
|
|
|
|
%define alt_ckbi libnssckbi.so.%{_arch}
|
|
|
|
%else
|
|
|
|
%define alt_ckbi libnssckbi.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2011-08-17 15:48:31 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2013-03-07 21:59:16 +00:00
|
|
|
# These paths are the source paths that come from the plan here:
|
|
|
|
# https://fedoraproject.org/wiki/Features/SharedSystemCertificates:SubTasks
|
2013-03-19 18:31:50 +00:00
|
|
|
%configure --disable-static --with-trust-paths=%{_sysconfdir}/pki/ca-trust/source:%{_datadir}/pki/ca-trust-source
|
2011-08-17 15:48:31 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules
|
2013-03-05 09:09:59 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la
|
2011-08-21 06:31:43 +00:00
|
|
|
# Install the example conf with %%doc instead
|
|
|
|
rm $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/pkcs11.conf.example
|
2011-08-17 15:48:31 +00:00
|
|
|
|
|
|
|
|
2012-03-26 22:37:12 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
2011-08-17 15:48:31 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
2013-03-08 12:01:51 +00:00
|
|
|
%post trust
|
|
|
|
%{_sbindir}/update-alternatives --install %{_libdir}/libnssckbi.so \
|
|
|
|
%{alt_ckbi} %{_libdir}/pkcs11/p11-kit-trust.so 30
|
|
|
|
|
2011-08-17 15:48:31 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2013-03-08 12:01:51 +00:00
|
|
|
%postun trust
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
# package removal
|
|
|
|
%{_sbindir}/update-alternatives --remove %{alt_ckbi} %{_libdir}/pkcs11/p11-kit-trust.so
|
|
|
|
fi
|
|
|
|
|
2011-08-17 15:48:31 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS COPYING NEWS README
|
2011-08-21 06:31:43 +00:00
|
|
|
%doc p11-kit/pkcs11.conf.example
|
2011-08-17 15:48:31 +00:00
|
|
|
%dir %{_sysconfdir}/pkcs11
|
|
|
|
%dir %{_sysconfdir}/pkcs11/modules
|
2013-03-05 09:09:59 +00:00
|
|
|
%dir %{_datadir}/p11-kit
|
|
|
|
%dir %{_datadir}/p11-kit/modules
|
2011-08-17 15:48:31 +00:00
|
|
|
%{_bindir}/p11-kit
|
|
|
|
%{_libdir}/libp11-kit.so.*
|
|
|
|
%{_libdir}/p11-kit-proxy.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/p11-kit-1/
|
|
|
|
%{_libdir}/libp11-kit.so
|
|
|
|
%{_libdir}/pkgconfig/p11-kit-1.pc
|
|
|
|
%doc %{_datadir}/gtk-doc/
|
|
|
|
|
2013-03-08 12:01:51 +00:00
|
|
|
%files trust
|
|
|
|
%{_libdir}/pkcs11/p11-kit-trust.so
|
|
|
|
%{_datadir}/p11-kit/modules/p11-kit-trust.module
|
|
|
|
%{_datadir}/p11-kit/p11-kit-extract-trust
|
|
|
|
|
2011-08-17 15:48:31 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-03-20 21:26:19 +00:00
|
|
|
* Wed Mar 20 2013 Stef Walter <stefw@redhat.com> - 0.17.3-1
|
|
|
|
- Update to upstream version 0.17.4
|
|
|
|
|
2013-03-19 18:31:50 +00:00
|
|
|
* Mon Mar 18 2013 Stef Walter <stefw@redhat.com> - 0.17.3-1
|
|
|
|
- Update to upstream version 0.17.3
|
|
|
|
- Put the trust input paths in the right order
|
|
|
|
|
2013-03-12 09:03:13 +00:00
|
|
|
* Tue Mar 12 2013 Stef Walter <stefw@redhat.com> - 0.16.4-1
|
|
|
|
- Update to upstream version 0.16.4
|
|
|
|
|
2013-03-08 12:01:51 +00:00
|
|
|
* Fri Mar 08 2013 Stef Walter <stefw@redhat.com> - 0.16.3-1
|
|
|
|
- Update to upstream version 0.16.3
|
|
|
|
- Split out system trust module into its own package.
|
|
|
|
- p11-kit-trust provides an alternative to an nss module
|
|
|
|
|
2013-03-07 21:59:16 +00:00
|
|
|
* Tue Mar 05 2013 Stef Walter <stefw@redhat.com> - 0.16.1-1
|
|
|
|
- Update to upstream version 0.16.1
|
|
|
|
- Setup source directories as appropriate for Shared System Certificates feature
|
|
|
|
|
2013-03-05 09:09:59 +00:00
|
|
|
* Tue Mar 05 2013 Stef Walter <stefw@redhat.com> - 0.16.0-1
|
|
|
|
- Update to upstream version 0.16.0
|
|
|
|
|
2013-02-14 09:40:46 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-09-17 14:10:15 +00:00
|
|
|
* Mon Sep 17 2012 Kalev Lember <kalevlember@gmail.com> - 0.14-1
|
|
|
|
- Update to 0.14
|
|
|
|
|
2012-07-20 07:40:31 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-16 13:50:36 +00:00
|
|
|
* Mon Jul 16 2012 Kalev Lember <kalevlember@gmail.com> - 0.13-1
|
|
|
|
- Update to 0.13
|
|
|
|
|
2012-03-26 22:35:15 +00:00
|
|
|
* Tue Mar 27 2012 Kalev Lember <kalevlember@gmail.com> - 0.12-1
|
|
|
|
- Update to 0.12
|
2012-03-26 22:37:12 +00:00
|
|
|
- Run self tests in %%check
|
2012-03-26 22:35:15 +00:00
|
|
|
|
2012-02-11 11:26:46 +00:00
|
|
|
* Sat Feb 11 2012 Kalev Lember <kalevlember@gmail.com> - 0.11-1
|
|
|
|
- Update to 0.11
|
|
|
|
|
2012-01-13 11:52:01 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-21 00:59:27 +00:00
|
|
|
* Tue Dec 20 2011 Matthias Clasen <mclasen@redhat.com> - 0.9-1
|
|
|
|
- Update to 0.9
|
|
|
|
|
2011-10-26 14:05:31 +00:00
|
|
|
* Wed Oct 26 2011 Kalev Lember <kalevlember@gmail.com> - 0.8-1
|
|
|
|
- Update to 0.8
|
|
|
|
|
2011-09-20 03:42:19 +00:00
|
|
|
* Mon Sep 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.6-1
|
|
|
|
- Update to 0.6
|
|
|
|
|
2011-09-04 14:51:33 +00:00
|
|
|
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 0.5-1
|
|
|
|
- Update to 0.5
|
|
|
|
|
2011-08-21 06:31:43 +00:00
|
|
|
* Sun Aug 21 2011 Kalev Lember <kalevlember@gmail.com> - 0.4-1
|
|
|
|
- Update to 0.4
|
|
|
|
- Install the example config file to documentation directory
|
|
|
|
|
2011-08-17 15:49:49 +00:00
|
|
|
* Wed Aug 17 2011 Kalev Lember <kalevlember@gmail.com> - 0.3-2
|
|
|
|
- Tighten -devel subpackage deps (#725905)
|
|
|
|
|
2011-08-17 15:48:31 +00:00
|
|
|
* Fri Jul 29 2011 Kalev Lember <kalevlember@gmail.com> - 0.3-1
|
|
|
|
- Update to 0.3
|
|
|
|
- Upstream rewrote the ASL 2.0 bits, which makes the whole package
|
|
|
|
BSD-licensed
|
|
|
|
|
|
|
|
* Tue Jul 12 2011 Kalev Lember <kalevlember@gmail.com> - 0.2-1
|
|
|
|
- Initial RPM release
|