#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 gopath %{_datadir}/gocode %global import_path github.com/operator-framework/operator-registry %global golang_version 1.19 %{!?commit:%global commit 57a959da1177335976c5efcc592cc423ff90e2cd} Name: operator-registry Version: 1.26.4 Release: 1%{dist} Summary: Operator Registry License: ASL 2.0 URL: https://%{import_path} Source0: https://github.com/operator-framework/operator-registry/archive/%{commit}/operator-registry-%{commit}.tar.gz ExclusiveArch: %{go_arches} BuildRequires: golang >= %{golang_version} BuildRequires: make BuildRequires: sqlite-devel %description %{summary} %prep %setup -q -n operator-registry-%{commit} %build %make_build bin/opm OPM_VERSION=%{version} GIT_VERSION=%{version} GIT_COMMIT=%{commit} %install install -d %{buildroot}%{_bindir} install -p -m 755 bin/opm %{buildroot}%{_bindir}/opm %files %license LICENSE %{_bindir}/opm %changelog