2023-03-06 07:02:07 +00:00
|
|
|
#
|
|
|
|
# spec file for package mvel2
|
|
|
|
#
|
2024-01-27 19:38:36 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-03-06 07:02:07 +00:00
|
|
|
#
|
|
|
|
# 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: mvel2
|
2024-03-19 06:52:11 +00:00
|
|
|
Version: 2.5.2
|
2023-03-06 07:02:07 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: MVEL (MVFLEX Expression Language)
|
2023-09-10 15:42:07 +00:00
|
|
|
License: Apache-2.0 AND BSD-3-Clause
|
2023-03-06 07:02:07 +00:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: http://mvel.documentnode.com/
|
|
|
|
Source0: https://github.com/mvel/mvel/archive/refs/tags/%{name}-%{version}.Final.tar.gz
|
|
|
|
Patch0: 00-fix-samples.patch
|
2023-09-16 09:02:39 +00:00
|
|
|
Patch1: reproducible-date.patch
|
2023-03-06 07:02:07 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
MVEL has largely been inspired by Java syntax, but has some fundamental
|
|
|
|
differences aimed at making it more efficient as an expression language, such
|
|
|
|
as operators that directly support collection, array and string matching, as
|
|
|
|
well as regular expressions. MVEL is used to evaluate expressions written using
|
|
|
|
Java syntax.
|
|
|
|
|
|
|
|
In addition to the expression language, MVEL serves as a templating language
|
|
|
|
for configuration and string construction. Another wiki page for a summary
|
|
|
|
information is: https://en.wikipedia.org/wiki/MVEL.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}
|
|
|
|
|
2023-09-10 15:42:07 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n mvel-%{name}-%{version}.Final
|
2024-02-21 10:51:52 +00:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1 -p1
|
2023-09-10 15:42:07 +00:00
|
|
|
rm -rf lib/
|
|
|
|
sed -i -e 's/\r//' samples/scripts/line{Child,TopLevel}.mvel
|
|
|
|
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
%pom_remove_plugin :maven-shade-plugin
|
2024-03-19 06:52:11 +00:00
|
|
|
%pom_remove_plugin :maven-enforcer-plugin
|
2023-09-10 15:42:07 +00:00
|
|
|
|
|
|
|
%pom_xpath_remove 'pom:build/pom:extensions'
|
|
|
|
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
|
2023-03-06 07:02:07 +00:00
|
|
|
%build
|
2023-09-13 04:58:46 +00:00
|
|
|
%{mvn_build} -f -- \
|
|
|
|
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
|
|
|
|
-Dsource=8
|
2023-03-06 07:02:07 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
2023-09-10 15:42:07 +00:00
|
|
|
%jpackage_script org.mvel2.sh.Main "" "" %{name}:objectweb-asm %{name} true
|
2023-03-06 07:02:07 +00:00
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license *LICENSE.txt
|
|
|
|
%doc samples/scripts
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%license *LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|