## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global shortcommit 6a62575 # Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/micro-editor/micro %global goipath github.com/zyedidia/micro/v2 Version: 2.0.15 %gometa -L -f Name: micro Release: %autorelease Summary: A modern and intuitive terminal-based text editor # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND JSON AND MIT AND MPL-1.1 AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: libappstream-glib %description 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). %prep %goprep -p1 tar -xf %{S:1} # Older version of appstream-util can't parse some url types %if (%{defined rhel} && 0%{?rhel} <= 9) sed -i '/type="vcs-browser"/d' ./data/io.github.zyedidia.micro.metainfo.xml sed -i '/type="contribute"/d' ./data/io.github.zyedidia.micro.metainfo.xml %endif %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export micro_buildtime=$(date -d "@${SOURCE_DATE_EPOCH}" +"%B %d, %Y") export GO_LDFLAGS="-X github.com/zyedidia/micro/v2/internal/util.Version=%{version} \ -X github.com/zyedidia/micro/v2/internal/util.CommitHash=%{shortcommit} \ -X 'github.com/zyedidia/micro/v2/internal/util.CompileDate=$micro_buildtime'" go generate ./runtime %gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0644 -D data/io.github.zyedidia.micro.metainfo.xml %{buildroot}%{_metainfodir}/io.github.zyedidia.micro.metainfo.xml %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/io.github.zyedidia.micro.metainfo.xml %endif %files -f %{go_vendor_license_filelist} %doc README.md %{_bindir}/micro %{_metainfodir}/io.github.zyedidia.micro.metainfo.xml %changelog ## START: Generated by rpmautospec * Wed Feb 18 2026 Mikel Olasagasti Uranga - 2.0.15-2 - Fix build for EL9 * Wed Feb 18 2026 Mikel Olasagasti Uranga - 2.0.15-1 - Update to 2.0.15 and adopt Go Vendor Tools - Closes rhbz#2238002 * Tue Feb 03 2026 Maxwell G - 2.0.11-18 - Rebuild for https://fedoraproject.org/wiki/Changes/golang1.26 * Fri Jan 16 2026 Fedora Release Engineering - 2.0.11-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sun Oct 12 2025 Maxwell G - 2.0.11-16 - Rebuild for golang 1.25.2 * Fri Oct 10 2025 Alejandro Sáez - 2.0.11-15 - rebuild * Fri Aug 15 2025 Maxwell G - 2.0.11-14 - Rebuild for golang-1.25.0 * Thu Jul 24 2025 Fedora Release Engineering - 2.0.11-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jan 17 2025 Fedora Release Engineering - 2.0.11-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 02 2024 Miroslav Suchý - 2.0.11-11 - convert license to SPDX * Thu Jul 18 2024 Fedora Release Engineering - 2.0.11-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 2.0.11-9 - Rebuild for golang 1.22.0 * Thu Jan 25 2024 Fedora Release Engineering - 2.0.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.0.11-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 2.0.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 2.0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Aug 25 2022 Carl George - 2.0.11-1 - Latest upstream, resolves rhbz#1960973 - Stop building on i686 * Thu Jul 21 2022 Fedora Release Engineering - 2.0.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 2.0.8-6 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * 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 ## END: Generated by rpmautospec