27 |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 |
# |
# |
30 |
|
%global with_eclipse 0 |
31 |
|
|
32 |
|
%global section free |
33 |
|
|
34 |
|
# Note: this next section looks weird having an arch specified in a |
35 |
|
# noarch specfile but the parts of the build |
36 |
|
# All arches line up between Eclipse and Linux kernel names except i386 -> x86 |
37 |
|
%ifarch %{ix86} |
38 |
|
%global eclipse_arch x86 |
39 |
|
%else |
40 |
|
%global eclipse_arch %{_arch} |
41 |
|
%endif |
42 |
|
|
|
%define with_eclipse 0 |
|
43 |
|
|
44 |
%define section free |
%define section free |
45 |
|
|
56 |
%endif |
%endif |
57 |
|
|
58 |
Name: icu4j |
Name: icu4j |
59 |
Version: 3.8.1 |
Version: 4.2.1 |
60 |
Release: %mkrel 0.2.5 |
Release: %mkrel 0.2.5 |
61 |
Epoch: 1 |
Epoch: 1 |
62 |
Summary: International Components for Unicode for Java |
Summary: International Components for Unicode for Java |
63 |
License: MIT and EPL |
License: MIT and EPL |
64 |
URL: http://www-306.ibm.com/software/globalization/icu/index.jsp |
URL: http://www-306.ibm.com/software/globalization/icu/index.jsp |
65 |
Group: Development/Java |
Group: Development/Java |
66 |
Source0: http://download.icu-project.org/files/icu4j/3.8.1/icu4j-3_8_1-src.jar |
Source0: http://download.icu-project.org/files/icu4j/3.8.1/icu4j-4_2_1-src.jar |
67 |
|
Source1: http://repo2.maven.org/maven2/com/ibm/icu/icu4j/4.0.1/%{name}-4.0.1.pom |
68 |
Patch0: %{name}-crosslink.patch |
Patch0: %{name}-crosslink.patch |
|
# Set the OSGi shared configuration dir for our split (libdir and |
|
|
# datadir) Eclipse packages. Will go away once 3.4 is in. |
|
|
Patch1: %{name}-osgiconfigdir.patch |
|
|
# Update the MANIFEST.MF to have the same qualifier in the bundle as is |
|
|
# in Eclipse's Orbit project |
|
|
Patch2: %{name}-updatetimestamp.patch |
|
|
# Bundle the source instead of having it be an exploded directory. This |
|
|
# doesn't work with a 3.3 Eclipse SDK but will with a 3.4 so we'll have |
|
|
# to rebuild once we get 3.4 in. |
|
|
Patch3: %{name}-individualsourcebundle.patch |
|
69 |
# PDE Build is in a location the upstream build.xml doesn't check |
# PDE Build is in a location the upstream build.xml doesn't check |
70 |
Patch4: %{name}-pdebuildlocation.patch |
Patch4: %{name}-pdebuildlocation.patch |
71 |
BuildRequires: ant |
BuildRequires: ant |
115 |
%prep |
%prep |
116 |
%setup -q -c |
%setup -q -c |
117 |
%patch0 -p0 |
%patch0 -p0 |
|
#%patch1 -p0 |
|
|
%patch2 -p0 |
|
|
%patch3 -p0 |
|
118 |
%patch4 -p0 |
%patch4 -p0 |
119 |
|
|
120 |
|
cp %{SOURCE1} . |
121 |
|
|
122 |
%{__sed} -i 's/\r//' license.html |
%{__sed} -i 's/\r//' license.html |
123 |
%{__sed} -i 's/\r//' APIChangeReport.html |
%{__sed} -i 's/\r//' APIChangeReport.html |
124 |
%{__sed} -i 's/\r//' readme.html |
%{__sed} -i 's/\r//' readme.html |
130 |
|
|
131 |
%build |
%build |
132 |
%if %{with_eclipse} |
%if %{with_eclipse} |
133 |
%ant -Dj2se.apidoc=%{_javadocdir}/java -Declipse.home=%{eclipse_base} \ |
%ant -Dj2se.apidoc=%{_javadocdir}/java -Declipse.home=%{eclipse_base} \ |
134 |
-Declipse.basews=gtk -Declipse.baseos=linux \ |
-Declipse.basews=gtk -Declipse.baseos=linux \ |
135 |
-Declipse.basearch=%{eclipse_arch} jar docs eclipsePDEBuild |
-Declipse.basearch=%{eclipse_arch} \ |
136 |
|
-Dicu4j.eclipse.build.version.string=4.2.1.v20100412 \ |
137 |
|
jar docs eclipsePDEBuild |
138 |
%else |
%else |
139 |
%ant -Dicu4j.javac.source=1.5 -Dicu4j.javac.target=1.5 -Dj2se.apidoc=%{_javadocdir}/java jar docs |
%ant -Dicu4j.javac.source=1.5 -Dicu4j.javac.target=1.5 -Dj2se.apidoc=%{_javadocdir}/java jar docs |
140 |
%endif |
%endif |
141 |
|
|
142 |
%install |
%install |
159 |
unzip -qq -d %{buildroot}/%{eclipse_base} eclipseProjects/ICU4J.com.ibm.icu/com.ibm.icu-com.ibm.icu.zip |
unzip -qq -d %{buildroot}/%{eclipse_base} eclipseProjects/ICU4J.com.ibm.icu/com.ibm.icu-com.ibm.icu.zip |
160 |
%endif |
%endif |
161 |
|
|
162 |
%clean |
# maven stuff |
163 |
%__rm -rf %{buildroot} |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} |
164 |
|
cp %{name}-4.0.1.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom |
165 |
|
%add_to_maven_depmap com.ibm.icu %{name} %{version} JPP %{name} |
166 |
|
|
167 |
|
%post |
168 |
|
%update_maven_depmap |
169 |
|
|
170 |
|
%postun |
171 |
|
%update_maven_depmap |
172 |
|
|
173 |
%files |
%files |
174 |
%defattr(0644,root,root,0755) |
%defattr(0644,root,root,0755) |
175 |
%doc license.html readme.html APIChangeReport.html |
%doc license.html readme.html APIChangeReport.html |
176 |
%{_javadir}/%{name}*.jar |
%{_javadir}/%{name}*.jar |
177 |
|
%{_mavendepmapfragdir}/* |
178 |
|
|
179 |
%files javadoc |
%files javadoc |
180 |
%defattr(0644,root,root,0755) |
%defattr(0644,root,root,0755) |