Sisyphus repository
Last update: 16 november 2019 | SRPMs: 17515 | Visits: 15742975
en ru br
ALT Linux repos
S:1.1.12-alt2

Group :: Networking/Other
RPM: 389-admin-console

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define major_version 1.1
%define minor_version 10

%define shortname 389-admin
%define pkgname dirsrv

Name: 389-admin-console
Version: 1.1.12
Release: alt2
Group:   Networking/Other
Url:     http://port389.org
# VCS: https://git.fedorahosted.org/git/389/admin-console.git
License: GPLv2
Summary: 389 Admin Server Management Console
Packager: Vitaly Kuznetsov <vitty at altlinux.ru>

Source: %name-%version.tar

BuildRequires(Pre): rpm-build-java
BuildRequires: java-devel
BuildRequires: ant
BuildRequires: ldapsdk
BuildRequires: idm-console-framework
BuildRequires: jss

ExcludeArch: %ix86
Requires: 389-admin

%description
A Java based remote management console used for Managing 389
Admin Server.  Requires the 389 Console to load and run the
jar files.

%package doc
Summary: Web docs for 389 Admin Server Management Console
Group: Documentation
Requires: %name = %version-%release

%description doc
Web docs for 389 Admin Server Management Console

%prep
%setup -q

%build
%ant -Dconsole.location=%_datadir/java -Dldapjdk.jar.name=ldapsdk.jar -Dconsole.location=%_javadir -Dbuilt.dir=`pwd`/built

%install
install -d %buildroot%_datadir/%pkgname/html/java
install -m777 built/package/%{shortname}* %buildroot%_datadir/%pkgname/html/java
install -d %buildroot%_datadir/%pkgname/manual/en/admin/help
install -m644 help/en/*.html %buildroot%_datadir/%pkgname/manual/en/admin
install -m644 help/en/tokens.map %buildroot%_datadir/%pkgname/manual/en/admin
install -m644 help/en/help/*.html %buildroot%_datadir/%pkgname/manual/en/admin/help

# create symlinks

pushd %buildroot%_datadir/%pkgname/html/java
ln -s %shortname-%version.jar %shortname-%major_version.jar
ln -s %shortname-%version.jar %shortname.jar
ln -s %shortname-%{version}_en.jar %shortname-%{major_version}_en.jar
ln -s %shortname-%{version}_en.jar %{shortname}_en.jar
ln -s %shortname-%version.jar fedora-admin-1.1.jar
ln -s %shortname-%{version}_en.jar fedora-admin-1.1_en.jar
popd

%files
%doc LICENSE
%_datadir/%pkgname/html/java/%shortname-%version.jar
%_datadir/%pkgname/html/java/%shortname-%major_version.jar
%_datadir/%pkgname/html/java/%shortname.jar
%_datadir/%pkgname/html/java/%shortname-%{version}_en.jar
%_datadir/%pkgname/html/java/%shortname-%{major_version}_en.jar
%_datadir/%pkgname/html/java/%{shortname}_en.jar
%_datadir/%pkgname/html/java/fedora-admin-1.1.jar
%_datadir/%pkgname/html/java/fedora-admin-1.1_en.jar

%files doc
%dir %_datadir/%pkgname/manual/en/admin
%dir %_datadir/%pkgname/manual/en/admin/help
%doc %_datadir/%pkgname/manual/en/admin/tokens.map
%doc %_datadir/%pkgname/manual/en/admin/*.html
%doc %_datadir/%pkgname/manual/en/admin/help/*.html

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin