packages java-isorelax.spec
      Pages: < 1 >  DOWNLOAD      
%define        iso_ver 0
%define        javahome   %{_jvmdir}/jdk
Name:          java-isorelax
Version:       20050331svn
Release:       4mamba
Summary:       public interfaces useful for applications to support RELAX Core.
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://iso-relax.sourceforge.net/
# mkdir isorelax-release-%{version}-src && cd isorelax-release-%{version}-src
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax export -r release-20050331 src lib
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax co -r release-20050331 build.xml
# rm -rf CVS && cd .. && tar cjf isorelax-release-%{version}-src.tar.bz2 isorelax-release-%{version}-src
Source0:       isorelax-release-%{version}-src.tar.bz2
Patch0:        java-isorelax-20050331svn-apidocsandcompressedjar.patch
License:       MIT
BuildRequires: apache-ant
BuildRequires: java-gcj-compat
BuildRequires: jpackage-utils
BuildRequires: xerces-j2
%if "%{stage1}" != "1"
BuildRequires: xercesjarv
%endif
BuildRequires: xml-commons-apis
Requires:      xerces-j2
Requires:      xml-commons-apis
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
The ISO RELAX project is started to host the public interfaces useful for applications to support RELAX Core. But nowadays some of the stuff we have is schema language neutral.

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

%description javadoc
The ISO RELAX project is started to host the public interfaces useful for applications to support RELAX Core. But nowadays some of the stuff we have is schema language neutral.

This package contains javadoc for %{name}.

%prep
%setup -q -n isorelax-release-%{version}-src

chmod -R go=u-w *

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

ln -s $(build-classpath ant-1.7.1) lib/ant.jar
ln -s $(build-classpath xercesjarv) lib/xercesjarv.jar

%patch0 -p1

%build
%if "%{stage1}" != "1"
export CLASSPATH=$(build-classpath xerces-j2 xml-commons-apis xercesjarv)
%else
export CLASSPATH=$(build-classpath xerces-j2 xml-commons-apis)
%endif
ant \
	-Dbuild.sysclasspath=first \
	release


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

mkdir -p %{buildroot}%{_javadir}
install -m 644 isorelax.jar %{buildroot}%{_javadir}/isorelax-%{iso_ver}.jar

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

mkdir -p %{buildroot}%{_javadocdir}/isorelax-%{iso_ver}
cp -pr apidocs/* %{buildroot}%{_javadocdir}/isorelax-%{iso_ver}
ln -s isorelax-%{iso_ver} %{buildroot}%{_javadocdir}/isorelax


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

%files
%defattr(-,root,root)
%{_javadir}/isorelax-%{iso_ver}.jar
%{_javadir}/isorelax.jar

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/isorelax-%{iso_ver}
%{_javadocdir}/isorelax

%changelog
* Fri Mar 25 2011 gil <puntogil@...> 20050331svn-4mamba
- rebuilt with java-gcj-compat support

* Sat Dec 04 2010 gil <puntogil@...> 20050331svn-3mamba
- rebuilt devel

* Tue Oct 20 2009 gil <puntogil@...> 20050331svn-2mamba
- fix javadoc link

* Wed Feb 25 2009 gil <puntogil@...> 20050331svn-1mamba
- package created by autospec