Репозиторий Sisyphus
Последнее обновление: 14 июля 2020 | Пакетов: 17702 | Посещений: 18877443
en ru br
Репозитории ALT
5.1: 4.2.5-alt1
4.1: 4.2.5-alt1

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

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

%define _unpackaged_files_terminate_build 1
%define java_home %_jvmdir/jre

%def_with check

Name: jss
Version: 4.6.2
Release: alt2

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(pre): rpm-macros-cmake
BuildRequires: gcc-c++
BuildRequires: glassfish-jaxb-api
BuildRequires: /proc
BuildRequires: cmake
BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: jpackage-generic-compat
BuildRequires: libnss-devel
BuildRequires: libnspr-devel
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-codec
BuildRequires: slf4j
BuildRequires: slf4j-jdk14

%if_with check
BuildRequires: ctest
BuildRequires: junit
BuildRequires: nss-utils

Requires: apache-commons-lang
Requires: apache-commons-codec
Requires: glassfish-jaxb-api
Requires: java-1.8.0-openjdk-headless
Requires: slf4j

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

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.

%patch -p1

# 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

%cmake \
   -DJAVA_HOME=%java_home \

%cmake_build all javadoc

# FIPS is not enabled in kernel
cat > BUILD/CTestCustom.cmake <<EOF
%cmake_build test

install -d -m 0755 %buildroot%_jnidir
install -m 644 BUILD/jss4.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 BUILD/libjss4.so %buildroot%_libdir/jss/
pushd  %buildroot%_libdir/jss
   ln -fs %_jnidir/jss4.jar jss4.jar

# javadoc

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

%dir %_libdir/jss

%files javadoc


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

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