jakarta-activation/jakarta-activation.spec

49 lines
1.5 KiB
RPMSpec

Name: jakarta-activation
Version: 2.1.3
Release: 1mamba
Summary: Jakarta Activation API
Group: System/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://jakarta.ee/specifications/activation/2.1/
Source: https://github.com/jakartaee/jaf-api/archive/%{version}/jaf-%{version}.tar.gz
License: BSD, GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: apache-maven
BuildRequires: javapackages
%description
Jakarta Activation defines a set of standard services to: determine the MIME type of an arbitrary piece of data; encapsulate access to it; discover the operations available on it; and instantiate the appropriate bean to perform the operation(s).
#% debug_package
%prep
%setup -q -n jaf-api-%{version}
%build
cd api
mvn -Dmaven.test.skip=true \
-Dmaven.repo.local=$PWD/m2_repo \
clean install
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd api
install -D -m0644 target/jakarta.activation-api-%{version}.jar -t %{buildroot}%{_javadir}
ln -s jakarta.activation-api-%{version}.jar %{buildroot}%{_javadir}/jakarta.activation-api.jar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/jakarta.activation-api-%{version}.jar
%{_javadir}/jakarta.activation-api.jar
%doc LICENSE.md
%changelog
* Wed Oct 30 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-1mamba
- package created using the webbuild interface