Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1242177 OBS-URL: https://build.opensuse.org/package/show/Java:packages/aviatorscript?expand=0&rev=1
79 lines
2.3 KiB
RPMSpec
79 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package aviatorscript
|
|
#
|
|
# Copyright (c) 2025 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/
|
|
#
|
|
|
|
|
|
Name: aviatorscript
|
|
Version: 5.4.3
|
|
Release: 0
|
|
Summary: A high performance scripting language hosted on the JVM
|
|
License: LGPL-3.0-only
|
|
Group: Development/Libraries/Java
|
|
URL: http://fnil.net/aviator/
|
|
Source0: https://github.com/killme2008/%{name}/archive/refs/tags/aviator-%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
AviatorScript is a lightweight, high performance scripting language hosted on
|
|
the JVM (and Android platform). It compiles script to java byte code and
|
|
evaluate it on the fly.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-aviator-%{version}
|
|
|
|
chmod 0644 licenses.txt README*.md
|
|
|
|
rm src/main/java/com/googlecode/aviator/spring/S{,p}ringContextFunctionLoader.java
|
|
|
|
%pom_remove_plugin net.revelc.code.formatter:formatter-maven-plugin
|
|
%pom_remove_plugin :maven-shade-plugin
|
|
|
|
%pom_remove_dep org.springframework:spring-context
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
%{mvn_build} -f -- \
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
|
|
|
|
%install
|
|
%mvn_install
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%jpackage_script com.googlecode.aviator.Main "" "" %{name} %{name} true
|
|
|
|
|
|
%files -f .mfiles
|
|
%license licenses.txt
|
|
%doc {SECURITY,README*}.md
|
|
%{_bindir}/%{name}
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license licenses.txt
|
|
|
|
%changelog
|