114 lines
3.6 KiB
RPMSpec
114 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package maven-resolver2-supplier-mvn3
|
|
#
|
|
# Copyright (c) 2025 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_name maven-resolver
|
|
%define fragment_name supplier-mvn3
|
|
%define _buildshell /bin/bash
|
|
Name: %{base_name}2-%{fragment_name}
|
|
Version: 2.0.10
|
|
Release: 0
|
|
Summary: Maven Artifact Resolver Instance Supplier Maven3
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://maven.apache.org/resolver/
|
|
Source0: https://archive.apache.org/dist/maven/resolver/%{base_name}-%{version}-source-release.zip
|
|
Source1: %{base_name}2-build.tar.xz
|
|
BuildRequires: %{base_name}2-api
|
|
BuildRequires: %{base_name}2-connector-basic
|
|
BuildRequires: %{base_name}2-impl
|
|
BuildRequires: %{base_name}2-named-locks
|
|
BuildRequires: %{base_name}2-spi
|
|
BuildRequires: %{base_name}2-transport-apache
|
|
BuildRequires: %{base_name}2-transport-file
|
|
BuildRequires: %{base_name}2-util
|
|
BuildRequires: ant
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 17
|
|
BuildRequires: javapackages-local >= 6
|
|
BuildRequires: maven-lib
|
|
BuildRequires: unzip
|
|
BuildRequires: xmvn-install
|
|
BuildRequires: xmvn-resolve
|
|
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A helper module to provide RepositorySystem instances.
|
|
|
|
Apache Maven Artifact Resolver is a library for working with artifact
|
|
repositories and dependency resolution. Maven Artifact Resolver deals with the
|
|
specification of local repository, remote repository, developer workspaces,
|
|
artifact transports and artifact resolution.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package provides %{summary}.
|
|
|
|
%prep
|
|
%setup -q -n %{base_name}-%{version} -a1
|
|
|
|
%pom_remove_dep :jetty-bom
|
|
|
|
# Use newer maven4 version
|
|
%pom_xpath_set pom:project/pom:properties/pom:maven4Version 4
|
|
|
|
%{mvn_package} :%{base_name} __noinstall
|
|
|
|
%{mvn_file} :{*} %{base_name}2/@1
|
|
|
|
%build
|
|
mkdir -p lib
|
|
build-jar-repository -s lib \
|
|
maven/maven-model-builder \
|
|
maven/maven-resolver-provider \
|
|
maven-resolver2/maven-resolver-api-2.0.7 \
|
|
maven-resolver2/maven-resolver-connector-basic-2.0.7 \
|
|
maven-resolver2/maven-resolver-impl-2.0.7 \
|
|
maven-resolver2/maven-resolver-named-locks-2.0.7 \
|
|
maven-resolver2/maven-resolver-spi-2.0.7 \
|
|
maven-resolver2/maven-resolver-transport-apache \
|
|
maven-resolver2/maven-resolver-transport-file-2.0.7 \
|
|
maven-resolver2/maven-resolver-util-2.0.7
|
|
|
|
%{ant} -f %{base_name}-%{fragment_name} \
|
|
%if %{without tests}
|
|
-Dtest.skip=true \
|
|
%endif
|
|
package javadoc
|
|
|
|
%{mvn_artifact} pom.xml
|
|
|
|
%{mvn_artifact} \
|
|
%{base_name}-%{fragment_name}/pom.xml \
|
|
%{base_name}-%{fragment_name}/target/%{base_name}-%{fragment_name}-%{version}.jar
|
|
|
|
%install
|
|
%mvn_install -J %{base_name}-%{fragment_name}/target/site/apidocs
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE NOTICE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE NOTICE
|
|
|
|
%changelog
|