head 1.7;
access;
symbols;
locks; strict;
comment @-- @;
1.7
date 2009.04.18.13.13.21; author rse; state Exp;
branches;
next 1.6;
commitid 4pHXU27WTIGCZuKt;
1.6
date 2008.08.02.18.33.39; author rse; state Exp;
branches;
next 1.5;
commitid cXvVEelC5uq6afdt;
1.5
date 2008.06.18.06.51.02; author rse; state Exp;
branches;
next 1.4;
commitid DEK7rFBWKwgKIo7t;
1.4
date 2008.05.25.09.53.29; author rse; state Exp;
branches;
next 1.3;
commitid WdfTLwe7c8Aavk4t;
1.3
date 2008.05.25.08.20.09; author rse; state Exp;
branches;
next 1.2;
commitid fdEiumBeedO9Zj4t;
1.2
date 2008.05.25.08.19.36; author rse; state Exp;
branches;
next 1.1;
commitid ADUn6l1swOEXYj4t;
1.1
date 2008.05.24.22.00.27; author rse; state Exp;
branches;
next ;
commitid nRqnCiskHEuxyg4t;
desc
@@
1.7
log
@bump years in copyright messages
@
text
@##
## nss.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_major 3
%define V_minor 12
# package information
Name: nss
Summary: Mozilla Network Security Services
URL: http://www.mozilla.org/projects/security/pki/nss/
Vendor: Mozilla
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: EVAL
Group: Cryptography
License: MPL
Version: %{V_major}.%{V_minor}
Release: 20080802
# list of sources
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{V_major}_%{V_minor}_RTM/src/nss-%{version}.tar.gz
Source1: nss.pc
Source2: nss.sh
Patch0: nss.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes
PreReq: OpenPKG, openpkg >= 20040130
BuildPreReq: nspr
PreReq: nspr
AutoReq: no
AutoReqProv: no
%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 SSLv2,
SSLv3, TLSv1, PKCS#5, PKCS#7, PKCS#11, PKCS#12, S/MIME, X.509v3
certificates, and other security standards.
%track
prog nss = {
version = %{V_major}_%{V_minor}
url = ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/
regex = NSS_(__VER__)
}
%prep
%setup -q
%patch -p0
%build
( cd mozilla/security/coreconf
%{l_make} %{l_mflags} \
CC="%{l_cc} %{l_cflags} %{l_cppflags nspr} %{l_ldflags nspr}" \
TARGETS='$(LIBRARY) $(PROGRAM)' \
USE_STATIC_LIBS=1 \
BUILD_OPT=1
) || exit $?
( cd mozilla/security/dbm
%{l_make} %{l_mflags} \
CC="%{l_cc} %{l_cflags} %{l_cppflags nspr} %{l_ldflags nspr}" \
TARGETS='$(LIBRARY) $(PROGRAM)' \
USE_STATIC_LIBS=1 \
BUILD_OPT=1
) || exit $?
( cd mozilla/security/nss
%{l_make} %{l_mflags} \
CC="%{l_cc} %{l_cflags} %{l_cppflags nspr} %{l_ldflags nspr}" \
TARGETS='$(LIBRARY) $(PROGRAM)' \
USE_STATIC_LIBS=1 \
BUILD_OPT=1
) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nss \
$RPM_BUILD_ROOT%{l_prefix}/include/nss \
$RPM_BUILD_ROOT%{l_prefix}/lib/nss \
$RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
%{l_shtool} install -c -m 644 \
mozilla/dist/public/nss/* \
$RPM_BUILD_ROOT%{l_prefix}/include/nss/
%{l_shtool} install -c -m 644 \
mozilla/dist/*.OBJ/lib/*.a \
$RPM_BUILD_ROOT%{l_prefix}/lib/nss/
mv $RPM_BUILD_ROOT%{l_prefix}/lib/nss/libssl.a \
$RPM_BUILD_ROOT%{l_prefix}/lib/nss/libnssl.a
%{l_shtool} install -c -s -m 755 \
mozilla/dist/*.OBJ/bin/* \
$RPM_BUILD_ROOT%{l_prefix}/libexec/nss/
%{l_shtool} install -c -m 644 %{l_value -s -a} \
-e 's;@@version@@;%{version};g' \
%{SOURCE nss.pc} \
$RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE nss.sh} \
$RPM_BUILD_ROOT%{l_prefix}/bin/nss
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@
1.6
log
@include a patch from FreeBSD ports
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.5
log
@upgrading package: nss 3.11.9 -> 3.12
@
text
@d39 1
a39 1
Release: 20080618
@
1.4
log
@resolve conflict with OpenSSL's libssl
@
text
@d26 1
a26 2
%define V_minor 11
%define V_micro 9
d38 2
a39 2
Version: %{V_major}.%{V_minor}.%{V_micro}
Release: 20080525
d42 1
a42 1
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{V_major}_%{V_minor}_%{V_micro}_RTM/src/nss-%{version}.tar.gz
d66 1
a66 1
version = %{V_major}_%{V_minor}_%{V_micro}
@
1.3
log
@requires GNU make features
@
text
@d113 2
@
1.2
log
@fix building and substitutions
@
text
@d51 1
a51 1
BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, gcc::with_cxx = yes
@
1.1
log
@new package: nss 3.11.9 (Mozilla Network Security Services)
@
text
@d40 1
a40 1
Release: 20080524
d79 1
a79 1
CC="%{l_cc} %{l_cflags} %{l_cppflags nspr}" \
d86 1
a86 1
CC="%{l_cc} %{l_cflags} %{l_cppflags nspr}" \
d93 1
a93 1
CC="%{l_cc} %{l_cflags} %{l_cppflags nspr}" \
@