From d28131ed25e1796d6ebfc54f1051b0cab711d47b Mon Sep 17 00:00:00 2001 From: mef Date: Feb 05 2010 15:01:03 +0000 Subject: Add maven pom and depmap fragment --- diff --git a/icu4j-4.0.1.pom b/icu4j-4.0.1.pom new file mode 100644 index 0000000..761defb --- /dev/null +++ b/icu4j-4.0.1.pom @@ -0,0 +1,22 @@ + + 4.0.0 + com.ibm.icu + icu4j + 4.0.1 + jar + ICU4J + http://www.icu-project.org/ + The International Component for Unicode (ICU) is a mature, + portable set of C/C++ and Java libraries for Unicode support, software + internationalization (I18N) and globalization (G11N), giving + applications the same results on all platforms. + + + ICU License + http://source.icu-project.org/repos/icu/icu/trunk/license.html + repo + + + diff --git a/icu4j.spec b/icu4j.spec index 7afe05c..407fa54 100644 --- a/icu4j.spec +++ b/icu4j.spec @@ -44,13 +44,14 @@ Name: icu4j Version: 4.0.1 -Release: 4%{?dist} +Release: 5%{?dist} Epoch: 1 Summary: International Components for Unicode for Java License: MIT and EPL URL: http://www-306.ibm.com/software/globalization/icu/index.jsp Group: Development/Libraries/Java Source0: http://download.icu-project.org/files/icu4j/4.0.1/icu4j-4_0_1-src.jar +Source1: http://repo2.maven.org/maven2/com/ibm/icu/icu4j/%{version}/%{name}-%{version}.pom Patch0: %{name}-crosslink.patch # Update the MANIFEST.MF to have the same qualifier in the bundle as is # in Eclipse's Orbit project @@ -69,6 +70,8 @@ BuildRequires: java-javadoc >= 1:1.6.0 BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils >= 0:1.5 Requires: jpackage-utils +Requires(post): jpackage-utils +Requires(postun): jpackage-utils # This is to ensure we get OpenJDK and not GCJ Requires: java >= 1:1.6.0 %if %{with_eclipse} @@ -121,6 +124,8 @@ Eclipse plugin support for %{name}. #%patch3 -p0 %patch4 -p0 +cp %{SOURCE1} . + %{__sed} -i 's/\r//' license.html %{__sed} -i 's/\r//' APIChangeReport.html %{__sed} -i 's/\r//' readme.html @@ -161,6 +166,17 @@ install -d -m755 %{buildroot}/%{eclipse_base} unzip -qq -d %{buildroot}/%{eclipse_base} eclipseProjects/ICU4J.com.ibm.icu/com.ibm.icu-com.ibm.icu.zip %endif +# maven stuff +install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} +cp %{name}-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom +%add_to_maven_depmap com.ibm.icu %{name} %{version} JPP %{name} + +%post +%update_maven_depmap + +%postun +%update_maven_depmap + %clean %__rm -rf %{buildroot} @@ -168,6 +184,8 @@ unzip -qq -d %{buildroot}/%{eclipse_base} eclipseProjects/ICU4J.com.ibm.icu/com. %defattr(0644,root,root,0755) %doc license.html readme.html APIChangeReport.html %{_javadir}/%{name}*.jar +%{_mavendepmapfragdir}/* +%{_mavenpomdir}/*.pom %files javadoc %defattr(0644,root,root,0755) @@ -185,6 +203,9 @@ unzip -qq -d %{buildroot}/%{eclipse_base} eclipseProjects/ICU4J.com.ibm.icu/com. %endif %changelog +* Fri Feb 5 2010 Mary Ellen Foster 1:4.0.1-5 +- Add maven pom and depmap fragment + * Tue Sep 29 2009 Alexander Kurtakov 1:4.0.1-4 - Simplify with_eclipse conditional.