Репозиторий Sisyphus
Последнее обновление: 26 сентября 2018 | Пакетов: 18655 | Посещений: 12267220
en ru br
Репозитории ALT
S:4.5.0-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.5.0
Release: alt1

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

Source0: %name-%version.tar
Source1: jss.watch
Patch: %name-%version-alt.patch

BuildRequires(pre): rpm-macros-java
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
BuildRequires: libnss-devel
BuildRequires: libnspr-devel
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-codec
BuildRequires: slf4j
BuildRequires: slf4j-jdk14

Requires: apache-commons-lang
Requires: apache-commons-codec
Requires: slf4j
Requires: java-headless

%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 -p1

%build
export JAVA_HOME=%_jvmdir/java
export USE_INSTALLED_NSPR=1
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

rm -rf ../dist
mkdir ../dist
%make -C coreconf
%make
%make javadoc
# actually must be at 'check' section, but requires all exports as 'build'
%make test_jss

%install
install -d -m 0755 %buildroot%_jnidir
install -m 644 ../dist/xpclass.jar %buildroot%_jnidir/jss4.jar

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

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

# javadoc

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

%check

%files
%dir %_libdir/jss
%_libdir/jss/jss4.jar
%_libdir/jss/libjss4.so
%_jnidir/jss4.jar

%files javadoc
%_javadocdir/%name-%version

%changelog

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

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