Files
packages/anda/tools/micro-default-editor/micro-default-editor.spec
T
Gilver ce4d5269c0 chore: Mass update email in Roachy's specs (#9355)
* chore: Mass update email in Roachy's specs

* fix(pokeshell): Recommends

Signed-off-by: Gilver <roachy@fyralabs.com>

* chore: Bump releases

* Update xone.spec

Signed-off-by: Gilver <roachy@fyralabs.com>

* Update falcond-gui.spec

Signed-off-by: Gilver <roachy@fyralabs.com>

* Update ghostty-nightly.spec

Signed-off-by: Gilver <roachy@fyralabs.com>

* Update ghostty.spec

Signed-off-by: Gilver <roachy@fyralabs.com>

* Update epsonscan2.spec

Signed-off-by: Gilver <roachy@fyralabs.com>

* Update neovim-default-editor.spec

Signed-off-by: Gilver <roachy@fyralabs.com>

---------

Signed-off-by: Gilver <roachy@fyralabs.com>
2026-01-20 11:20:54 -06:00

45 lines
1.6 KiB
RPMSpec

%global commit 31218294b0df40211e8573d08c178fb4d9c4bce5
Name: micro-default-editor
# Version, release, and epoch are inherited from the editor package just like other default editors
Version: 2.0.11
Release: 10%?dist
Epoch: 0
# Inherited from Micro itself
License: MIT and ASL 2.0
Summary: Sets Micro as the default editor
URL: https://github.com/zyedidia/micro
Source0: https://raw.githubusercontent.com/terrapkg/pkg-micro-default-editor/%{commit}/micro-default-editor.csh
Source1: https://raw.githubusercontent.com/terrapkg/pkg-micro-default-editor/%{commit}/micro-default-editor.sh
Source2: https://raw.githubusercontent.com/terrapkg/pkg-micro-default-editor/%{commit}/micro-default-editor.fish
# For EVR macro
BuildRequires: anda-srpm-macros
Requires: default-editor
Requires: micro
# All default editor packages MUST provide this
Provides: system-default-editor
BuildArch: noarch
Packager: Gilver E. <roachy@fyralabs.com>
%description
This package ensures the EDITOR shell variable
is set in common shells to Micro.
%build
# Nothing
%install
install -Dpm644 %{SOURCE0} -t %{buildroot}%{_sysconfdir}/profile.d/
install -Dpm644 %{SOURCE1} -t %{buildroot}%{_sysconfdir}/profile.d/
install -Dpm644 %{SOURCE2} -t %{buildroot}%{_datadir}/fish/vendor_conf.d/
%files
%dir %{_sysconfdir}/profile.d
%config(noreplace) %{_sysconfdir}/profile.d/micro-default-editor.*
%dir %{_datadir}/fish/vendor_conf.d
%{_datadir}/fish/vendor_conf.d/micro-default-editor.fish
%changelog
* Sat Jun 28 2025 Gilver E. <rockgrub@disroot.org> - 2.0.11-10
- Initial package