rpms/gettext-commons/F-11 gettext-commons-0.9.6-buildxml.patch, NONE, 1.1 gettext-commons-0.9.6-javadoc.patch, NONE, 1.1 gettext-commons.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

musuruan musuruan at fedoraproject.org
Sat Oct 31 16:36:42 UTC 2009


Author: musuruan

Update of /cvs/pkgs/rpms/gettext-commons/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8817/F-11

Modified Files:
	.cvsignore sources 
Added Files:
	gettext-commons-0.9.6-buildxml.patch 
	gettext-commons-0.9.6-javadoc.patch gettext-commons.spec 
	import.log 
Log Message:
First import


gettext-commons-0.9.6-buildxml.patch:
 build.xml |   65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

--- NEW FILE gettext-commons-0.9.6-buildxml.patch ---

diff -Nur libgettext-commons-java-0.9/build.xml libgettext-commons-java-0.9.new/build.xml
--- libgettext-commons-java-0.9/build.xml	1970-01-01 00:00:00.000000000 +0000
+++ libgettext-commons-java-0.9.new/build.xml	2007-07-24 16:14:16.000000000 +0000
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+
+<project name="gettext-commons" default="dist-binaries" basedir=".">
+
+    <description>gettext-commons for java build file</description>
+
+    <property name="dist" location="Releases"/>
+    <property name="build" value="Build"/>
+    <property name="src" value="src/java"/>
+    <property name="javadoc" value="api"/>
+    <property name="verbose" value="true"/>
+    <property name="debug" value="off"/>
+    <property name="version" value="0.9"/>
+
+    <target name="clean" description="deletes and recreates the destination directory">
+        <delete verbose="${verbose}" dir="${build}"/>
+        <delete verbose="${verbose}" dir="${dist}"/>
+        <delete verbose="${verbose}" dir="${javadoc}"/>
+        <mkdir dir="${build}"/>
+        <mkdir dir="${dist}"/>
+    </target>
+
+    <target name="compile" description="compile the source">
+        <javac classpath="${classpath}"
+            srcdir="${src}"
+            destdir="${build}"
+            debug="${debug}"
+            verbose="${verbose}"/>
+    </target>
+
+    <target name="dist-binaries" depends="clean, compile, javadoc" description="generate binary distribution">
+        <jar destfile="${dist}/gettext-commons-${version}.jar" update="false">
+            <manifest>
+                <attribute name="Main-Class" value="org.xnap.commons.i18n.I18n"/>
+            </manifest>
+            <fileset dir="${build}" excludes="**/test/*.class" />
+        </jar>
+    </target>
+
+    <target name="dist-source" depends="clean, compile" description="generate source distribution">
+        <jar destfile="${dist}/gettext-commons-${version}-src.jar" update="false">
+            <fileset dir="."
+                includes="${src}/**/*.java, ${src}/**/*.metadata, build.xml"/>
+        </jar>
+    </target>
+
+    <target name="javadoc" description="generate javadoc documentation">
+        <javadoc
+            destdir="${javadoc}"
+            defaultexcludes="yes"
+            author="true"
+            version="true"
+            use="true"
+            access="protected"
+            windowtitle="gettext-commons javadoc"
+            failonerror="true">
+            <packageset dir="${src}" defaultexcludes="yes">
+                <include name="org/xnap/commons/i18n/**"/>
+            </packageset>
+        </javadoc>
+    </target>
+
+    <target name="all" depends="dist-source, dist-binaries, javadoc" description="prepare source and binary distributions, and javadoc"/>
+
+</project>


gettext-commons-0.9.6-javadoc.patch:
 I18n.java |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE gettext-commons-0.9.6-javadoc.patch ---
diff -durN gettext-commons-0.9.6.orig/src/java/org/xnap/commons/i18n/I18n.java gettext-commons-0.9.6/src/java/org/xnap/commons/i18n/I18n.java
--- gettext-commons-0.9.6.orig/src/java/org/xnap/commons/i18n/I18n.java	2009-02-11 16:03:21.000000000 +0100
+++ gettext-commons-0.9.6/src/java/org/xnap/commons/i18n/I18n.java	2009-08-14 14:47:58.000000000 +0200
@@ -544,7 +544,7 @@
 
 	/**
 	 * Overloaded method that invokes
-	 * {@link #trnc(String, String, String, long, Object[]) passing <code>obj</code>
+	 * {@link #trnc(String, String, String, long, Object[])} passing <code>obj</code>
 	 * arguments as an array.
 	 * 
 	 * @since 0.9.5
@@ -555,7 +555,7 @@
 	
 	/**
 	 * Overloaded method that invokes
-	 * {@link #trnc(String, String, String, long, Object[]) passing <code>obj1</code> and <code>obj2</code> 
+	 * {@link #trnc(String, String, String, long, Object[])} passing <code>obj1</code> and <code>obj2</code> 
 	 * arguments as an array.
 	 * 
 	 * @since 0.9.5
@@ -566,7 +566,7 @@
 	
 	/**
 	 * Overloaded method that invokes
-	 * {@link #trnc(String, String, String, long, Object[]) passing <code>obj1</code>, <code>obj2</code> and <code>obj3</code>
+	 * {@link #trnc(String, String, String, long, Object[])} passing <code>obj1</code>, <code>obj2</code> and <code>obj3</code>
 	 * arguments as an array.
 	 * 
 	 * @since 0.9.5
@@ -577,7 +577,7 @@
 	
 	/**
 	 * Overloaded method that invokes
-	 * {@link #trnc(String, String, String, long, Object[]) passing <code>obj1</code>, <code>obj2</code>, <code>obj3</code> and <code>obj4</code>
+	 * {@link #trnc(String, String, String, long, Object[])} passing <code>obj1</code>, <code>obj2</code>, <code>obj3</code> and <code>obj4</code>
 	 * arguments as an array.
 	 * 
 	 * @since 0.9.5


--- NEW FILE gettext-commons.spec ---
Name:           gettext-commons
Version:        0.9.6
Release:        4%{?dist}
Summary:        Java internationalization (i18n) library

Group:          Development/Libraries
License:        LGPLv2+
URL:            http://code.google.com/p/gettext-commons/
Source0:        http://gettext-commons.googlecode.com/files/%{name}-%{version}-src.tar.gz
# This patch is from Debian
Patch0:         %{name}-0.9.6-buildxml.patch
# Fix some javadoc warnings
# http://code.google.com/p/gettext-commons/issues/detail?id=36
Patch1:         %{name}-0.9.6-javadoc.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  jpackage-utils
BuildRequires:  java-devel
BuildRequires:  ant
Requires:       jpackage-utils
Requires:       java


%description
The Gettext Commons project provides Java classes for internationalization 
(i18n) through GNU gettext.

The lightweight library combines the power of the unix-style gettext tools 
with the widely used Java ResourceBundles. This makes it possible to use the 
original text instead of arbitrary property keys, which is less cumbersome 
and makes programs easier to read.


%package javadoc
Summary:        Javadocs for %{name}
Group:          Documentation
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils


%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Remove pre-built JAR and class files
find -name '*.jar' -exec rm -f '{}' \;
find -name '*.class' -exec rm -f '{}' \;


%build
ant


%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p Releases/%{name}-0.9.jar   \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar

# JAR alias
pushd $RPM_BUILD_ROOT%{_javadir}
ln -sf %{name}-%{version}.jar %{name}.jar
popd

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp api/*  \
  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

#javadoc alias
pushd $RPM_BUILD_ROOT%{_javadocdir}
ln -sf %{name}-%{version} %{name}
popd



%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%doc ChangeLog LICENSE.txt README


%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}
%{_javadocdir}/%{name}-%{version}


%changelog
* Fri Oct 16 2009 Andrea Musuruane <musuruan at gmail.com> 0.9.6-4
- Submitted javadoc patch upstream
- Fixed javadoc package requires
- Created javadoc directory alias

* Fri Aug 14 2009 Andrea Musuruane <musuruan at gmail.com> 0.9.6-3
- Fixed javadoc generation

* Sun Aug 09 2009 Andrea Musuruane <musuruan at gmail.com> 0.9.6-2
- Created JAR alias

* Sun Aug 02 2009 Andrea Musuruane <musuruan at gmail.com> 0.9.6-1
- First release
- Used build.xml from Debian


--- NEW FILE import.log ---
gettext-commons-0_9_6-4_fc10:F-11:gettext-commons-0.9.6-4.fc10.src.rpm:1257006956


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gettext-commons/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	22 Oct 2009 04:08:25 -0000	1.1
+++ .cvsignore	31 Oct 2009 16:36:41 -0000	1.2
@@ -0,0 +1 @@
+gettext-commons-0.9.6-src.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gettext-commons/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	22 Oct 2009 04:08:26 -0000	1.1
+++ sources	31 Oct 2009 16:36:42 -0000	1.2
@@ -0,0 +1 @@
+20274e0dc252ebb6c12059352936b39e  gettext-commons-0.9.6-src.tar.gz




More information about the fedora-extras-commits mailing list