Files
mvel2/mvel2.spec
Fridrich Strba 98eb5d3104 Accepting request 1159151 from home:urbic:branches:Java:packages
- Update to v2.5.2
  * No changelog provided by upstream
- Modify patch:
  * reproducible-date.patch
    + fixed MVEL shell startup error when the SOURCE_DATE_EPOCH
      environment variable is not defined
- Remove build dependency on
  mvn(org.apache.maven.plugins:maven-enforcer-plugin)

OBS-URL: https://build.opensuse.org/request/show/1159151
OBS-URL: https://build.opensuse.org/package/show/Java:packages/mvel2?expand=0&rev=7
2024-03-19 06:52:11 +00:00

86 lines
2.7 KiB
RPMSpec

#
# spec file for package mvel2
#
# 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/
#
Name: mvel2
Version: 2.5.2
Release: 0
Summary: MVEL (MVFLEX Expression Language)
License: Apache-2.0 AND BSD-3-Clause
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
Patch1: reproducible-date.patch
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}
%prep
%setup -q -n mvel-%{name}-%{version}.Final
%patch -P 0 -p1
%patch -P 1 -p1
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
%pom_remove_plugin :maven-enforcer-plugin
%pom_xpath_remove 'pom:build/pom:extensions'
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%jpackage_script org.mvel2.sh.Main "" "" %{name}:objectweb-asm %{name} true
%files -f .mfiles
%license *LICENSE.txt
%doc samples/scripts
%{_bindir}/%{name}
%files javadoc -f .mfiles-javadoc
%license *LICENSE.txt
%changelog