Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37417760
en ru br
Репозитории ALT
S:3.93.0-alt1
5.1: 3.12.9.0-alt1.M50P.1
4.1: 3.12.1-alt0.20080628.M41.2
4.0: 3.11.4-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: nss

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary:        Netscape Network Security Services(NSS)
Name:           nss
Version:        3.11.4
Release:       alt1
License:        MPL/GPL/LGPL
Group:          System/Libraries
Url: http://www.mozilla.org/projects/security/nss/

Source0: %name-%version.tar.gz
Source1: %name.pc.in
Source2: %name-config.in
Source3: %name-alt-ssl-addon-certs.txt

Patch0: nss_with_system_nspr.patch

# Automatically added by buildreq on Thu Nov 16 2006

BuildRequires: libnspr-devel net-tools chrpath

%description
Network Security Services (NSS) is a set of libraries designed
to support cross-platform development of security-enabled 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.  See:
http://www.mozilla.org/projects/security/pki/nss/overview.html

%package -n lib%name
Summary:        Netscape Network Security Services(NSS)
Group:          System/Libraries
Provides: %name = %version

%description -n lib%name
Network Security Services (NSS) is a set of libraries designed
to support cross-platform development of security-enabled 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.  See:
http://www.mozilla.org/projects/security/pki/nss/overview.html

%package -n lib%name-devel
Summary: NSS development kit
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
NSS development kit

%package -n lib%name-devel-static
Summary: NSS development kit
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
NSS development kit (static libs)

%package -n %name-utils
Summary: Netscape Network Security Services Utilities
Group:   Development/Other

Requires: lib%name = %version-%release

%description -n %name-utils
Netscape Network Security Services Utilities

%prep
%setup -q
%patch0 -p0
#patch1 -p0

%build
export BUILD_OPT=1
export NS_USE_GCC=1
export NSS_ENABLE_ECC=1
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1

# Generate symbolic info for debuggers

export XCFLAGS=$RPM_OPT_FLAGS

%ifarch x86_64
export USE_64=1
%endif

# additional CA certificates

cat %SOURCE3 >> mozilla/security/nss/lib/ckfw/builtins/certdata.txt

%make -C mozilla/security/coreconf
%make -C mozilla/security/coreconf platform 2>/dev/null |grep '^Linux' >destdir
%make -C mozilla/security/dbm
%make -C mozilla/security/nss/lib/ckfw/builtins generate
%make -C mozilla/security/nss

%install
%__mkdir_p %buildroot{%_bindir,%_libdir/pkgconfig,%_includedir}

# Get some variables

DESTDIR="$(head -1 destdir)"
NSPR_VERSION="$(nspr-config --version)"
nss_h="mozilla/security/nss/lib/nss/nss.h"
NSS_VMAJOR="$(sed -ne 's,^#define[[:space:]]\+NSS_VMAJOR[[:space:]]\+,,p' "$nss_h")"
NSS_VMINOR="$(sed -ne 's,^#define[[:space:]]\+NSS_VMINOR[[:space:]]\+,,p' "$nss_h")"
NSS_VPATCH="$(sed -ne 's,^#define[[:space:]]\+NSS_VPATCH[[:space:]]\+,,p' "$nss_h")"

# Install NSS libraries

cd mozilla/dist
cp -aL "$DESTDIR"/bin/* %buildroot%_bindir
cp -aL "$DESTDIR"/lib/* %buildroot%_libdir

# Install NSS headers

cd public
cp -aL nss %buildroot%_includedir

# Install NSS utils

sed -e "s, at libdir at ,%_libdir,g" \
   -e "s, at prefix at ,%_prefix,g" \
   -e "s, at exec_prefix at ,%_prefix,g" \
   -e "s, at includedir at ,%_includedir/nss,g" \
   -e "s, at NSPR_VERSION at ,$NSPR_VERSION,g" \
   -e "s, at NSS_VERSION at ,%version,g" \
%SOURCE1 > %buildroot/%_libdir/pkgconfig/nss.pc

sed -e "s, at libdir at ,%_libdir,g" \
   -e "s, at prefix at ,%_prefix,g" \
   -e "s, at exec_prefix at ,%_prefix,g" \
   -e "s, at includedir at ,%_includedir/nss,g" \
   -e "s, at MOD_MAJOR_VERSION at ,$NSS_VMAJOR,g" \
   -e "s, at MOD_MINOR_VERSION at ,$NSS_VMINOR,g" \
   -e "s, at MOD_PATCH_VERSION at ,$NSS_VPATCH,g" \
   %SOURCE2 > %buildroot/%_bindir/nss-config

chmod 755 %buildroot/%_bindir/nss-config

# Add real RPATH

find "%buildroot%_bindir" "%buildroot%_libdir" -type f |
while read f; do
 %__file "$f" | grep -qs ELF || continue
 if chrpath -l "$f" | fgrep -qs "RPATH="; then
   chrpath -d "$f"
 fi
done

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files -n lib%name
%_libdir/*.so*
%_libdir/*.chk

%files -n %name-utils
%_bindir/*
# Remove tests and samples
%exclude %_bindir/bltest
%exclude %_bindir/client
%exclude %_bindir/dbtest
%exclude %_bindir/example
%exclude %_bindir/mangle
%exclude %_bindir/minigzip
%exclude %_bindir/ocspclnt
%exclude %_bindir/oidcalc
%exclude %_bindir/sdrtest
%exclude %_bindir/server
%exclude %_bindir/shlibsign
%exclude %_bindir/tstclnt
%exclude %_bindir/vfyserv

%files -n lib%name-devel
%_bindir/%name-config
%dir %_includedir/%name
%_includedir/%name
%_libdir/pkgconfig/*

%files -n lib%name-devel-static
%_libdir/*.a

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin