Files
jakarta-tags/jakarta-tags.spec

77 lines
2.2 KiB
RPMSpec

#
# spec file for package jakarta-tags
#
# 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 tags
%global git_tag %{version}-RELEASE
Name: jakarta-%{short_name}
Version: 3.0.2
Release: 0
Summary: Jakarta Standard Tag Library API
License: EPL-2.0
Group: Development/Libraries/Java
URL: https://github.com/jakartaee/%{short_name}
Source0: %{url}/archive/refs/tags/%{git_tag}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(jakarta.el:jakarta.el-api)
BuildRequires: mvn(jakarta.servlet.jsp:jakarta.servlet.jsp-api)
BuildRequires: mvn(jakarta.servlet:jakarta.servlet-api)
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)
BuildConflicts: java-devel < 17
BuildArch: noarch
%description
Jakarta Standard Tag Library API.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{short_name}-%{git_tag}
%pom_remove_plugin :maven-source-plugin api
%pom_remove_plugin :maven-javadoc-plugin api
%pom_remove_plugin :maven-enforcer-plugin api
%build
pushd api
%{mvn_build} -f
popd
%install
pushd api
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
popd
%files -f api/.mfiles
%license {NOTICE,LICENSE}.md
%doc {CONTRIBUTING,README}.md
%files javadoc -f api/.mfiles-javadoc
%license {NOTICE,LICENSE}.md
%changelog