This commit is contained in:
parent
24ba02ed6a
commit
281ab62e63
14
_service
Normal file
14
_service
Normal 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>
|
@ -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
3
maven-osgi-0.3.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a8808c3801777f7bc116411e0856c4cca99e5f6dfcf507d1809b663f1c4e9ba9
|
||||||
|
size 7268
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package maven-osgi
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,15 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: maven-osgi
|
Name: maven-osgi
|
||||||
Version: 0.2.0
|
Version: 0.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library for Maven-OSGi integration
|
Summary: Library for Maven-OSGi integration
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: https://maven.apache.org/shared/maven-osgi
|
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
|
Source0: %{name}-%{version}.tar.xz
|
||||||
# ASL mandates that the licence file be included in redistributed source
|
# ASL mandates that the licence file be included in redistributed source
|
||||||
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
@ -35,7 +32,7 @@ BuildRequires: maven-local
|
|||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: mvn(biz.aQute:bndlib)
|
BuildRequires: mvn(biz.aQute:bndlib)
|
||||||
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
|
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)
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -55,11 +52,10 @@ API documentation for %{name}.
|
|||||||
%setup -q
|
%setup -q
|
||||||
cp -p %{SOURCE1} LICENSE
|
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
|
sed -i 's/import aQute\.lib\.osgi/import aQute.bnd.osgi/g' src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java
|
||||||
%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
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{mvn_build} -f -- \
|
%{mvn_build} -f -- \
|
||||||
|
Loading…
Reference in New Issue
Block a user