Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1207544 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jakarta-data?expand=0&rev=1
89 lines
2.8 KiB
RPMSpec
89 lines
2.8 KiB
RPMSpec
#
|
||
# 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 Data’s 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
|