Files
jakarta-data/jakarta-data.spec

89 lines
2.8 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package jakarta-data
#
# 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/
#
%global base_name data
Name: jakarta-%{base_name}
Version: 1.0.1
Release: 0
Summary: Data-API
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/jakartaee/%{base_name}
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(jakarta.annotation:jakarta.annotation-api)
BuildRequires: mvn(org.eclipse.ee4j:project:pom:)
BuildConflicts: java-devel < 17
BuildArch: noarch
%description
The Jakarta Data specification provides an API for easier data access to
various database types, such as relational and NoSQL. A Java developer can
access those repositories in several ways, including composing custom query
methods on a Repository interface.
Jakarta Datas goal is to provide a familiar and consistent, Jakarta-based
programming model for data access while still retaining the particular traits
and strengths of the underlying data store.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{base_name}-%{version}
%pom_disable_module tck
%pom_disable_module tck-dist
%pom_disable_module spec
%pom_remove_dep org.junit:junit-bom
%pom_remove_dep org.jboss.arquillian:arquillian-bom
%pom_remove_dep org.jboss.arquillian.jakarta:arquillian-jakarta-bom
%pom_remove_dep org.jboss.shrinkwrap:shrinkwrap-bom
%pom_remove_dep org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin org.apache.rat:apache-rat-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
%install
%{mvn_package} :jakarta.data-parent __noinstall
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license NOTICE.adoc LICENSE.txt
%doc {CHANGELOG,CONTRIBUTING,README}.adoc
%files javadoc -f .mfiles-javadoc
%license NOTICE.adoc LICENSE.txt
%changelog