Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37039425
en ru br
ALT Linux repositórios
S:5.4.2-alt1
5.0: 4.2.5-alt1
4.1: 4.2.5-alt1

Group :: Desenvolvimento/Java
RPM: jss

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: jss
Version: 4.2.5
Release: alt1
Summary: Java Security Services (JSS)

Group: Development/Java
License: MPL/GPL/LGPL
Url: http://www.mozilla.org/projects/security/pki/jss/
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: %name-%version.tar.bz2
Source1: MPL-1.1.txt
Source2: gpl.txt
Source3: lgpl.txt

BuildRequires: libnss-devel
BuildRequires: libnspr-devel
BuildRequires: java-1.6.0-sun-devel

# don't use sun.net.www.protocol.http.HttpURLConnection.userAgent

Patch1: jss-useragent.patch
Patch2: jss-link-alt.patch

%description
Java Security Services (JSS) is a java native interface which provides a bridge
for java-based applications to use native Network Security Services (NSS).
This only works with gcj. Other JREs require that JCE providers be signed.

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
#export JAVA_HOME=/usr/lib/jvm/java-1.4.2

# Generate symbolic info for debuggers

XCFLAGS="-g $RPM_OPT_FLAGS"
export XCFLAGS

PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1

export PKG_CONFIG_ALLOW_SYSTEM_LIBS
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS

NSPR_INCLUDE_DIR=`%_bindir/pkg-config --cflags-only-I nspr | sed 's/-I//'`
NSPR_LIB_DIR=`%_bindir/pkg-config --libs-only-L nspr | sed 's/-L//'`

NSS_INCLUDE_DIR=`%_bindir/pkg-config --cflags-only-I nss | sed 's/-I//'`
NSS_LIB_DIR=`%_bindir/pkg-config --libs-only-L nss | sed 's/-L//'`

export NSPR_INCLUDE_DIR
export NSPR_LIB_DIR
export NSS_INCLUDE_DIR
export NSS_LIB_DIR

%ifarch x86_64 ppc64 ia64 s390x sparc64
USE_64=1
export USE_64
%endif

# The Makefile is not thread-safe

make -C mozilla/security/coreconf
make -C mozilla/security/jss

%install
# Copy the license files here so we can include them in %doc
cp -p %SOURCE1 .
cp -p %SOURCE2 .
cp -p %SOURCE3 .

# There is no install target so we'll do it by hand


# jars

install -d -m 0755 %buildroot%_datadir/java/
install -m 644 mozilla/dist/xpclass_dbg.jar %buildroot%_datadir/java/jss4-%version.jar
pushd  %buildroot%_datadir/java
   ln -fs jss4-%version.jar jss4.jar
popd

# We have to use the name libjss4.so because this is dynamically

# loaded by the jar file.
install -d -m 0755 %buildroot%_libdir
install -m 0755 mozilla/dist/Linux*.OBJ/lib/libjss4.so %buildroot%_libdir/

# FIXME - sign jss4.jar. In order to use JSS as a JCE provider it needs to be

# signed with a Sun-issued certificate. Since we would need to make this
# certificate and private key public to provide reproducability in the rpm
# building we have to ship an unsigned jar.
#
# Instructions for getting a signing cert can be found here:
# http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/HowToImplAProvider.html#Step61
#
# This signing is not required by every JVM. gcj ignores the signature and does
# not require one. The Sun and IBM JVMs both check and enforce the signature.
# Behavior of other JVMs is not known but they probably enforce the signature
# as well.

%files
%doc mozilla/security/jss/jss.html MPL-1.1.txt gpl.txt lgpl.txt
%_datadir/java/*
%_libdir/lib*.so

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009