packages jakarta-commons-cli.spec
      Pages: < 1 >  DOWNLOAD      
%define        javahome   %{_jvmdir}/jdk
Name:          jakarta-commons-cli
Version:       1.1
Release:       3mamba
Summary:       Jakarta Commons CLI (Command Line Interface) Package
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
Patch0:        jakarta-commons-cli-1.1-MultiOptions.patch
License:       Apache License Version 2.0
BuildRequires: apache-ant
BuildRequires: jakarta-commons-lang
BuildRequires: jakarta-commons-logging
BuildRequires: java-gcj-compat
BuildRequires: java-junit3
BuildRequires: jpackage-utils
Requires:      jakarta-commons-lang
Requires:      jakarta-commons-logging
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

The Apache Commons CLI library provides an API for processing command line interfaces. 

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}

%description javadoc
Jakarta Commons CLI (Command Line Interface) Package

This package contains javadoc for %{name}.

%setup -q -n commons-cli-%{version}-src
%patch0 -p0 -b .sav

export JAVA_HOME=%javahome
export CLASSPATH=$(build-classpath commons-logging commons-lang junit-3.8.2 ant/ant-junit)
 # for tests
mkdir lib
ant \
  -Dbuild.sysclasspath=only \ \
  jar dist \
%if "%{stage1}" != "1"

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_datadir}/maven2/poms

install -p -m 644 dist/commons-cli.jar \

%add_to_maven_depmap commons-cli commons-cli %{version} JPP jakarta-commons-cli
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-jakarta-commons-cli.pom

  cd %{buildroot}%{_javadir}
  for jar in *-%{version}*; do
    ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`

  cd %{buildroot}%{_javadir}
  for jar in *-%{version}*; do
    ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`

mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}


[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"



%doc LICENSE.txt README.txt

%files javadoc

* Thu Mar 24 2011 gil <puntogil@...> 1.1-3mamba
- rebuilt with java-gcj-compat support

* Sat Oct 30 2010 gil <puntogil@...> 1.1-2mamba
- rebuilt devel
- add maven pom

* Fri Mar 06 2009 gil <puntogil@...> 1.1-1mamba
- package created by autospec