# # spec file for package jakarta-mvc # # 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 mvc Name: jakarta-%{short_name} Version: 2.1.0 Release: 0 Summary: Jakarta MVC Specification 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}.tar.gz BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(jakarta.ws.rs:jakarta.ws.rs-api) >= 4.0.0 BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(jakarta.enterprise:jakarta.enterprise.cdi-api) >= 4.1.0 BuildRequires: mvn(jakarta.validation:jakarta.validation-api) BuildRequires: mvn(org.eclipse.ee4j:project:pom:) BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin) BuildConflicts: mvn(jakarta.ws.rs:jakarta.ws.rs-api) < 4.0.0 BuildConflicts: java-devel < 11 BuildArch: noarch %description This project contains the specification document and Java API sources. The project is organized into two modules: api and spec. The api module contains the Java API sources, which may be used to generate the API JAR and JavaDoc. The spec module contains the specification document sources, which may be used to generate the specification document. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %autosetup -n %{short_name}-%{version} %pom_remove_plugin :maven-source-plugin api %pom_remove_plugin :maven-javadoc-plugin api %pom_remove_plugin :maven-antrun-plugin api %pom_change_dep jakarta.ws.rs:jakarta.ws.rs-api :::compile api %build pushd api %{mvn_build} -f popd %install pushd api %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} popd %files -f api/.mfiles %license LICENSE %doc {CONTRIBUTING,README}.md %files javadoc -f api/.mfiles-javadoc %license LICENSE %changelog