# # spec file for package jakarta-rest # # 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 short_name rest Name: jakarta-%{short_name} Version: 4.0.0 Release: 0 Summary: Jakarta RESTful Web Services License: Apache-2.0 Group: Development/Libraries/Java URL: https://projects.eclipse.org/projects/ee4j.%{short_name} Source0: https://github.com/jakartaee/%{short_name}/archive/refs/tags/%{version}-RELEASE.tar.gz BuildRequires: fdupes 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.junit:junit-bom:pom:) BuildConflicts: java-devel < 11 BuildArch: noarch %description Jakarta RESTful Web Services provides a specification document, TCK and foundational API to develop web services following the Representational State Transfer (REST) architectural pattern. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %autosetup -n %{short_name}-%{version}-RELEASE %pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin %pom_remove_plugin :maven-jxr-plugin %pom_remove_plugin :maven-checkstyle-plugin %build pushd jaxrs-api %{mvn_build} -f -- \ -D{maven.compiler.release,jdk.min.version}=11 popd %install pushd jaxrs-api %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} popd %files -f jaxrs-api/.mfiles %license {NOTICE,LICENSE}.md %doc {CONTRIBUTING,README}.md %files javadoc -f jaxrs-api/.mfiles-javadoc %license {NOTICE,LICENSE}.md %changelog