# https://ambari.apache.org/docs/3.0.0/ambari-dev/building-from-source # build environment should be Red Hat # snapshot from master # no 3.0 release has been cut yet %global commit cc48de866cf5e0a2c71b7f190cba91390b3d1339 %global commit_short %(echo %{commit} | cut -c1-7) %global archive_name ambari-infra-%{commit} %global archive_checksum 3b14815236d37d85e73d7ac5738446747702e6bf45c7dbad87a40c656462671bb9d406272c52cc1d032c35227515c5bf73c4478a0b3d4920cea9e1030abff47e Name: ambari-infra Version: 3.0.0 Release: 0.1.git.%{commit_short}%{?dist} Summary: Apache Ambari Infra License: Apache-2.0 URL: https://ambari.apache.org Source0: https://github.com/apache/ambari-infra/archive/%{commit}.tar.gz BuildRequires: python3-devel BuildRequires: java-1.8.0-openjdk-devel BuildRequires: maven BuildRequires: snappy-devel BuildRequires: make %description Core shared service used by Ambari managed components. %prep # verify checksum echo "%{archive_checksum} %{SOURCE0}" | sha512sum -c - # unpack Source0 %setup -q -n %{archive_name} %build export JAVA_HOME=/usr/lib/jvm/java-1.8.0 export PATH="$JAVA_HOME/bin:$PATH" # Makefile expects a git repo # override GIT_REV_SHORT on commandline make rpm GIT_REV_SHORT=%{commit_short} # packaging is finished # copy packages in output directory # Fedora Copr will sign and publish them mkdir -p %{_rpmdir} cp ambari-infra-assembly/target/rpm/*/RPMS/*.rpm %{_rpmdir}/ %changelog * Thu Apr 09 2026 Detlef Eppers - 0.1 - Initial version