2012-02-28 10:26:38 +00:00
|
|
|
#
|
2024-08-13 07:07:42 +00:00
|
|
|
# spec file for package apache-commons-parent
|
2012-02-28 10:26:38 +00:00
|
|
|
#
|
2025-01-24 14:40:27 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2012-02-28 10:26:38 +00: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.
|
|
|
|
|
2018-10-23 18:07:41 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-28 10:26:38 +00:00
|
|
|
#
|
|
|
|
|
2012-01-03 11:56:31 +00:00
|
|
|
|
|
|
|
%define base_name parent
|
|
|
|
%define short_name commons-%{base_name}
|
2012-02-28 10:26:38 +00:00
|
|
|
Name: apache-%{short_name}
|
2025-04-01 07:58:38 +00:00
|
|
|
Version: 81
|
2012-02-28 10:26:38 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Apache Commons Parent Pom
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2019-04-03 13:16:54 +00:00
|
|
|
URL: https://commons.apache.org/commons-parent-pom.html
|
2024-08-13 07:07:42 +00:00
|
|
|
Source0: https://github.com/apache/%{short_name}/archive/refs/tags/rel/%{short_name}-%{version}.tar.gz
|
2017-05-19 11:13:06 +00:00
|
|
|
BuildRequires: javapackages-local
|
2019-04-03 14:12:46 +00:00
|
|
|
BuildRequires: xmvn-resolve
|
2019-04-03 13:16:54 +00:00
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
|
|
|
|
BuildRequires: mvn(org.apache:apache:pom:)
|
|
|
|
# Not generated automatically
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
Requires: mvn(org.apache:apache:pom:)
|
|
|
|
Requires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
2017-05-19 11:13:06 +00:00
|
|
|
BuildArch: noarch
|
2012-01-03 11:56:31 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Project Object Model files for the apache-commons packages.
|
|
|
|
|
|
|
|
%prep
|
2024-08-13 07:07:42 +00:00
|
|
|
%setup -q -n %{short_name}-rel-%{short_name}-%{version}
|
2013-08-27 09:03:27 +00:00
|
|
|
|
|
|
|
# Plugin is not in suse
|
|
|
|
%pom_remove_plugin org.apache.commons:commons-build-plugin
|
|
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-scm-publish-plugin
|
2024-08-13 07:07:42 +00:00
|
|
|
%pom_remove_plugin :maven-artifact-plugin
|
|
|
|
%pom_remove_plugin :cyclonedx-maven-plugin
|
|
|
|
%pom_remove_plugin :spdx-maven-plugin
|
|
|
|
%pom_remove_plugin :moditect-maven-plugin
|
2025-01-24 14:40:27 +00:00
|
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-changes-plugin
|
2012-01-03 11:56:31 +00:00
|
|
|
|
2018-10-23 18:07:41 +00:00
|
|
|
# Plugins useless in package builds
|
|
|
|
%pom_remove_plugin :apache-rat-plugin
|
|
|
|
%pom_remove_plugin :buildnumber-maven-plugin
|
|
|
|
%pom_remove_plugin :maven-site-plugin
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
2022-09-14 12:29:10 +00:00
|
|
|
%pom_remove_plugin :versions-maven-plugin
|
2012-01-03 11:56:31 +00:00
|
|
|
|
2024-08-13 07:07:42 +00:00
|
|
|
# Unused dependencies
|
|
|
|
%pom_remove_dep -r :junit-bom
|
|
|
|
|
2018-10-23 18:07:41 +00:00
|
|
|
# Remove profiles for plugins that are useless in package builds
|
2024-11-07 11:59:59 +00:00
|
|
|
for profile in animal-sniffer japicmp jacoco ; do
|
2018-10-23 18:07:41 +00:00
|
|
|
%pom_xpath_remove "pom:profile[pom:id='$profile']"
|
|
|
|
done
|
|
|
|
|
2025-04-01 11:00:20 +00:00
|
|
|
# Do not fail on warnings, too many projects produce them.
|
|
|
|
%pom_xpath_set "pom:project/pom:properties/pom:commons.javadoc.failOnWarnings" "false"
|
|
|
|
|
2019-04-03 13:16:54 +00:00
|
|
|
%build
|
|
|
|
|
2018-10-23 18:07:41 +00:00
|
|
|
%install
|
|
|
|
# pom
|
2019-04-03 13:16:54 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
|
|
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{short_name}.pom
|
|
|
|
%add_maven_depmap %{name}/%{short_name}.pom
|
2012-01-03 11:56:31 +00:00
|
|
|
|
2019-04-03 13:16:54 +00:00
|
|
|
%files -f .mfiles
|
2018-10-23 18:07:41 +00:00
|
|
|
%doc RELEASE-NOTES.txt
|
|
|
|
%license LICENSE.txt NOTICE.txt
|
2012-01-03 11:56:31 +00:00
|
|
|
|
|
|
|
%changelog
|