commit bc9cdaec46e6bf162f70cd0bf9f3989f6ba41d1e5015d6e9a9f085920cc271c4 Author: Adrian Schröter Date: Fri May 3 19:25:54 2024 +0200 Sync from SUSE:SLFO:Main plexus-i18n revision dd6359436659045e39d4cb342e4488cc 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/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..239afad --- /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..d8fab34 --- /dev/null +++ b/plexus-i18n.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Sun Mar 20 18:02:02 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Tue May 11 14:56:51 UTC 2021 - Fridrich Strba + +- Do not compile/run tests against the legacy guava20 package + +------------------------------------------------------------------- +Mon Apr 1 23:12:40 UTC 2019 - Jan Engelhardt + +- Describe package, not the project vision. + +------------------------------------------------------------------- +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..0670aaf --- /dev/null +++ b/plexus-i18n.spec @@ -0,0 +1,107 @@ +# +# spec file +# +# Copyright (c) 2022 SUSE LLC +# +# 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: guava +BuildRequires: xbean +BuildConflicts: java-devel >= 9 +%endif + +%description +Plexus contains end-to-end developer tools for writing applications. +At the core is the container, which can be embedded or for an +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. + +%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 + +%pom_remove_parent . +%pom_xpath_inject pom:project "org.codehaus.plexus" . + +%build +mkdir -p lib +build-jar-repository -s lib plexus/utils plexus-containers/plexus-container-default +%if %{with tests} +build-jar-repository -s lib guava/guava xbean/xbean-reflect plexus/classworlds +%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