Skip to content

Commit

Permalink
[packaging] Split libnssckbi to a separate package for easy replacement
Browse files Browse the repository at this point in the history
p11-kit implements NSS support by replacing this library with a binary
compatible version, which is easier to do if we can obsolete a
subpackage.
  • Loading branch information
John Brooks committed Nov 26, 2014
1 parent 965e684 commit e436907
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion nss.spec
Expand Up @@ -11,6 +11,7 @@ Group: System/Libraries
Requires: nspr >= %{nspr_version}
Requires: nss-softokn-freebl%{_isa} >= %{version}
Requires: nss-system-init
Requires: nss-ckbi
BuildRequires: nspr-devel >= %{nspr_version}
BuildRequires: sqlite-devel
BuildRequires: zlib-devel
Expand Down Expand Up @@ -44,6 +45,16 @@ server applications. Applications built with NSS can support SSL v2
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509
v3 certificates, and other security standards.

%package ckbi
Summary: CA trust library for Network Security Services
Group: System/Base
Requires: nss = %{version}-%{release}

%description ckbi
The nss-ckbi package provides CA trust store functionality to NSS.
This package is separated to allow replacing this library with
another compatible implementation.

%package softokn-freebl
Summary: Freebl library for the Network Security Services
Group: System/Base
Expand Down Expand Up @@ -275,7 +286,6 @@ done
%{_libdir}/libsmime3.so
%{_libdir}/libsoftokn3.so
%{_libdir}/libsoftokn3.chk
%{_libdir}/libnssckbi.so
%{_libdir}/libnsspem.so
%{unsupported_tools_directory}/shlibsign
%dir %{_libdir}/nss
Expand All @@ -287,6 +297,9 @@ done
%dir %{_sysconfdir}/prelink.conf.d
%config %{_sysconfdir}/prelink.conf.d/nss-prelink.conf

%files ckbi
%defattr(-,root,root,-)
%{_libdir}/libnssckbi.so

%files sysinit
%defattr(-,root,root,-)
Expand Down

0 comments on commit e436907

Please sign in to comment.