2022-04-20 14:54:44 +00:00
committed by Git OBS Bridge
2 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 13 09:38:42 UTC 2022 - Stefan Bluhm <stefan.bluhm@clacee.eu>
- Added build capability for Enterprise Linux 9.
-------------------------------------------------------------------
Thu Dec 2 11:28:49 UTC 2021 - Fridrich Strba <fstrba@suse.com>

View File

@@ -25,7 +25,11 @@ Group: Development/Libraries/Java
Source0: https://repo1.maven.org/maven2/org/apache/velocity/%{name}/%{version}/%{name}-%{version}.pom
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: javapackages-local
%if 0%{?rhel} >= 9
BuildRequires: xmvn-tools
%else
BuildRequires: xmvn-resolve
%endif
BuildRequires: mvn(org.apache:apache:pom:)
BuildArch: noarch
@@ -36,13 +40,20 @@ Master POM for Velocity.
%setup -q -c -T
cp %{SOURCE0} pom.xml
cp %{SOURCE1} LICENSE
%if 0%{?rhel}
%mvn_artifact pom.xml
%endif
%build
%install
%if 0%{?rhel}
%mvn_install
%else
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom
%endif
%files -f .mfiles
%license LICENSE