Репозиторий Sisyphus
Последнее обновление: 19 июля 2018 | Пакетов: 18625 | Посещений: 11910356
en ru br
Репозитории ALT
S:4.4.5-alt1
5.1: 4.2.5-alt1
4.1: 4.2.5-alt1
www.altlinux.org/Changes

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

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

%define _unpackaged_files_terminate_build 1

Name: jss
Version: 4.4.4
Release: alt2%ubt

Summary: Java Security Services (JSS)
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: System/Libraries
# Source-git: https://github.com/dogtagpki/jss.git
Url: http://www.dogtagpki.org/wiki/JSS

Source: %name-%version.tar
Patch: %name-%version-alt.patch

BuildRequires(pre): rpm-build-ubt
BuildRequires(pre): rpm-macros-java
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
BuildRequires: libnss-devel
BuildRequires: libnspr-devel

%description
Network Security Services for Java (JSS) is a Java interface to NSS. JSS
supports most of the security standards and encryption technologies supported by
NSS. JSS also provides a pure Java interface for ASN.1 types and BER/DER
encoding.

JSS offers a implementation of Java SSL sockets that uses NSS's SSL/TLS
implementation rather than Sun's JSSE implementation. You might want to use
JSS's own SSL classes if you want to use some of the capabilities found in NSS's
SSL/TLS library but not found in JSSE.

NSS is the cryptographic module where all cryptographic operations are
performed. JSS essentially provides a Java JNI bridge to NSS C shared libraries.
When NSS is put in FIPS mode, JSS ensures FIPS compliance by ensuring that all
cryptographic operations are performed by the NSS cryptographic module.

%package javadoc
Summary: Java Security Services (JSS) Javadocs
Group: Development/Java
Requires: %name = %EVR
BuildArch: noarch

%description javadoc
This package contains the API documentation for JSS.

%prep
%setup
%patch0 -d %name -p1

%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%_jvmdir/java
[ -z "$USE_INSTALLED_NSPR" ] && export USE_INSTALLED_NSPR=1
[ -z "$USE_INSTALLED_NSS" ] && export USE_INSTALLED_NSS=1

# Enable compiler optimizations and disable debugging code

# NOTE: If you ever need to create a debug build with optimizations disabled
# just comment out this line and change in the %%install section below the
# line that copies jars xpclass.jar to be xpclass_dbg.jar
export BUILD_OPT=1

# Generate symbolic info for debuggers

export XCFLAGS="-g $RPM_OPT_FLAGS"

export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1

NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nspr | sed 's/-I//'`
NSPR_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nspr | sed 's/-L//'`
[ -z $NSPR_LIB_DIR ] && NSPR_LIB_DIR="%_libdir"

NSS_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nss | sed 's/-I//'`
NSS_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nss | sed 's/-L//'`
[ -z $NSS_LIB_DIR ] && NSS_LIB_DIR="%_libdir"

export NSPR_INCLUDE_DIR
export NSPR_LIB_DIR
export NSS_INCLUDE_DIR
export NSS_LIB_DIR

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

# The Makefile is not thread-safe

%make -C %name all
%make -C %name javadoc

%install
install -d -m 0755 $RPM_BUILD_ROOT%_jnidir
# NOTE: if doing a debug no opt build change xpclass.jar to xpclass_dbg.jar
install -m 644 dist/xpclass.jar $RPM_BUILD_ROOT%_jnidir/jss4.jar

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

# loaded by the jar file.
install -d -m 0755 $RPM_BUILD_ROOT%_libdir/%name
install -m 0755 dist/Linux*.OBJ/lib/libjss4.so $RPM_BUILD_ROOT%_libdir/%name/
pushd  $RPM_BUILD_ROOT%_libdir/%name
   ln -fs %_jnidir/jss4.jar jss4.jar
popd

# javadoc

install -d -m 0755 $RPM_BUILD_ROOT%_javadocdir/%name-%version
cp -rp dist/jssdoc/* $RPM_BUILD_ROOT%_javadocdir/%name-%version
cp -p %name/jss.html $RPM_BUILD_ROOT%_javadocdir/%name-%version

%files
%_libdir/%name/*
%_jnidir/*
%_libdir/%name/libjss4.so

%files javadoc
%_javadocdir/%name-%version

%changelog

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

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