Fix build with both xmvn-mojo:javadoc and javadoc:aggregate OBS-URL: https://build.opensuse.org/request/show/1264668 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jakarta-persistence-api?expand=0&rev=3
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package jakarta-persistence-api
|
|
#
|
|
# Copyright (c) 2024 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: jakarta-persistence-api
|
|
Version: 3.2.0
|
|
Release: 0
|
|
Summary: A standard for management of persistence and object/relational mapping in Java
|
|
License: EPL-2.0 OR BSD-3-Clause
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/jakartaee/persistence
|
|
Source0: %{url}/archive/refs/tags/3.2-%{version}-RELEASE.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 11
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
BuildRequires: mvn(org.eclipse.ee4j:project:pom:)
|
|
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Jakarta Persistence defines a standard for management of persistence and
|
|
object/relational mapping in Java environments.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n persistence-3.2-%{version}-RELEASE
|
|
|
|
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin api
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin api
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
pushd api
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
-Dmaven.compiler.release=11
|
|
popd
|
|
|
|
%install
|
|
pushd api
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
popd
|
|
|
|
%files -f api/.mfiles
|
|
%license {NOTICE,LICENSE}.md
|
|
%doc README.md
|
|
|
|
%files javadoc -f api/.mfiles-javadoc
|
|
%license {NOTICE,LICENSE}.md
|
|
|
|
%changelog
|