mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-12 06:30:38 +00:00
9e2b7c842a
* 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>
92 lines
2.2 KiB
RPMSpec
92 lines
2.2 KiB
RPMSpec
# 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
|