%global shortcommit cfcb2e4 %global compiledate November\ 09,\ 2020 # Generated by go2rpm 1 %bcond_without check # https://github.com/zyedidia/micro %global goipath github.com/zyedidia/micro Version: 2.0.8 %gometa %global goname micro %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 full capabilities of modern terminals. It comes as one single, batteries-included, static binary with no dependencies, and you can download and use it right now. As the name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use in a pinch, but micro also aims to be enjoyable to use full time, whether you work in the terminal because you prefer it (like me), or because you need to (over ssh).} %global golicenses LICENSE LICENSE-THIRD-PARTY %global godocs README.md Name: %{goname} Release: 5%{?dist} Summary: A modern and intuitive terminal-based text editor # Upstream license specification: MIT and Apache-2.0 License: MIT and ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/blang/semver) BuildRequires: golang(github.com/dustin/go-humanize) BuildRequires: golang(github.com/flynn/json5) BuildRequires: golang(github.com/go-errors/errors) BuildRequires: golang(github.com/kballard/go-shellquote) BuildRequires: golang(github.com/mattn/go-isatty) BuildRequires: golang(github.com/mattn/go-runewidth) BuildRequires: golang(github.com/mitchellh/go-homedir) BuildRequires: golang(github.com/robertkrimen/otto/ast) BuildRequires: golang(github.com/robertkrimen/otto/parser) BuildRequires: golang(github.com/sergi/go-diff/diffmatchpatch) BuildRequires: golang(github.com/yuin/gopher-lua) BuildRequires: golang(github.com/zyedidia/clipboard) BuildRequires: golang(github.com/zyedidia/glob) BuildRequires: golang(github.com/zyedidia/highlight) BuildRequires: golang(github.com/zyedidia/tcell/v2) BuildRequires: golang(github.com/zyedidia/terminal) BuildRequires: golang(golang.org/x/text/encoding) BuildRequires: golang(golang.org/x/text/encoding/htmlindex) BuildRequires: golang(golang.org/x/text/encoding/unicode) BuildRequires: golang(golang.org/x/text/transform) BuildRequires: golang(gopkg.in/yaml.v2) BuildRequires: golang(layeh.com/gopher-luar) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) %endif %description %{common_description} %prep %goprep sed -i "s|github.com/zyedidia/json5|github.com/flynn/json5|" $(find . -name "*.go") %build export LDFLAGS="-X 'github.com/zyedidia/micro/internal/util.Version=%{version}' \ -X 'github.com/zyedidia/micro/internal/util.CommitHash=%{shortcommit}' \ -X 'github.com/zyedidia/micro/internal/util.CompileDate=%{compiledate}' \ -X 'github.com/zyedidia/micro/internal/util.Debug=OFF'" for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck -d cmd/micro/shellwords -d cmd/micro/terminfo %endif %files %license LICENSE LICENSE-THIRD-PARTY %doc README.md %{_bindir}/* %changelog * Sat Jun 18 2022 Robert-André Mauchin - 2.0.8-5 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Thu Jan 20 2022 Fedora Release Engineering - 2.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 09 15:04:32 CET 2020 Robert-André Mauchin - 2.0.8-1 - Update to 2.0.8 - Close rhbz#1876359 * Sat Aug 01 2020 Fedora Release Engineering - 2.0.6-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 2.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 30 19:33:22 CEST 2020 Robert-André Mauchin - 2.0.6-1 - Update to 2.0.6 (#1849132) * Thu Jun 18 21:23:31 CEST 2020 Robert-André Mauchin - 2.0.4-1 - Update to 2.0.4 (#1823042) * Mon Mar 02 21:28:04 CET 2020 Robert-André Mauchin - 2.0.2-1 - Update to 2.0.2 * Thu Feb 20 23:45:56 CET 2020 Robert-André Mauchin - 2.0.1-9 - Add util.Debug=OFF to LDFLAGS to disable debug functions * Mon Feb 17 01:38:14 CET 2020 Robert-André Mauchin - 2.0.1-8 - Update to 2.0.1 * Wed Jan 29 2020 Fedora Release Engineering - 1.4.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.4.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 23 23:24:56 CEST 2019 Robert-André Mauchin - 1.4.1-6 - Update to new macros * Wed Feb 20 2019 Robert-André Mauchin - 1.4.1-5 - Fix sergi/go-diff BR * Fri Feb 01 2019 Fedora Release Engineering - 1.4.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Aug 10 2018 Robert-André Mauchin - 1.4.1-1 - Upstream release 1.4.1 * Fri Jul 13 2018 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Apr 06 2018 Robert-André Mauchin - 1.4.0-2 - Add missing versioning data to build stage - Update to new Go packaging guidelines * Fri Jan 26 2018 Robert-André Mauchin - 1.4.0-1 - Upstream release 1.4.0 * Thu Dec 07 2017 Robert-André Mauchin - 1.3.4-1 - Upstream release 1.3.4 * Fri Sep 29 2017 Robert-André Mauchin - 1.3.3-1 - Initial RPM release