Name: dejligdate Version: 0.0.14 Release: 1%{?dist} Summary: Calculate the number of days in-between two dates License: GPL-3.0 URL: https://github.com/throup/%{name} Source0: https://github.com/throup/%{name}/archive/refs/tags/%{version}.tar.gz?filename=%{name}-%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{java_arches} noarch Requires: java-18-headless Requires: javapackages-filesystem BuildRequires: java-latest-openjdk-headless BuildRequires: java-latest-openjdk-devel BuildRequires: java-latest-openjdk BuildRequires: maven-local %description Calculate the number of days in-between two dates in the Common Era, following conventions of the Gregorian Calendar. %prep %setup -q %build export JAVA_HOME=$(dirname $(dirname $(rpm -ql java-latest-openjdk-devel | grep bin/javac))) mvn package # Create the wrapper for /usr/bin cat >%{name} < - Package created