2019-04-03 10:52:10 +02:00
|
|
|
#
|
2021-10-22 11:16:47 +02:00
|
|
|
# spec file
|
2019-04-03 10:52:10 +02:00
|
|
|
#
|
2023-05-01 19:43:17 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-04-03 10:52:10 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global parent xmvn
|
|
|
|
%global subname parent
|
|
|
|
Name: %{parent}-%{subname}
|
2023-05-01 19:43:17 +02:00
|
|
|
Version: 4.2.0
|
2019-04-03 10:52:10 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: XMvn Parent POM
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
URL: https://fedora-java.github.io/xmvn/
|
|
|
|
Source0: https://github.com/fedora-java/%{parent}/releases/download/%{version}/%{parent}-%{version}.tar.xz
|
2022-05-09 19:04:22 +02:00
|
|
|
BuildRequires: javapackages-local
|
2019-04-03 11:38:41 +02:00
|
|
|
BuildRequires: xmvn-resolve
|
2019-04-03 10:52:10 +02:00
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
|
|
|
Provides: %{name}-pom
|
|
|
|
Obsoletes: %{name}-pom
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides XMvn parent POM.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{parent}-%{version}
|
|
|
|
|
2022-05-05 13:00:06 +02:00
|
|
|
%autopatch -p1
|
|
|
|
|
2019-04-03 10:52:10 +02:00
|
|
|
%pom_remove_plugin -r :maven-site-plugin
|
|
|
|
|
|
|
|
# Upstream code quality checks, not relevant when building RPMs
|
|
|
|
%pom_remove_plugin -r :apache-rat-plugin
|
|
|
|
%pom_remove_plugin -r :maven-checkstyle-plugin
|
|
|
|
%pom_remove_plugin -r :jacoco-maven-plugin
|
|
|
|
|
|
|
|
# remove dependency plugin maven-binaries execution
|
|
|
|
# we provide apache-maven by symlink
|
|
|
|
%pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{parent}
|
|
|
|
install -pm 0644 xmvn-parent/pom.xml %{buildroot}%{_mavenpomdir}/%{parent}/%{name}.pom
|
|
|
|
%add_maven_depmap %{parent}/%{name}.pom
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
%doc AUTHORS README.md
|
|
|
|
|
|
|
|
%changelog
|