Files
juel/juel.spec

78 lines
2.3 KiB
RPMSpec

#
# spec file for package juel
#
# Copyright (c) 2022 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: juel
Version: 2.2.7
Release: 0
Summary: Java Unified Expression Language Implementation
License: Apache-2.0
URL: http://juel.sourceforge.net/
Source0: %{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Implementation of the Java Unified Expression Language as specified
by the Expression Language Specification, Version 2.1 (JEE5, part of
the JSP 2.1 standard [JSR-245]), plus maintenance release 2.2 (JEE6).
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
# Use glassfish-el-api
%pom_remove_dep :juel-api modules/impl
%pom_add_dep javax.el:javax.el-api modules/impl
%pom_disable_module modules/api
# Disable for now contains only services refs
%pom_disable_module modules/spi
mv modules/spi/src/main/resources/* modules/impl/src/main/resources/
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "1.8"
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "1.8"
# Fix CRLF
sed 's/\r//' -i LICENSE.txt README.md
%{mvn_file} :%{name}-impl %{name}-impl %{name}
%{mvn_alias} :%{name}-impl "de.odysseus.%{name}:%{name}" "de.odysseus.%{name}:%{name}-spi"
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%doc README.md
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog