add: devpod (#2898)

* add: devpod

* Delete anda/langs/go/devpod/devpod.spec

Signed-off-by: madomado <madonuko@outlook.com>

* anda-srpm-macros

Signed-off-by: madomado <madonuko@outlook.com>

* bump

Signed-off-by: madomado <madonuko@outlook.com>

* rm go.sum?

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
This commit is contained in:
madomado
2025-03-01 16:46:53 +08:00
committed by GitHub
parent 1316b4798c
commit 9e2b7c842a
2 changed files with 96 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "golang-github-loft-sh-devpod.spec"
}
}
@@ -0,0 +1,91 @@
# Generated by go2rpm 1.15.0
%bcond check 0
%bcond bootstrap 0
%dnl %if %{with bootstrap}
%global debug_package %{nil}
%dnl %endif
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/loft-sh/devpod
%global goipath github.com/loft-sh/devpod
Version: 0.6.9
%gometa -f
%global common_description %{expand:
Codespaces but open-source, client-only and unopinionated: Works with any IDE
and lets you use any cloud, kubernetes or just localhost docker.}
%global golicenses LICENSE
%global godocs docs examples COMMUNITY.md CONTRIBUTING.md README.md\\\
SECURITY.md desktop/README.md e2e/README.md\\\
loadtest/README.md
Name: devpod
Release: %autorelease
Summary: Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker
Provides: golang-github-loft-sh-devpod
BuildRequires: anda-srpm-macros
License: MPL-2.0
URL: https://devpod.sh
Source: %{gosource}
%description %{common_description}
#gopkg
%prep
%autosetup -n %name-%version
rm go.sum
%go_prep_online
%dnl %if %{without bootstrap}
%dnl %generate_buildrequires
%dnl %go_generate_buildrequires
%dnl %endif
%if %{without bootstrap}
%build
%dnl for cmd in cmd/* ; do
%dnl out="%{gobuilddir}/bin/$(basename $cmd)"
%dnl %go_build_online "%{goipath}/$cmd" $out
%dnl done
%go_build_online
%dnl for cmd in hack/pro; do
%dnl out="%{gobuilddir}/bin/$(basename $cmd)"
%dnl %go_build_online "%{goipath}/$cmd" $out
%dnl done
%endif
%install
#gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
%dnl install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vp build/bin/* %{buildroot}%{_bindir}/
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%if %{without bootstrap}
%files
%license LICENSE
%doc docs examples COMMUNITY.md CONTRIBUTING.md README.md SECURITY.md
%doc desktop/README.md e2e/README.md loadtest/README.md
%{_bindir}/devpod
%endif
#gopkgfiles
%changelog
%autochangelog