%define svn_ver 3.8.1 %define javahome /usr/lib/jvm/java Name: java-icu4j Version: 3.8.1.svn Release: 2mamba Summary: International Components for Unicode for Java Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: gil URL: http://site.icu-project.org/ # svn export http://source.icu-project.org/repos/icu/icu4j/tags/release-3-8-1/ icu4j-%{version} # tar czf icu4j-%{version}-svn.tar.gz icu4j-%{version} Source: icu4j-%{version}.tar.gz Patch0: java-icu4j-3.8.1-crosslink.patch # fix for eclipse Patch1: java-icu4j-3.8.1-updatetimestamp.patch Patch2: java-icu4j-3.8.1-individualsourcebundle.patch # set ${eclipse.home}/dropins/sdk/plugins Patch3: java-icu4j-3.8.1-pdebuildlocation.patch License: MIT BuildRequires: apache-ant BuildRequires: java-openjdk BuildRequires: jpackage-utils Requires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The International Components for Unicode (ICU) library provides robust and full-featured Unicode services on a wide variety of platforms. ICU supports the most current version of the Unicode standard, and provides support for supplementary characters (needed for GB 18030 repertoire support). Java provides a very strong foundation for global programs, and IBM and the ICU team played a key role in providing globalization technology into Sun's Java. But because of its long release schedule, Java cannot always keep up-to-date with evolving standards. The ICU team continues to extend Java's Unicode and internationalization support, focusing on improving performance, keeping current with the Unicode standard, and providing richer APIs, while remaining as compatible as possible with the original Java text and internationalization API design. %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc The International Components for Unicode (ICU) library provides robust and full-featured Unicode services on a wide variety of platforms. ICU supports the most current version of the Unicode standard, and provides support for supplementary characters (needed for GB 18030 repertoire support). This package contains javadoc for %{name}. %prep %setup -q -n icu4j-%{svn_ver} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 sed -i 's/\r//' license.html sed -i 's/\r//' APIChangeReport.html sed -i 's/\r//' readme.html sed -i "s/ .*bootclasspath=.*//g" build.xml sed -i "s///" build.xml sed -i "/javac1.3/d" build.xml sed -i "s:/usr/lib:%{_libdir}:g" build.xml %build export JAVA_HOME=%javahome ant \ -Dicu4j.javac.source=1.5 \ -Dicu4j.javac.target=1.5 \ -Dj2se.apidoc=%{_javadocdir}/java \ jar docs #ant \ # -Dj2se.apidoc=%{_javadocdir}/java \ # -Declipse.home=%{_libdir}/eclipse \ # -Declipse.basews=gtk \ # -Declipse.baseos=linux \ # -Declipse.basearch=%{_arch} \ # jar docs eclipsePDEBuild %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} install -pm 644 icu4j.jar %{buildroot}%{_javadir}/icu4j-%{svn_ver}.jar ( cd %{buildroot}%{_javadir} for jar in *-%{svn_ver}.jar; do ln -s ${jar} `echo $jar| sed "s|-%{svn_ver}||g"` done ) mkdir -p %{buildroot}%{_javadocdir}/icu4j-%{svn_ver} cp -pr doc/* %{buildroot}%{_javadocdir}/icu4j-%{svn_ver} ln -s icu4j-%{svn_ver} %{buildroot}%{_javadocdir}/icu4j %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/icu4j-%{svn_ver}.jar %{_javadir}/icu4j.jar %doc license.html readme.html APIChangeReport.html %files javadoc %defattr(-,root,root) %{_javadocdir}/icu4j-%{svn_ver} %{_javadocdir}/icu4j %changelog * Thu Mar 24 2011 gil 3.8.1.svn-2mamba - rebuilt with java-openjdk support * Wed Feb 25 2009 gil 3.8.1.svn-1mamba - package created by autospec