Blame SPECS/p11-kit.spec

1be8c9
Name:           p11-kit
1be8c9
Version:        0.23.5
1be8c9
Release:        3%{?dist}
1be8c9
Summary:        Library for loading and sharing PKCS#11 modules
1be8c9
1be8c9
License:        BSD
1be8c9
URL:            http://p11-glue.freedesktop.org/p11-kit.html
1be8c9
Source0:        http://p11-glue.freedesktop.org/releases/p11-kit-%{version}.tar.gz
1be8c9
Source1:        trust-extract-compat
1be8c9
Patch0:		p11-kit-modifiable.patch
1be8c9
Patch1:		p11-kit-strerror.patch
1be8c9
Patch2:		p11-kit-oaep.patch
1be8c9
Patch3:		p11-kit-doc.patch
1be8c9
1be8c9
BuildRequires:  libtasn1-devel >= 2.3
1be8c9
BuildRequires:  nss-softokn-freebl
1be8c9
BuildRequires:	libffi-devel
1be8c9
BuildRequires:	gtk-doc
1be8c9
1be8c9
%description
1be8c9
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
1be8c9
as a standard configuration setup for installing PKCS#11 modules in
1be8c9
such a way that they're discoverable.
1be8c9
1be8c9
%package devel
1be8c9
Summary:        Development files for %{name}
1be8c9
Requires:       %{name}%{?_isa} = %{version}-%{release}
1be8c9
1be8c9
%description devel
1be8c9
The %{name}-devel package contains libraries and header files for
1be8c9
developing applications that use %{name}.
1be8c9
1be8c9
%package doc
1be8c9
Summary:        Documentation files for %{name}
1be8c9
BuildArch:	noarch
1be8c9
1be8c9
%description doc
1be8c9
The %{name}-doc package contains additional documentation for p11-kit
1be8c9
and developing applications to take advantage of it.
1be8c9
1be8c9
%package trust
1be8c9
Summary:        System trust module from %{name}
1be8c9
Requires:       %{name}%{?_isa} = %{version}-%{release}
1be8c9
Requires(post):   %{_sbindir}/update-alternatives
1be8c9
Requires(postun): %{_sbindir}/update-alternatives
1be8c9
Conflicts:        nss < 3.14.3-9
1be8c9
1be8c9
%description trust
1be8c9
The %{name}-trust package contains a system trust PKCS#11 module which
1be8c9
contains certificate anchors and black lists.
1be8c9
1be8c9
1be8c9
# solution taken from icedtea-web.spec
1be8c9
%define multilib_arches ppc64 sparc64 x86_64 s390x
1be8c9
%ifarch %{multilib_arches}
1be8c9
%define alt_ckbi  libnssckbi.so.%{_arch}
1be8c9
%else
1be8c9
%define alt_ckbi  libnssckbi.so
1be8c9
%endif
1be8c9
1be8c9
1be8c9
%prep
1be8c9
%autosetup -p1
1be8c9
1be8c9
%build
1be8c9
# These paths are the source paths that  come from the plan here:
1be8c9
# https://fedoraproject.org/wiki/Features/SharedSystemCertificates:SubTasks
1be8c9
%configure --disable-static --enable-doc --with-trust-paths=%{_sysconfdir}/pki/ca-trust/source:%{_datadir}/pki/ca-trust-source --with-hash-impl=freebl --disable-silent-rules
1be8c9
make %{?_smp_mflags} V=1
1be8c9
1be8c9
%install
1be8c9
make install DESTDIR=$RPM_BUILD_ROOT
1be8c9
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/modules
1be8c9
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
1be8c9
rm -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/*.la
1be8c9
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/p11-kit/
1be8c9
# Install the example conf with %%doc instead
1be8c9
rm $RPM_BUILD_ROOT%{_sysconfdir}/pkcs11/pkcs11.conf.example
1be8c9
# We don't support PKCS#11 forwarding in RHEL-7 yet
1be8c9
rm -f $RPM_BUILD_ROOT%{_libexecdir}/p11-kit/p11-kit-server
1be8c9
rm -f $RPM_BUILD_ROOT%{_libdir}/pkcs11/p11-kit-client.so
1be8c9
1be8c9
%check
1be8c9
make check
1be8c9
1be8c9
1be8c9
%post -p /sbin/ldconfig
1be8c9
1be8c9
%post trust
1be8c9
%{_sbindir}/update-alternatives --install %{_libdir}/libnssckbi.so \
1be8c9
	%{alt_ckbi} %{_libdir}/pkcs11/p11-kit-trust.so 30
1be8c9
1be8c9
# Fix bad links from earlier p11-kit packages which didn't include s390x
1be8c9
%posttrans trust
1be8c9
%ifarch s390x
1be8c9
if %{_sbindir}/update-alternatives --display libnssckbi.so | grep -q lib64; then
1be8c9
    %{_sbindir}/update-alternatives --remove libnssckbi.so %{_libdir}/pkcs11/p11-kit-trust.so
1be8c9
    if test -e /usr/lib/nss/libnssckbi.so; then
1be8c9
        %{_sbindir}/update-alternatives --install /usr/lib/libnssckbi.so libnssckbi.so /usr/lib/nss/libnssckbi.so 10
1be8c9
    fi
1be8c9
fi
1be8c9
%endif
1be8c9
1be8c9
%postun -p /sbin/ldconfig
1be8c9
1be8c9
%postun trust
1be8c9
if [ $1 -eq 0 ] ; then
1be8c9
	# package removal
1be8c9
	%{_sbindir}/update-alternatives --remove %{alt_ckbi} %{_libdir}/pkcs11/p11-kit-trust.so
1be8c9
fi
1be8c9
1be8c9
1be8c9
%files
1be8c9
%doc AUTHORS COPYING NEWS README
1be8c9
%doc p11-kit/pkcs11.conf.example
1be8c9
%dir %{_sysconfdir}/pkcs11
1be8c9
%dir %{_sysconfdir}/pkcs11/modules
1be8c9
%dir %{_datadir}/p11-kit
1be8c9
%dir %{_datadir}/p11-kit/modules
1be8c9
%dir %{_libexecdir}/p11-kit
1be8c9
%{_bindir}/p11-kit
1be8c9
%{_libdir}/libp11-kit.so.*
1be8c9
%{_libdir}/p11-kit-proxy.so
1be8c9
%{_libexecdir}/p11-kit/p11-kit-remote
1be8c9
%{_mandir}/man8/p11-kit.8.gz
1be8c9
%{_mandir}/man5/pkcs11.conf.5.gz
1be8c9
1be8c9
%files devel
1be8c9
%{_includedir}/p11-kit-1/
1be8c9
%{_libdir}/libp11-kit.so
1be8c9
%{_libdir}/pkgconfig/p11-kit-1.pc
1be8c9
1be8c9
%files doc
1be8c9
%doc %{_datadir}/gtk-doc/
1be8c9
1be8c9
%files trust
1be8c9
%{_bindir}/trust
1be8c9
%{_mandir}/man1/trust.1.gz
1be8c9
%{_libdir}/pkcs11/p11-kit-trust.so
1be8c9
%{_datadir}/p11-kit/modules/p11-kit-trust.module
1be8c9
%{_libexecdir}/p11-kit/trust-extract-compat
1be8c9
1be8c9
1be8c9
%changelog
1be8c9
* Mon Jun 12 2017 Daiki Ueno <dueno@redhat.com> - 0.23.5-3
1be8c9
- Avoid reference to thread-unsafe strerror rhbz#1378947
1be8c9
- Fix PKCS#11 OAEP interface rhbz#1191209
1be8c9
- Update documentation to follow RFC7512 rhbz#1165977
1be8c9
1be8c9
* Thu May 18 2017 Daiki Ueno <dueno@redhat.com> - 0.23.5-2
1be8c9
- Make "trust anchor --remove" work again
1be8c9
1be8c9
* Mon Mar  6 2017 Daiki Ueno <dueno@redhat.com> - 0.23.5-1
1be8c9
- Rebase to upstream version 0.23.5
1be8c9
1be8c9
* Wed Feb 22 2017 Daiki Ueno <dueno@redhat.com> - 0.23.4-1
1be8c9
- Rebase to upstream version 0.23.4
1be8c9
1be8c9
* Thu Jan 08 2015 Stef Walter <stefw@redhat.com> - 0.20.7-3
1be8c9
- Fix incorrect alternative links for s390 and s390x rhbz#1174178
1be8c9
1be8c9
* Sun Oct 05 2014 Stef Walter <stefw@redhat.com> - 0.20.7-2
1be8c9
- Fix deadlock related to forking and pthread_atfork rhbz#1148774
1be8c9
1be8c9
* Thu Sep 18 2014 Stef Walter <stefw@redhat.com> - 0.20.7-1
1be8c9
- Update to upstream stable 0.20.7 release
1be8c9
- Expose pkcs11x.h header and defines for attached extensions rhbz#1142305
1be8c9
1be8c9
* Tue Sep 09 2014 Stef Walter <stefw@redhat.com> - 0.20.6-1
1be8c9
- Update to upstream stable 0.20.6 release
1be8c9
- Respect critical = no in p11-kit-proxy.so rhbz#1128615
1be8c9
1be8c9
* Fri Sep 05 2014 Stef Walter <stefw@redhat.com> - 0.20.5-1
1be8c9
- Update to upstream version 0.20.5
1be8c9
- Fixes several issues highlighted at rhbz#1128218
1be8c9
1be8c9
* Thu Aug 07 2014 Stef Walter <stefw@redhat.com> - 0.20.4-1
1be8c9
- Rebase to upstream version 0.20.x (#1122528)
1be8c9
1be8c9
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.18.7-4
1be8c9
- Mass rebuild 2014-01-24
1be8c9
1be8c9
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.18.7-3
1be8c9
- Mass rebuild 2013-12-27
1be8c9
1be8c9
* Mon Nov 04 2013 Stef Walter <stefw@redhat.com> - 0.18.7-2
1be8c9
- Move devel docs into subpackage due to gtk-doc multilib incompatibility (#983176)
1be8c9
1be8c9
* Thu Oct 10 2013 Stef Walter <stefw@redhat.com> - 0.18.7-1
1be8c9
- Update to new upstream point release for RHEL bug fixes
1be8c9
1be8c9
* Thu Jul 18 2013 Stef Walter <stefw@redhat.com> - 0.18.5-1
1be8c9
- Update to new upstream point release
1be8c9
- Use freebl for hash algorithms
1be8c9
- Don't load configs in home dir when setuid or setgid
1be8c9
- Use $TMPDIR instead of $TEMP while testing
1be8c9
- Open files and fds with O_CLOEXEC
1be8c9
- Abort initialization if critical module fails to load
1be8c9
- Don't use thread-unsafe: strerror, getpwuid
1be8c9
- Fix p11_kit_space_strlen() result when empty string
1be8c9
1be8c9
* Tue Jun 25 2013 Stef Walter <stefw@redhat.com> - 0.18.4-1
1be8c9
- Fix running the extract-trust external command
1be8c9
1be8c9
* Wed Jun 05 2013 Stef Walter <stefw@redhat.com> - 0.18.3-1
1be8c9
- Update to new upstream stable release
1be8c9
- Fix intermittent firefox cert validation issues (#960230)
1be8c9
- Include the manual pages in the package
1be8c9
1be8c9
* Tue May 14 2013 Stef Walter <stefw@redhat.com> - 0.18.2-1
1be8c9
- Update to new upstream stable release
1be8c9
- Reduce the libtasn1 dependency minimum version
1be8c9
1be8c9
* Thu May 02 2013 Stef Walter <stefw@redhat.com> - 0.18.1-1
1be8c9
- Update to new upstream stable release
1be8c9
- 'p11-kit extract-trust' lives in libdir
1be8c9
1be8c9
* Thu Apr 04 2013 Stef Walter <stefw@redhat.com> - 0.18.0-1
1be8c9
- Update to new upstream stable release
1be8c9
- Various logging tweaks (#928914, #928750)
1be8c9
- Make the 'p11-kit extract-trust' explicitly reject
1be8c9
  additional arguments
1be8c9
1be8c9
* Fri Mar 29 2013 Stef Walter <stefw@redhat.com> - 0.17.5-2
1be8c9
- Fix problem with empathy connecting to Google Talk (#928913)
1be8c9
1be8c9
* Thu Mar 28 2013 Stef Walter <stefw@redhat.com> - 0.17.5-1
1be8c9
- Make 'p11-kit extract-trust' call update-ca-trust
1be8c9
- Work around 32-bit oveflow of certificate dates
1be8c9
- Build fixes
1be8c9
1be8c9
* Tue Mar 26 2013 Stef Walter <stefw@redhat.com> - 0.17.4-2
1be8c9
- Pull in patch from upstream to fix build on ppc (#927394)
1be8c9
1be8c9
* Wed Mar 20 2013 Stef Walter <stefw@redhat.com> - 0.17.4-1
1be8c9
- Update to upstream version 0.17.4
1be8c9
1be8c9
* Mon Mar 18 2013 Stef Walter <stefw@redhat.com> - 0.17.3-1
1be8c9
- Update to upstream version 0.17.3
1be8c9
- Put the trust input paths in the right order
1be8c9
1be8c9
* Tue Mar 12 2013 Stef Walter <stefw@redhat.com> - 0.16.4-1
1be8c9
- Update to upstream version 0.16.4
1be8c9
1be8c9
* Fri Mar 08 2013 Stef Walter <stefw@redhat.com> - 0.16.3-1
1be8c9
- Update to upstream version 0.16.3
1be8c9
- Split out system trust module into its own package.
1be8c9
- p11-kit-trust provides an alternative to an nss module
1be8c9
1be8c9
* Tue Mar 05 2013 Stef Walter <stefw@redhat.com> - 0.16.1-1
1be8c9
- Update to upstream version 0.16.1
1be8c9
- Setup source directories as appropriate for Shared System Certificates feature
1be8c9
1be8c9
* Tue Mar 05 2013 Stef Walter <stefw@redhat.com> - 0.16.0-1
1be8c9
- Update to upstream version 0.16.0
1be8c9
1be8c9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
1be8c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1be8c9
1be8c9
* Mon Sep 17 2012 Kalev Lember <kalevlember@gmail.com> - 0.14-1
1be8c9
- Update to 0.14
1be8c9
1be8c9
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-2
1be8c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1be8c9
1be8c9
* Mon Jul 16 2012 Kalev Lember <kalevlember@gmail.com> - 0.13-1
1be8c9
- Update to 0.13
1be8c9
1be8c9
* Tue Mar 27 2012 Kalev Lember <kalevlember@gmail.com> - 0.12-1
1be8c9
- Update to 0.12
1be8c9
- Run self tests in %%check
1be8c9
1be8c9
* Sat Feb 11 2012 Kalev Lember <kalevlember@gmail.com> - 0.11-1
1be8c9
- Update to 0.11
1be8c9
1be8c9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
1be8c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1be8c9
1be8c9
* Tue Dec 20 2011 Matthias Clasen <mclasen@redhat.com> - 0.9-1
1be8c9
- Update to 0.9
1be8c9
1be8c9
* Wed Oct 26 2011 Kalev Lember <kalevlember@gmail.com> - 0.8-1
1be8c9
- Update to 0.8
1be8c9
1be8c9
* Mon Sep 19 2011 Matthias Clasen <mclasen@redhat.com> - 0.6-1
1be8c9
- Update to 0.6
1be8c9
1be8c9
* Sun Sep 04 2011 Kalev Lember <kalevlember@gmail.com> - 0.5-1
1be8c9
- Update to 0.5
1be8c9
1be8c9
* Sun Aug 21 2011 Kalev Lember <kalevlember@gmail.com> - 0.4-1
1be8c9
- Update to 0.4
1be8c9
- Install the example config file to documentation directory
1be8c9
1be8c9
* Wed Aug 17 2011 Kalev Lember <kalevlember@gmail.com> - 0.3-2
1be8c9
- Tighten -devel subpackage deps (#725905)
1be8c9
1be8c9
* Fri Jul 29 2011 Kalev Lember <kalevlember@gmail.com> - 0.3-1
1be8c9
- Update to 0.3
1be8c9
- Upstream rewrote the ASL 2.0 bits, which makes the whole package
1be8c9
  BSD-licensed
1be8c9
1be8c9
* Tue Jul 12 2011 Kalev Lember <kalevlember@gmail.com> - 0.2-1
1be8c9
- Initial RPM release