commit 7e8f839e8cf49ffa19707d1ffbb9b1ae077c2fa8304245e9ff75f09d8c3fb0f1 Author: Fridrich Strba Date: Mon Mar 11 10:29:49 2019 +0000 OBS-URL: https://build.opensuse.org/package/show/Java:packages/plexus-i18n?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/plexus-i18n-1.0-beta-10-src.tar.bz2 b/plexus-i18n-1.0-beta-10-src.tar.bz2 new file mode 100644 index 0000000..f160ea7 --- /dev/null +++ b/plexus-i18n-1.0-beta-10-src.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8ebebf7dbbbad58c3a169b037ccd5380f6143a9eb709bbb3cc11bd0a1e75a88 +size 9900 diff --git a/plexus-i18n-build.xml b/plexus-i18n-build.xml new file mode 100644 index 0000000..f031b0f --- /dev/null +++ b/plexus-i18n-build.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-i18n-migration-to-component-metadata.patch b/plexus-i18n-migration-to-component-metadata.patch new file mode 100644 index 0000000..f86c4fd --- /dev/null +++ b/plexus-i18n-migration-to-component-metadata.patch @@ -0,0 +1,18 @@ +diff -Naur plexus-i18n-1.0-beta-10.orig/pom.xml plexus-i18n-1.0-beta-10/pom.xml +--- plexus-i18n-1.0-beta-10.orig/pom.xml 2008-08-15 21:11:54.000000000 +0200 ++++ plexus-i18n-1.0-beta-10/pom.xml 2011-07-28 15:43:00.813980336 +0200 +@@ -26,12 +26,11 @@ + + + org.codehaus.plexus +- plexus-maven-plugin +- 1.3.5 ++ plexus-component-metadata + + + +- descriptor ++ generate-metadata + + + diff --git a/plexus-i18n-plexus-container-default-missing.patch b/plexus-i18n-plexus-container-default-missing.patch new file mode 100644 index 0000000..f8fda57 --- /dev/null +++ b/plexus-i18n-plexus-container-default-missing.patch @@ -0,0 +1,15 @@ +diff -Naur plexus-i18n-1.0-beta-10.orig/pom.xml plexus-i18n-1.0-beta-10/pom.xml +--- plexus-i18n-1.0-beta-10.orig/pom.xml 2012-03-06 15:41:05.000000000 +0100 ++++ plexus-i18n-1.0-beta-10/pom.xml 2012-03-06 15:54:20.383999743 +0100 +@@ -50,6 +50,11 @@ + plexus-utils + 1.4.5 + ++ ++ org.codehaus.plexus ++ plexus-container-default ++ 1.0-alpha-9-stable-1 ++ + + + diff --git a/plexus-i18n.changes b/plexus-i18n.changes new file mode 100644 index 0000000..4e6e0b2 --- /dev/null +++ b/plexus-i18n.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Mar 11 10:26:43 UTC 2019 - Fridrich Strba + +- Intial packaging of plexus-i18n 1.0-beta-10 +- Generate and customize ant build.xml file diff --git a/plexus-i18n.spec b/plexus-i18n.spec new file mode 100644 index 0000000..d3179d7 --- /dev/null +++ b/plexus-i18n.spec @@ -0,0 +1,104 @@ +# +# spec file for package plexus-i18n +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global base_ver 1.0 +%global beta_ver 10 +%global namedver %{base_ver}-beta-%{beta_ver} +%global parent plexus +%global subname i18n +%bcond_with tests +Name: %{parent}-%{subname} +Version: 1.0~beta10 +Release: 0 +Summary: Plexus I18N Component +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/codehaus-plexus/plexus-i18n +# svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-i18n-1.0-beta-10/ +# tar cjf plexus-i18n-1.0-beta-10-src.tar.bz2 plexus-i18n-1.0-beta-10/ +Source0: %{name}-%{namedver}-src.tar.bz2 +Source1: %{name}-build.xml +Patch0: %{name}-migration-to-component-metadata.patch +Patch1: %{name}-plexus-container-default-missing.patch +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildRequires: plexus-containers-container-default +BuildRequires: plexus-metadata-generator +BuildRequires: plexus-utils +Requires: mvn(org.codehaus.plexus:plexus-container-default) +Requires: mvn(org.codehaus.plexus:plexus-utils) +BuildArch: noarch +%if %{with tests} +BuildRequires: ant-junit +BuildRequires: guava20 +BuildRequires: xbean +%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: Documentation/HTML + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n %{name}-%{namedver} +cp %{SOURCE1} build.xml +%patch0 -p1 +%patch1 -p1 + +%build +mkdir -p lib +build-jar-repository -s lib plexus/utils plexus/classworlds plexus-containers/plexus-container-default +%if %{with tests} +build-jar-repository -s lib guava20/guava-20.0 xbean/xbean-reflect +%endif +%{ant} \ +%if %{without tests} + -Dtest.skip=true \ +%endif + jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/%{name}-%{namedver}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles + +%files javadoc +%{_javadocdir}/%{name} + +%changelog