# # spec file # # 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/ # %global short_name commons-ognl %global base_version 4.0 %global git_date 20191021 %global git_rev 51cf8f4 Name: apache-%{short_name} Version: %{base_version}~%{git_date}git%{git_rev} Release: 14.51 Summary: Object Graph Navigation Library License: Apache-2.0 URL: https://commons.apache.org/proper/commons-ognl/ Source0: %{short_name}-%{git_rev}.tar.xz BuildRequires: fdupes BuildRequires: java-devel >= 1.8 BuildRequires: maven-local %if 0%{?rhel} >= 9 BuildRequires: xmvn-tools BuildRequires: xmvn-minimal %endif BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin) BuildRequires: mvn(org.javassist:javassist) BuildArch: noarch %description OGNL is an expression language for getting and setting properties of Java objects, plus other extras such as list projection and selection and lambda expressions. %package javadoc Summary: API documentation for %{name} %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{short_name}-%{git_rev} %pom_remove_plugin org.apache.maven.plugins:maven-clean-plugin %pom_xpath_set "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" "1.6" %pom_xpath_set "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" "1.6" %{mvn_file} :%{short_name} %{short_name} %{name} %build %{mvn_build} -f -- \ -Dmaven.compiler.release=8 \ -Dmaven.compiler.source=8 %install %mvn_install %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %license LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt NOTICE.txt %changelog * Mon Mar 21 2022 Fridrich Strba - Build with source and target levels 8 (jsc#SLE-23217) * Tue Nov 3 2020 Fridrich Strba - Fix javadoc build on some systems * Mon Mar 2 2020 Fridrich Strba - Initial packaging of apache-commons-ognl git checkout from 20191021 (hash 51cf8f4)