File glassfish-pfl.spec of Package glassfish-pfl
#
# spec file for package glassfish-pfl
#
# Copyright (c) 2022 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/
#
Name: glassfish-pfl
Version: 4.1.2
Release: 0
Summary: Java EE Primitive Function Library
License: BSD-3-Clause
URL: https://github.com/eclipse-ee4j/orb-gmbal-pfl
Source0: %{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: java-devel >= 9
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.eclipse.ee4j:project:pom:)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.ow2.asm:asm-commons)
BuildRequires: mvn(org.ow2.asm:asm-util)
BuildArch: noarch
%description
GMBAL- Java EE Primative Function Library
This package includes the parent pom
%package basic
Summary: PFL Basic
%description basic
GMBAL- Java EE Primative Function Library
This package contains the Basic functions
%package basic-tools
Summary: PFL Basic Tools
%description basic-tools
GMBAL- Java EE Primative Function Library
This package contains the Basic Tools
%package dynamic
Summary: PFL Dynamic
%description dynamic
GMBAL- Java EE Primative Function Library
Functionality that may include class generation
%package test
Summary: PFL Test
%description test
GMBAL- Java EE Primative Function Library
This package contains the test library
%package tf
Summary: PFL TF
%description tf
GMBAL- Java EE Primative Function Library
This package contains the TF library
%package tf-tools
Summary: PFL TF TOOLS
%description tf-tools
GMBAL- Java EE Primative Function Library
This package contains the TF tools
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
%pom_remove_plugin :maven-toolchains-plugin
%pom_remove_plugin :maven-scm-publish-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin pfl-basic \
"<configuration><release>9</release></configuration>"
%pom_xpath_remove \
"pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text() = 'install']" \
pfl-basic pfl-dynamic
%pom_xpath_remove \
"pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text() = 'deploy']" \
pfl-basic pfl-dynamic
%build
%{mvn_build} -f -s -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles-pfl
%license LICENSE.md NOTICE.md
%doc README.md
%files basic -f .mfiles-pfl-basic
%files basic-tools -f .mfiles-pfl-basic-tools
%files dynamic -f .mfiles-pfl-dynamic
%files test -f .mfiles-pfl-test
%files tf -f .mfiles-pfl-tf
%files tf-tools -f .mfiles-pfl-tf-tools
%files javadoc -f .mfiles-javadoc
%license LICENSE.md NOTICE.md
%changelog