diff --git a/.cvsignore b/.cvsignore index e69de29..da6fe37 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +plexus-i18n-1.0-beta-6-src.tar.gz diff --git a/plexus-i18n-1.0-build.xml b/plexus-i18n-1.0-build.xml new file mode 100644 index 0000000..8b7565f --- /dev/null +++ b/plexus-i18n-1.0-build.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ================================= WARNING ================================ + Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed. + ========================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-i18n-1.0-plexus-components.xml b/plexus-i18n-1.0-plexus-components.xml new file mode 100644 index 0000000..eb74f72 --- /dev/null +++ b/plexus-i18n-1.0-plexus-components.xml @@ -0,0 +1,10 @@ + + + + + org.codehaus.plexus.i18n.I18N + org.codehaus.plexus.i18n.DefaultI18N + + + + diff --git a/plexus-i18n-1.0-project.xml b/plexus-i18n-1.0-project.xml new file mode 100644 index 0000000..8781771 --- /dev/null +++ b/plexus-i18n-1.0-project.xml @@ -0,0 +1,81 @@ + + + plexus-components + org.codehaus.plexus + 1.1.4 + + 4.0.0 + org.codehaus.plexus + plexus-i18n + Plexus I18N Component + 1.0-beta-6 + org.codehaus.plexus.i18n + + src/main/java + src/test/java + + + src/main/resources + + **/* + + + + + + + src/test/resources + + **/* + + + + + **/*Test.java + + + **/Abstract*.java + + + + + org.codehaus.plexus + plexus-maven-plugin + 1.1 + + + + descriptor + + + + + + + + + JPP + plexus-container-default + plexus_container-default.jar + 1.0 + + + JPP + plexus-utils + plexus_utils.jar + 1.0 + + + JPP + classworlds + classworlds.jar + 1.1 + + + JPP + junit + [junit].jar + 3.8.1 + + + diff --git a/plexus-i18n.spec b/plexus-i18n.spec new file mode 100644 index 0000000..e4dffd2 --- /dev/null +++ b/plexus-i18n.spec @@ -0,0 +1,176 @@ +# Copyright (c) 2000-2005, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +%define _with_gcj_support 0 + +%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support: +%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support: +i%{_gcj_support}}%{!?_gcj_support:0}}} + +%define gcj_support 0 + +Name: plexus-i18n +Version: 1.0 +Release: 0.b6.3jpp.1%{?dist} +Epoch: 0 +Summary: Plexus I18N Component +License: Apache Software License +Group: Development/Java +URL: http://plexus.codehaus.org/ +Source0: plexus-i18n-1.0-beta-6-src.tar.gz +# svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-i18n-1.0-beta-6 +# tar czf plexus-i18n.tar.gz plexus-i18n-1.0-beta-6/ +Source1: plexus-i18n-1.0-build.xml +Source2: plexus-i18n-1.0-project.xml +Source3: plexus-i18n-1.0-plexus-components.xml + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%if ! %{gcj_support} +BuildArch: noarch +%endif +BuildRequires: jpackage-utils >= 0:1.6 +BuildRequires: ant >= 0:1.6 +BuildRequires: classworlds >= 0:1.1 +BuildRequires: plexus-container-default +BuildRequires: plexus-utils +Requires: classworlds >= 0:1.1 +Requires: plexus-container-default +Requires: plexus-utils + +%if %{gcj_support} +BuildRequires: java-gcj-compat-devel +Requires(post): java-gcj-compat +Requires(postun): java-gcj-compat +%endif + +%description +The Plexus project seeks to create end-to-end developer tools for +writing applications. At the core is the container, which can be +embedded or for a full scale application server. There are many +reusable components for hibernate, form processing, jndi, i18n, +velocity, etc. Plexus also includes an application server which +is like a J2EE application server, without all the baggage. + + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Documentation + +%description javadoc +Javadoc for %{name}. + + +%prep +%setup -q -n plexus-i18n-1.0-beta-6 +cp %{SOURCE1} build.xml +cp %{SOURCE2} project.xml +mkdir -p src/main/resources/META-INF/plexus +cp %{SOURCE3} src/main/resources/META-INF/plexus/components.xml + +%build +mkdir -p target/lib +build-jar-repository -s -p target/lib \ +classworlds \ +plexus/container-default \ +plexus/utils \ + +ant jar javadoc + + +%install +rm -rf $RPM_BUILD_ROOT +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus +install -pm 644 target/%{name}-%{version}-beta-6.jar \ + $RPM_BUILD_ROOT%{_javadir}/plexus/i18n-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir}/plexus && for jar in *-%{version}*; \ + do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +# javadoc +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink + + +%if %{gcj_support} +%{_bindir}/aot-compile-rpm +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%if %{gcj_support} +%post +if [ -x %{_bindir}/rebuild-gcj-db ] +then + %{_bindir}/rebuild-gcj-db +fi +%endif + +%if %{gcj_support} +%postun +if [ -x %{_bindir}/rebuild-gcj-db ] +then + %{_bindir}/rebuild-gcj-db +fi +%endif + +%files +%defattr(-,root,root,-) +%{_javadir}/* + +%if %{gcj_support} +%dir %attr(-,root,root) %{_libdir}/gcj/%{name} +%attr(-,root,root) %{_libdir}/gcj/%{name}/i18n-1.0.jar.* +%endif + +%files javadoc +%defattr(-,root,root,-) +%doc %{_javadocdir}/* + +%changelog +* Mon Feb 19 2007 Tania Bento - 0:1.0-0.b6.3jpp.1 +- Fixed %%Release tag. +- Changed the svn URL. +- Added instruction on how to tar the files extracted with svn export. +- Fixed %%BuildRoot tag. +- Removed %%post and %%postun sections for javadoc and made necessary changes. +- Added gcj support. + +* Wed Oct 25 2006 Ralph Apel - 0:1.0-0.b6.3jpp +- Fix components.xml + +* Tue May 30 2006 Ralph Apel - 0:1.0-0.b6.2jpp +- First JPP-1.7 release +- Drop maven support - waiting for maven2 + +* Mon Nov 07 2005 Ralph Apel - 0:1.0-0.b6.1jpp +- First JPackage build + diff --git a/sources b/sources index e69de29..f1c023e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +37d0050c62c1ceb49a50420a8ee0dff8 plexus-i18n-1.0-beta-6-src.tar.gz