Accepting request 1113430 from Java:packages

0.3.0

OBS-URL: https://build.opensuse.org/request/show/1113430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/maven-osgi?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2023-09-25 18:04:05 +00:00 committed by Git OBS Bridge
commit 43a56d09c1
5 changed files with 34 additions and 13 deletions

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/apache/maven-osgi.git</param>
<param name="revision">4e53e51ec6634c07a9bb588a47bc8ba267151241</param>
<param name="versionformat">0.3.0</param>
<param name="exclude">**/*.jar</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:de8dabf4663d9f801e87632a2d7cd82a954fe6f59931aab42d8ef9177969b7b7
size 5848

3
maven-osgi-0.3.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8808c3801777f7bc116411e0856c4cca99e5f6dfcf507d1809b663f1c4e9ba9
size 7268

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Sep 25 09:48:28 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Upgrade to the last tag before retiring and name it 0.3.0, since
the version in pom file is 0.3.0-SNAPSHOT
* no changelog provided
* ported from plexus-maven-plugin to plexus-component-metadata
- Remove dependency on the old maven2 package
- Fetch source code from git using source service and clean it of
the bundled jars
-------------------------------------------------------------------
Tue Mar 22 13:32:28 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package maven-osgi
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,12 @@
Name: maven-osgi
Version: 0.2.0
Version: 0.3.0
Release: 0
Summary: Library for Maven-OSGi integration
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://maven.apache.org/shared/maven-osgi
# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-osgi-0.2.0 maven-osgi-0.2.0
# find -name *.jar -delete
# tar caf maven-osgi-0.2.0.tar.xz maven-osgi-0.2.0/
Source0: %{name}-%{version}.tar.xz
# ASL mandates that the licence file be included in redistributed source
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
@ -35,7 +32,7 @@ BuildRequires: maven-local
BuildRequires: xz
BuildRequires: mvn(biz.aQute:bndlib)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildArch: noarch
@ -55,11 +52,10 @@ API documentation for %{name}.
%setup -q
cp -p %{SOURCE1} LICENSE
sed -i 's/import aQute\.lib\.osgi/import aQute.bnd.osgi/g' src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java
%pom_change_dep :maven-project :maven-core:3.9.3:provided
%pom_xpath_set pom:project/pom:version %{version}
# Replace plexus-maven-plugin with plexus-component-metadata
%pom_xpath_set "pom:plugin[pom:artifactId[text()='plexus-maven-plugin']]//pom:goal[text()='descriptor']" generate-metadata
%pom_xpath_set "pom:artifactId[text()='plexus-maven-plugin']" plexus-component-metadata
sed -i 's/import aQute\.lib\.osgi/import aQute.bnd.osgi/g' src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java
%build
%{mvn_build} -f -- \