From 572a19dc08c7c57042006bd5ee8aa9ad0f2f0ab909effd5f992e418b59eafd6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 19:25:19 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main plexus-component-api revision 1c494c6c577a55580f4c6f5d9b2c1041 --- .gitattributes | 23 +++++ plexus-component-api-1.0-alpha-15.tar.xz | 3 + plexus-component-api-build.xml | 118 +++++++++++++++++++++++ plexus-component-api.changes | 11 +++ plexus-component-api.spec | 82 ++++++++++++++++ 5 files changed, 237 insertions(+) create mode 100644 .gitattributes create mode 100644 plexus-component-api-1.0-alpha-15.tar.xz create mode 100644 plexus-component-api-build.xml create mode 100644 plexus-component-api.changes create mode 100644 plexus-component-api.spec 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-component-api-1.0-alpha-15.tar.xz b/plexus-component-api-1.0-alpha-15.tar.xz new file mode 100644 index 0000000..099ded6 --- /dev/null +++ b/plexus-component-api-1.0-alpha-15.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6877b483719444e2f38392e844624541c6f95e31e50b5107b2dd833246ecc801 +size 8584 diff --git a/plexus-component-api-build.xml b/plexus-component-api-build.xml new file mode 100644 index 0000000..103c454 --- /dev/null +++ b/plexus-component-api-build.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-component-api.changes b/plexus-component-api.changes new file mode 100644 index 0000000..9570a72 --- /dev/null +++ b/plexus-component-api.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Sun Mar 20 15:41:06 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Wed Mar 6 17:10:12 UTC 2019 - Fridrich Strba + +- Initial packaging of plexus-component-api 1.0-alpha-15 +- Generate and customize ant build.xml file to be able to build + without maven diff --git a/plexus-component-api.spec b/plexus-component-api.spec new file mode 100644 index 0000000..0960218 --- /dev/null +++ b/plexus-component-api.spec @@ -0,0 +1,82 @@ +# +# spec file for package plexus-component-api +# +# 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/ +# + + +%define base_ver 1.0 +%define alpha_ver 15 +%define project_version %{base_ver}-alpha-%{alpha_ver} +Name: plexus-component-api +Version: %{base_ver}~alpha%{alpha_ver} +Release: 0 +Summary: Plexus Component API +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-%{project_version}/%{name}/ +#svn export http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-15/plexus-component-api/ plexus-component-api-1.0-alpha-15 +#tar cJf plexus-component-api-1.0-alpha-15.tar.xz plexus-component-api-1.0-alpha-15/ +Source0: %{name}-%{project_version}.tar.xz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.6 +BuildRequires: javapackages-local +BuildRequires: plexus-classworlds +Requires: mvn(org.codehaus.plexus:plexus-classworlds) +BuildArch: noarch + +%description +Plexus Component API + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{project_version} +cp %{SOURCE1} build.xml + +%pom_remove_parent + +%pom_xpath_inject "pom:project" "org.codehaus.plexus" + +%build +mkdir -p lib +build-jar-repository -s lib plexus/classworlds +%{ant} jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/%{name}-%{project_version}.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