packages java-kilim1.spec
      Pages: < 1 >  DOWNLOAD      
%define        pkg_version  1_1_3
Name:          java-kilim1
Version:       1.1.3
Release:       2mamba
Summary:       Java Configuration Framework
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://kilim.ow2.org/
Source:        http://download.forge.objectweb.org/kilim/Kilim_%{pkg_version}-src.tar.gz
License:       BSD, LGPL
BuildRequires: apache-ant
BuildRequires: java-nanoxml-lite
BuildRequires: jpackage-utils
Requires:      java-nanoxml-lite
Requires:      jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Kilim is a generic configuration framework for Java, which can be used
easily with existing applications, frameworks, and systems. It was
originally built into Jonathan in order to allow fine configuration of
its various frameworks (protocols, resource management policies, etc.)
without requiring specific code, and has since grown independently of
Jonathan.

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

%description javadoc
Kilim Java Configuration Framework.

This package contains javadoc for %{name}.

%package manual
Group:         Documentation
Summary:       Documents for  %{name}

%description manual
Kilim Java Configuration Framework.

This package contains documents for %{name}.

%prep

%setup -q -n kilim

for j in $(find . -name "*.jar"); do
	rm -f $j
done

for j in $(find . -name "CVS"); do
	rm -f $j
done

%build

export CLASSPATH=$(build-classpath nanoxml-lite)
pushd externals
	for jar in $(echo $CLASSPATH | sed 's/:/ /g'); do
		ln -sf ${jar} .
	done
popd
ant distrib javadoc

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

mkdir -p %{buildroot}%{_javadir}
install -m 644 distrib/kilim.jar %{buildroot}%{_javadir}/kilim1-%{version}.jar
install -m 644 distrib/kilim-tools.jar %{buildroot}%{_javadir}/kilim1-tools-%{version}.jar

(
	cd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} ${jar/-%{version}/}
	done
)

mkdir -p %{buildroot}%{_javadocdir}/kilim1-%{version}
cp -pr doc/apis/* %{buildroot}%{_javadocdir}/kilim1-%{version}
ln -sf kilim1-%{version} %{buildroot}%{_javadocdir}/kilim1

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

%files
%defattr(-,root,root)
%{_javadir}/kilim1-%{version}.jar
%{_javadir}/kilim1.jar
%{_javadir}/kilim1-tools-%{version}.jar
%{_javadir}/kilim1-tools.jar
%doc Readme.txt

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/kilim1-%{version}
%{_javadocdir}/kilim1

%files manual
%defattr(-,root,root)
%doc doc/GettingStarted

%changelog
* Thu Nov 25 2010 gil <puntogil@...> 1.1.3-2mamba
- ... add a changelog entry

* Fri Sep 04 2009 gil <puntogil@...> 1.1.3-1mamba
- package created by autospec