mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
57d4653fcb
* bump(nightly): envision mpv-nightly rasputin rp-appset rp-bookshelf hyprutils.nightly ghostty-nightly zed-nightly types-colorama astal nvidia-patch scx-scheds-nightly glasgow natscli
* bump(nightly): mpv-nightly winetricks-git zed-nightly albius nim-nightly curl_cffi types-colorama scx-scheds-nightly glasgow
* bump(nightly): legcord-nightly mpv-nightly hyprutils.nightly micro-nightly zed-nightly prismlauncher-nightly types-colorama
* bump(nightly): mpv-nightly hyprgraphics.nightly zed-nightly prismlauncher-nightly nim-nightly types-colorama astal libbacktrace-nightly nvidia-patch readymade-git scx-scheds-nightly glasgow
* fix: Conflict
* bump(nightly): zed-nightly nim-nightly types-colorama astal nvidia-patch scx-scheds-nightly natscli spotx-bash
* bump(nightly): legcord-nightly ghostty-nightly zed-nightly gamescope-session prismlauncher-nightly nim-nightly types-colorama libva-nvidia-driver
* bump(nightly): hyprutils.nightly ghostty-nightly zed-nightly prismlauncher-nightly types-colorama scx-scheds-nightly
* bump(nightly): flameshot-nightly legcord-nightly mpv-nightly rasputin rp-appset hyprutils.nightly zed-nightly prismlauncher-nightly nim-nightly types-colorama Carla-nightly readymade-git scx-scheds-nightly glasgow
* bump(nightly): legcord-nightly rasputin rp-appset zed-nightly nim-nightly types-colorama scx-scheds-nightly
* bump(nightly): rasputin rp-appset ghostty-nightly zed-nightly gamescope-session-steam nim-nightly intel-ipu6-drivers scx-scheds-nightly natscli
* bump(nightly): legcord-nightly mpv-nightly rasputin rp-appset zed-nightly prismlauncher-nightly nim-nightly types-colorama libva-nvidia-driver scx-scheds-nightly
* bump(nightly): mpv-nightly rasputin rp-appset ghostty-nightly zed-nightly prismlauncher-nightly nim-nightly types-colorama scx-scheds-nightly
* bump(nightly): flameshot-nightly mpv-nightly hyprutils.nightly ghostty-nightly zed-nightly prismlauncher-nightly nim-nightly types-colorama scx-scheds-nightly glasgow
---------
(cherry picked from commit a82483ad51)
Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
Co-authored-by: Raboneko <raboneko@fyralabs.com>
109 lines
3.2 KiB
RPMSpec
109 lines
3.2 KiB
RPMSpec
# Generated by go2rpm 1.15.0
|
|
%bcond check 0
|
|
%bcond bootstrap 0
|
|
|
|
%if %{with bootstrap}
|
|
%global debug_package %{nil}
|
|
%endif
|
|
|
|
%if %{with bootstrap}
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|
%endif
|
|
|
|
# Naming variable as something other than "commit" is necessary
|
|
# to stop %%gometa from putting commit hash in release
|
|
%global commit_hash 9183fbe64090ee3be147a2b52a74e4516777a0eb
|
|
%global commit_date 20251106
|
|
%global shortcommit %{sub %{commit_hash} 1 7}
|
|
%global ver 2.0.14
|
|
|
|
# https://github.com/zyedidia/micro
|
|
%global goipath github.com/zyedidia/micro
|
|
Version: %{ver}^%{commit_date}git.%{shortcommit}
|
|
|
|
%gometa -f
|
|
|
|
%global common_description %{expand:
|
|
micro is a terminal-based text editor that aims to be easy to use and intuitive, while also taking advantage of the capabilities of modern terminals. It strives to be enjoyable as a full-time editor for people who prefer to work in a terminal, or those who regularly edit files over SSH.}
|
|
|
|
%global golicenses LICENSE LICENSE-THIRD-PARTY
|
|
%global godocs README.md runtime/help/colors.md runtime/help/commands.md\\\
|
|
runtime/help/copypaste.md runtime/help/defaultkeys.md\\\
|
|
runtime/help/help.md runtime/help/keybindings.md\\\
|
|
runtime/help/options.md runtime/help/plugins.md\\\
|
|
runtime/help/tutorial.md
|
|
|
|
Name: micro.nightly
|
|
Release: 2%{?dist}
|
|
Summary: A modern and intuitive terminal-based text editor
|
|
|
|
License: MIT
|
|
URL: %{gourl}
|
|
Packager: sadlerm <lerm@chromebooks.lol>
|
|
|
|
BuildRequires: anda-srpm-macros
|
|
|
|
Recommends: wl-clipboard
|
|
Recommends: (xclip or xsel)
|
|
|
|
Provides: micro-nightly = %{version}-%{release}
|
|
Provides: micro
|
|
Conflicts: micro
|
|
|
|
%description %{common_description}
|
|
|
|
%gopkg
|
|
|
|
%global buildsubdir micro-%{version}
|
|
|
|
%prep
|
|
git clone --recurse-submodules -q %{gourl} micro-%{version}
|
|
cd %{builddir}/micro-%{version} && git checkout -q %{commit_hash}
|
|
%gomkdir
|
|
|
|
%build
|
|
%if %{without bootstrap}
|
|
go generate ./runtime
|
|
|
|
MICRO_VERSION=$(go run ./tools/build-version.go)
|
|
MICRO_DATE=$(date --date=%{commit_date} +"%%B %%d, %%Y")
|
|
|
|
LDFLAGS="-X internal/util.version=${MICRO_VERSION} \
|
|
-X internal/util.hash=%{shortcommit} \
|
|
-X 'internal/util.date=${MICRO_DATE}'"
|
|
|
|
%define gomodulesmode GO111MODULE=on
|
|
%gobuild -o %{gobuilddir}/bin/micro ./cmd/micro
|
|
%endif
|
|
|
|
%install
|
|
%if %{without bootstrap}
|
|
install -Dm755 %{gobuilddir}/bin/micro -t %{buildroot}%{_bindir}
|
|
install -Dm644 assets/packaging/micro.1 -t %{buildroot}%{_mandir}/man1
|
|
install -Dm644 assets/packaging/micro.desktop -t %{buildroot}%{_datadir}/applications
|
|
install -Dm644 assets/micro-logo-mark.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/micro.svg
|
|
|
|
# for %%doc packaging
|
|
mv -v ./runtime/help .
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%if %{with check}
|
|
%check
|
|
%gotest ./internal/... ./cmd/micro/...
|
|
%endif
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%files
|
|
%license LICENSE LICENSE-THIRD-PARTY
|
|
%doc README.md help
|
|
%{_bindir}/micro
|
|
%{_mandir}/man1/micro.1.gz
|
|
%{_datadir}/applications/micro.desktop
|
|
%{_datadir}/icons/hicolor/scalable/apps/micro.svg
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|