#debuginfo not supported with Go %global debug_package %{nil} # modifying the Go binaries breaks the DWARF debugging %global __os_install_post %{_rpmconfigdir}/brp-compress %global commit 89076cde123ae9f2b8d60c51eb7d42f6203f557a # # Customize from here. # %global golang_version 1.19 %{!?version: %global version 1.2.4} %{!?release: %global release 1} %global package_name imagebuilder %global product_name Container Image Builder %global import_path github.com/openshift/imagebuilder Name: %{package_name} Version: 1.2.4 Release: 1%{?dist} Summary: Builds Dockerfile using the Docker client License: ASL 2.0 URL: https://%{import_path} Source0: https://%{import_path}/archive/%{commit}/%{name}-%{version}.tar.gz BuildRequires: golang >= %{golang_version} %description Builds Dockerfile using the Docker client %prep %setup -q -n imagebuilder-%{commit} %build go build ./cmd/imagebuilder %install install -d %{buildroot}%{_bindir} install -p -m 755 ./imagebuilder %{buildroot}%{_bindir}/imagebuilder %files %doc README.md %license LICENSE vendor/modules.txt %{_bindir}/imagebuilder %changelog