From 68f5e4fdb1fd4021a22aa1b0d61de78fae8335f2 Mon Sep 17 00:00:00 2001 From: Saul Paredes Date: Wed, 14 Feb 2024 21:43:59 -0800 Subject: [PATCH] wip adapt to fedora spec --- .../plexus-sec-dispatcher.signatures.json | 4 +- .../plexus-sec-dispatcher.spec | 38 ++++++++++++------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.signatures.json b/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.signatures.json index 50e269f7793..3a6478c746e 100644 --- a/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.signatures.json +++ b/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.signatures.json @@ -1,6 +1,6 @@ { "Signatures": { "LICENSE-2.0.txt": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30", - "plexus-sec-dispatcher-2.tar.gz": "21ab7548945f3d6a2cb599fe198575f11ea18841a85d5bbe3d62fa6f9183d39a" + "plexus-sec-dispatcher-2.0.tar.gz": "21ab7548945f3d6a2cb599fe198575f11ea18841a85d5bbe3d62fa6f9183d39a" } -} \ No newline at end of file +} diff --git a/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.spec b/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.spec index 3ac8d3102f9..a96d5668ac2 100644 --- a/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.spec +++ b/SPECS/plexus-sec-dispatcher/plexus-sec-dispatcher.spec @@ -2,29 +2,29 @@ Summary: Plexus Security Dispatcher Component Name: plexus-sec-dispatcher -Version: 2 +Version: 2.0 Release: 1%{?dist} License: Apache-2.0 Vendor: Microsoft Corporation Distribution: Azure Linux Group: Development/Libraries/Java URL: https://github.com/codehaus-plexus/plexus-sec-dispatcher -Source0: %{url}/archive/refs/tags/sec-dispatcher-%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: %{url}/archive/refs/tags/plexus-sec-dispatcher-%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://www.apache.org/licenses/LICENSE-2.0.txt # Removed maven-compiler-plugin configuration version in the pom as annotations isn't available in version 1.4. -Patch0: %{name}-pom.patch +# Patch0: %{name}-pom.patch BuildArch: noarch %if %{with bootstrap} BuildRequires: javapackages-bootstrap -BuildRequires: javapackages-local-bootstrap +BuildRequires: javapackages-local-bootstrap %else -BuildRequires: mvn(org.codehaus.plexus:plexus-utils) -BuildRequires: mvn(org.sonatype.plexus:plexus-cipher) +BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin) -BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata) -BuildRequires: mvn(org.codehaus.plexus:plexus-container-default) +BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin) +BuildRequires: mvn(org.codehaus.plexus:plexus-utils) +BuildRequires: mvn(org.sonatype.plexus:plexus-cipher) %endif %description @@ -32,24 +32,36 @@ Plexus Security Dispatcher Component %{?module_package} %{?javadoc_package} + +echo here1 %prep -%setup -q -%patch0 -p1 +%autosetup -n %{name}-%{name}-%{version} +echo here2 + cp %{SOURCE1} . %pom_remove_parent -%pom_xpath_inject "pom:dependency[pom:artifactId='junit']" "test" +%pom_xpath_inject 'pom:project' 'org.codehaus.plexus' %mvn_file : plexus/%{name} + +echo here3 + +%mvn_alias org.codehaus.plexus: org.sonatype.plexus: %build -%mvn_build +%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 + %install %mvn_install -%files -n %{?module_prefix}%{name} -f .mfiles + + +%files -f .mfiles %license LICENSE-2.0.txt + +echo here4 %changelog * Tue Feb 13 2024 CBL-Mariner Servicing Account - 2-1