Accepting request 726875 from home:pluskalm:branches:mozilla:Factory
- Requiere exact version libsoftokn3/libfreebl3 as there seems to be rather tight dependency - bsc#1138384 bsc#1135478 - Small packaging cleanup OBS-URL: https://build.opensuse.org/request/show/726875 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/mozilla-nss?expand=0&rev=288
This commit is contained in:
parent
78519384c7
commit
2af2e412d2
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 29 01:14:49 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Requiere exact version libsoftokn3/libfreebl3 as there seems to
|
||||||
|
be rather tight dependency - bsc#1138384 bsc#1135478
|
||||||
|
- Small packaging cleanup
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 3 21:12:12 UTC 2019 - Wolfgang Rosenauer <wr@rosenauer.org>
|
Sat Aug 3 21:12:12 UTC 2019 - Wolfgang Rosenauer <wr@rosenauer.org>
|
||||||
|
|
||||||
|
@ -17,30 +17,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define run_testsuite 0
|
||||||
%global nss_softokn_fips_version 3.45
|
%global nss_softokn_fips_version 3.45
|
||||||
%define NSPR_min_version 4.21
|
%define NSPR_min_version 4.21
|
||||||
|
%define underscore_version 3_45
|
||||||
|
%define nspr_ver %(rpm -q --queryformat '%{version}-%{release}' mozilla-nspr)
|
||||||
|
%define nssdbdir %{_sysconfdir}/pki/nssdb
|
||||||
Name: mozilla-nss
|
Name: mozilla-nss
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: mozilla-nspr-devel >= %{NSPR_min_version}
|
|
||||||
BuildRequires: pkg-config
|
|
||||||
BuildRequires: sqlite-devel
|
|
||||||
BuildRequires: zlib-devel
|
|
||||||
Version: 3.45
|
Version: 3.45
|
||||||
Release: 0
|
Release: 0
|
||||||
%define underscore_version 3_45
|
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: mozilla-nss-64bit
|
|
||||||
%endif
|
|
||||||
#
|
|
||||||
Summary: Network Security Services
|
Summary: Network Security Services
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: http://www.mozilla.org/projects/security/pki/nss/
|
URL: https://www.mozilla.org/projects/security/pki/nss/
|
||||||
Source: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{underscore_version}_RTM/src/nss-%{version}.tar.gz
|
Source: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{underscore_version}_RTM/src/nss-%{version}.tar.gz
|
||||||
# hg clone https://hg.mozilla.org/projects/nss nss-%{version}/nss ; cd nss-%{version}/nss ; hg up NSS_%{underscore_version}_RTM
|
# hg clone https://hg.mozilla.org/projects/nss nss-%%{version}/nss ; cd nss-%%{version}/nss ; hg up NSS_%%{underscore_version}_RTM
|
||||||
#Source: nss-%{version}.tar.gz
|
#Source: nss-%%{version}.tar.gz
|
||||||
Source1: nss.pc.in
|
Source1: nss.pc.in
|
||||||
Source3: nss-config.in
|
Source3: nss-config.in
|
||||||
Source4: %{name}-rpmlintrc
|
Source4: %{name}-rpmlintrc
|
||||||
@ -58,23 +50,20 @@ Patch4: add-relro-linker-option.patch
|
|||||||
Patch5: malloc.patch
|
Patch5: malloc.patch
|
||||||
Patch6: bmo-1400603.patch
|
Patch6: bmo-1400603.patch
|
||||||
Patch7: nss-sqlitename.patch
|
Patch7: nss-sqlitename.patch
|
||||||
%define nspr_ver %(rpm -q --queryformat '%%{VERSION}' mozilla-nspr)
|
BuildRequires: gcc-c++
|
||||||
PreReq: mozilla-nspr >= %nspr_ver
|
BuildRequires: pkgconfig
|
||||||
PreReq: libfreebl3 >= %{nss_softokn_fips_version}
|
BuildRequires: pkgconfig(nspr) >= %{NSPR_min_version}
|
||||||
PreReq: libsoftokn3 >= %{nss_softokn_fips_version}
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
Requires: mozilla-nspr = %{nspr_ver}
|
||||||
|
Requires(pre): libfreebl3 >= %{nss_softokn_fips_version}
|
||||||
|
Requires(pre): libsoftokn3 >= %{nss_softokn_fips_version}
|
||||||
|
Requires(pre): mozilla-nspr = %{nspr_ver}
|
||||||
%if %{_lib} == lib64
|
%if %{_lib} == lib64
|
||||||
Requires: libnssckbi.so()(64bit)
|
Requires: libnssckbi.so()(64bit)
|
||||||
%else
|
%else
|
||||||
Requires: libnssckbi.so
|
Requires: libnssckbi.so
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%define nssdbdir %{_sysconfdir}/pki/nssdb
|
|
||||||
%ifnarch %sparc
|
|
||||||
%if ! 0%{?qemu_user_space_build}
|
|
||||||
# disabled temporarily bmo#1236340
|
|
||||||
%define run_testsuite 0
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Network Security Services (NSS) is a set of libraries designed to
|
Network Security Services (NSS) is a set of libraries designed to
|
||||||
@ -83,18 +72,13 @@ applications. Applications built with NSS can support SSL v3,
|
|||||||
TLS v1.0, v1.1, v1.2, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
|
TLS v1.0, v1.1, v1.2, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
|
||||||
certificates, and other security standards.
|
certificates, and other security standards.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Network (Netscape) Security Services development files
|
Summary: Network (Netscape) Security Services development files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libfreebl3
|
Requires: libfreebl3
|
||||||
Requires: libsoftokn3
|
Requires: libsoftokn3
|
||||||
Requires: mozilla-nspr-devel >= %{NSPR_min_version}
|
|
||||||
Requires: mozilla-nss = %{version}-%{release}
|
Requires: mozilla-nss = %{version}-%{release}
|
||||||
# bug437293
|
Requires: pkgconfig(nspr) >= %{NSPR_min_version}
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: mozilla-nss-devel-64bit
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Network Security Services (NSS) is a set of libraries designed to
|
Network Security Services (NSS) is a set of libraries designed to
|
||||||
@ -106,13 +90,12 @@ certificates, and other security standards.
|
|||||||
%package tools
|
%package tools
|
||||||
Summary: Tools for developing, debugging, and managing applications that use NSS
|
Summary: Tools for developing, debugging, and managing applications that use NSS
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
PreReq: mozilla-nss >= %{version}
|
Requires(pre): mozilla-nss >= %{version}
|
||||||
|
|
||||||
%description tools
|
%description tools
|
||||||
The NSS Security Tools allow developers to test, debug, and manage
|
The NSS Security Tools allow developers to test, debug, and manage
|
||||||
applications that use NSS.
|
applications that use NSS.
|
||||||
|
|
||||||
|
|
||||||
%package sysinit
|
%package sysinit
|
||||||
Summary: System NSS Initialization
|
Summary: System NSS Initialization
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
@ -125,7 +108,6 @@ NSS globally on the system. This module loads the system defined
|
|||||||
PKCS #11 modules for NSS and chains with other NSS modules to load
|
PKCS #11 modules for NSS and chains with other NSS modules to load
|
||||||
any system or user configured modules.
|
any system or user configured modules.
|
||||||
|
|
||||||
|
|
||||||
%package -n libfreebl3
|
%package -n libfreebl3
|
||||||
Summary: Freebl library for the Network Security Services
|
Summary: Freebl library for the Network Security Services
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -140,7 +122,6 @@ certificates, and other security standards.
|
|||||||
|
|
||||||
This package installs the freebl library from NSS.
|
This package installs the freebl library from NSS.
|
||||||
|
|
||||||
|
|
||||||
%package -n libfreebl3-hmac
|
%package -n libfreebl3-hmac
|
||||||
Summary: Freebl library checksums for the Network Security Services
|
Summary: Freebl library checksums for the Network Security Services
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -150,7 +131,6 @@ Requires: libfreebl3 = %{version}-%{release}
|
|||||||
Checksums for libraries contained in the libfreebl3 package
|
Checksums for libraries contained in the libfreebl3 package
|
||||||
used in the FIPS 140-2 mode.
|
used in the FIPS 140-2 mode.
|
||||||
|
|
||||||
|
|
||||||
%package -n libsoftokn3
|
%package -n libsoftokn3
|
||||||
Summary: Network Security Services Softoken Module
|
Summary: Network Security Services Softoken Module
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -166,7 +146,6 @@ certificates, and other security standards.
|
|||||||
|
|
||||||
Network Security Services Softoken Cryptographic Module
|
Network Security Services Softoken Cryptographic Module
|
||||||
|
|
||||||
|
|
||||||
%package -n libsoftokn3-hmac
|
%package -n libsoftokn3-hmac
|
||||||
Summary: Network Security Services Softoken Module checksums
|
Summary: Network Security Services Softoken Module checksums
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -176,7 +155,6 @@ Requires: libsoftokn3 = %{version}-%{release}
|
|||||||
Checksums for libraries contained in the libsoftokn3 package
|
Checksums for libraries contained in the libsoftokn3 package
|
||||||
used in the FIPS 140-2 mode.
|
used in the FIPS 140-2 mode.
|
||||||
|
|
||||||
|
|
||||||
%package certs
|
%package certs
|
||||||
Summary: CA certificates for NSS
|
Summary: CA certificates for NSS
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
@ -185,15 +163,14 @@ Group: Productivity/Networking/Security
|
|||||||
This package contains the integrated CA root certificates from the
|
This package contains the integrated CA root certificates from the
|
||||||
Mozilla project.
|
Mozilla project.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n nss-%{version} -q
|
%setup -q -n nss-%{version}
|
||||||
cd nss
|
cd nss
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%if %suse_version > 1110
|
%if 0%{?suse_version} > 1110
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
@ -206,7 +183,7 @@ cd nss
|
|||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
cd nss
|
cd nss
|
||||||
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{S:99}")"
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE99}")"
|
||||||
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
||||||
TIME="\"$(date -d "${modified}" "+%%R")\""
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
||||||
find . -name '*.[ch]' -print -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
|
find . -name '*.[ch]' -print -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} +
|
||||||
@ -224,7 +201,7 @@ export USE_64=1
|
|||||||
export NSS_USE_SYSTEM_SQLITE=1
|
export NSS_USE_SYSTEM_SQLITE=1
|
||||||
#export SQLITE_LIB_NAME=nsssqlite3
|
#export SQLITE_LIB_NAME=nsssqlite3
|
||||||
MAKE_FLAGS="BUILD_OPT=1"
|
MAKE_FLAGS="BUILD_OPT=1"
|
||||||
make nss_build_all $MAKE_FLAGS
|
make --jobs=1 nss_build_all $MAKE_FLAGS
|
||||||
# run testsuite
|
# run testsuite
|
||||||
%if 0%{?run_testsuite}
|
%if 0%{?run_testsuite}
|
||||||
export BUILD_OPT=1
|
export BUILD_OPT=1
|
||||||
@ -346,7 +323,7 @@ install -m 644 %{SOURCE9} %{buildroot}%{nssdbdir}
|
|||||||
%define __spec_install_post \
|
%define __spec_install_post \
|
||||||
%{?__debug_package:%{__debug_install_post}} \
|
%{?__debug_package:%{__debug_install_post}} \
|
||||||
%{__arch_install_post} \
|
%{__arch_install_post} \
|
||||||
%{__os_install_post} \
|
%__os_install_post \
|
||||||
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir} %{buildroot}%{_libexecdir}/nss/shlibsign -i %{buildroot}%{_libdir}/libsoftokn3.so \
|
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir} %{buildroot}%{_libexecdir}/nss/shlibsign -i %{buildroot}%{_libdir}/libsoftokn3.so \
|
||||||
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir} %{buildroot}%{_libexecdir}/nss/shlibsign -i %{buildroot}%{_libdir}/libnssdbm3.so \
|
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir} %{buildroot}%{_libexecdir}/nss/shlibsign -i %{buildroot}%{_libdir}/libnssdbm3.so \
|
||||||
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir} %{buildroot}%{_libexecdir}/nss/shlibsign -i %{buildroot}/%{_lib}/libfreebl3.so \
|
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir} %{buildroot}%{_libexecdir}/nss/shlibsign -i %{buildroot}/%{_lib}/libfreebl3.so \
|
||||||
@ -354,17 +331,11 @@ install -m 644 %{SOURCE9} %{buildroot}%{nssdbdir}
|
|||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libfreebl3 -p /sbin/ldconfig
|
%post -n libfreebl3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libfreebl3 -p /sbin/ldconfig
|
%postun -n libfreebl3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post -n libsoftokn3 -p /sbin/ldconfig
|
%post -n libsoftokn3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libsoftokn3 -p /sbin/ldconfig
|
%postun -n libsoftokn3 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post sysinit
|
%post sysinit
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
# make sure the current config is enabled
|
# make sure the current config is enabled
|
||||||
@ -378,12 +349,11 @@ fi
|
|||||||
%postun sysinit -p /sbin/ldconfig
|
%postun sysinit -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libnss3.so
|
%{_libdir}/libnss3.so
|
||||||
%{_libdir}/libnssutil3.so
|
%{_libdir}/libnssutil3.so
|
||||||
%{_libdir}/libsmime3.so
|
%{_libdir}/libsmime3.so
|
||||||
%{_libdir}/libssl3.so
|
%{_libdir}/libssl3.so
|
||||||
#%{_libdir}/libnsssqlite3.so
|
#%%{_libdir}/libnsssqlite3.so
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(644, root, root, 755)
|
%defattr(644, root, root, 755)
|
||||||
@ -393,14 +363,12 @@ fi
|
|||||||
%attr(755,root,root) %{_bindir}/nss-config
|
%attr(755,root,root) %{_bindir}/nss-config
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%exclude %{_sbindir}/setup-nsssysinit.sh
|
%exclude %{_sbindir}/setup-nsssysinit.sh
|
||||||
%{_libexecdir}/nss/
|
%{_libexecdir}/nss/
|
||||||
%exclude %{_bindir}/nss-config
|
%exclude %{_bindir}/nss-config
|
||||||
|
|
||||||
%files sysinit
|
%files sysinit
|
||||||
%defattr(-, root, root)
|
|
||||||
%dir %{_sysconfdir}/pki
|
%dir %{_sysconfdir}/pki
|
||||||
%dir %{_sysconfdir}/pki/nssdb
|
%dir %{_sysconfdir}/pki/nssdb
|
||||||
%config(noreplace) %{_sysconfdir}/pki/nssdb/*
|
%config(noreplace) %{_sysconfdir}/pki/nssdb/*
|
||||||
@ -408,27 +376,22 @@ fi
|
|||||||
%{_sbindir}/setup-nsssysinit.sh
|
%{_sbindir}/setup-nsssysinit.sh
|
||||||
|
|
||||||
%files -n libfreebl3
|
%files -n libfreebl3
|
||||||
%defattr(-, root, root)
|
|
||||||
/%{_lib}/libfreebl3.so
|
/%{_lib}/libfreebl3.so
|
||||||
/%{_lib}/libfreeblpriv3.so
|
/%{_lib}/libfreeblpriv3.so
|
||||||
|
|
||||||
%files -n libfreebl3-hmac
|
%files -n libfreebl3-hmac
|
||||||
%defattr(-, root, root)
|
|
||||||
/%{_lib}/libfreebl3.chk
|
/%{_lib}/libfreebl3.chk
|
||||||
/%{_lib}/libfreeblpriv3.chk
|
/%{_lib}/libfreeblpriv3.chk
|
||||||
|
|
||||||
%files -n libsoftokn3
|
%files -n libsoftokn3
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libsoftokn3.so
|
%{_libdir}/libsoftokn3.so
|
||||||
%{_libdir}/libnssdbm3.so
|
%{_libdir}/libnssdbm3.so
|
||||||
|
|
||||||
%files -n libsoftokn3-hmac
|
%files -n libsoftokn3-hmac
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libsoftokn3.chk
|
%{_libdir}/libsoftokn3.chk
|
||||||
%{_libdir}/libnssdbm3.chk
|
%{_libdir}/libnssdbm3.chk
|
||||||
|
|
||||||
%files certs
|
%files certs
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/libnssckbi.so
|
%{_libdir}/libnssckbi.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user