rpms/icu4j/devel icu4j-4.0.1.pom,NONE,1.1 icu4j.spec,1.22,1.23

mef mef at fedoraproject.org
Fri Feb 5 15:01:03 UTC 2010


Author: mef

Update of /cvs/pkgs/rpms/icu4j/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4564

Modified Files:
	icu4j.spec 
Added Files:
	icu4j-4.0.1.pom 
Log Message:
Add maven pom and depmap fragment


--- NEW FILE icu4j-4.0.1.pom ---
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.ibm.icu</groupId>
    <artifactId>icu4j</artifactId>
    <version>4.0.1</version>
    <packaging>jar</packaging>
    <name>ICU4J</name>
    <url>http://www.icu-project.org/</url>
    <description>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.</description>
    <licenses>
        <license>
            <name>ICU License</name>
            <url>http://source.icu-project.org/repos/icu/icu/trunk/license.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
</project>


Index: icu4j.spec
===================================================================
RCS file: /cvs/pkgs/rpms/icu4j/devel/icu4j.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -p -r1.22 -r1.23
--- icu4j.spec	8 Jan 2010 17:57:39 -0000	1.22
+++ icu4j.spec	5 Feb 2010 15:01:03 -0000	1.23
@@ -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_
 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
 %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
 %endif
 
 %changelog
+* Fri Feb  5 2010 Mary Ellen Foster <mefoster at gmail.com> 1:4.0.1-5
+- Add maven pom and depmap fragment
+
 * Tue Sep 29 2009 Alexander Kurtakov <akurtako at redhat.com> 1:4.0.1-4
 - Simplify with_eclipse conditional.
 



More information about the scm-commits mailing list