%global commit a7ef1817b7aa06d0f80952ad530be87ad3c8f6e2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global upstream_name ale %global vimfiles %{_datadir}/vim/vimfiles %global nvimfiles %{_datadir}/nvim/runtime Name: vim-%upstream_name Version: 3.4.0 Release: 0.6%{?dist} Summary: Asynchronous Vim Lint Engine License: BSD URL: https://github.com/dense-analysis/ale Source0: https://github.com/dense-analysis/%upstream_name/archive/%commit/%upstream_name-%{version}-git%shortcommit.tar.gz BuildArch: noarch Requires: (vim-enhanced or vim-X11) %define desc(n:) \ ALE (Asynchronous Lint Engine) is a plugin providing linting (syntax checking \ and semantic errors) in %{-n*} while you edit your text files, \ and acts as a Vim Language Server Protocol client. \ \ ALE makes use of NeoVim and Vim job control functions and timers to run \ linters on the contents of text buffers and return errors as text is changed \ in %{-n*}. This allows for displaying warnings and errors in files being \ edited in %{-n*} before files have been saved back to a filesystem. \ \ In other words, this plugin allows you to lint while you type. %description %desc -n Vim %package -n neovim-%upstream_name Requires: neovim Summary: Asynchronous NeoVim Lint Engine %description -n neovim-%upstream_name %desc -n NeoVim %prep #%%autosetup -p1 -n %%upstream_name-%%version %autosetup -p1 -n %upstream_name %install for dest in %vimfiles %nvimfiles; do mkdir -p %buildroot"$dest" cp -r ale_linters %buildroot"$dest" cp -r autoload %buildroot"$dest" cp -r doc %buildroot"$dest" cp -r ftplugin %buildroot"$dest" cp -r ftplugin %buildroot"$dest" cp -r plugin %buildroot"$dest" cp -r rplugin %buildroot"$dest" cp -r syntax %buildroot"$dest" done %define ale_files(d:) \ %license LICENSE \ %doc %{-d*}/doc/* \ %{-d*}/ale_linters \ %{-d*}/autoload/* \ %{-d*}/rplugin \ %{-d*}/plugin/* \ %{-d*}/ftplugin/* \ %{-d*}/syntax/* \ %files %ale_files -d %vimfiles %files -n neovim-%upstream_name %ale_files -d %nvimfiles %changelog * Sun Sep 08 2024 Patrick Laimbock - 3.4.0-0.6 - update to git rev a7ef1817b7aa06d0f80952ad530be87ad3c8f6e2 * Mon Jun 03 2024 Patrick Laimbock - 3.4.0-0.5 - update to git rev c7c41e157478fc9d4f65e9f640bfce75fa211fd7 - contains fix for ruff as a linter * Sun Jun 02 2024 Patrick Laimbock - 3.4.0-0.4 - update to git rev adaa7f6f62366e5ed8aa76e79ca74f32a3b196b3 * Fri Dec 01 2023 Patrick Laimbock - 3.4.0-0.3 - update to git rev 1ccd99e113324602b4eca41fd24ba6f991e8f05d * Wed Nov 01 2023 Patrick Laimbock - 3.4.0-0.2 - update to git rev 53b01d6a546384a28f1ccbed41baae58d7341da4 * Sun Apr 16 2023 Patrick Laimbock - 3.4.0-0.1 - update to git commit fdadaed2ba93432add241bb25f9935dc2ebb4152 * Sat Jan 21 2023 Fedora Release Engineering - 3.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Sep 15 2022 Kir Kolyshkin - 3.2.0-1 - new upstream release, per release notes: https://github.com/dense-analysis/ale/releases/tag/v3.2.0 * Wed Sep 07 2022 Pavel Raiskup - 3.1.0-5 - depend on vim-X11 or vim-enhanced (rhbz#2114642) * Sat Jul 23 2022 Fedora Release Engineering - 3.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 3.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 22 2021 Pavel Raiskup - 3.1.0-1 - new upstream release, per release notes: https://github.com/dense-analysis/ale/releases/tag/v3.1.0 * Mon Nov 30 2020 Pavel Raiskup - 3.0.0-2 - make the plugin working with neovim, too * Sun Oct 11 2020 Pavel Raiskup - 3.0.0-1 - preparations for a copr build * Tue Apr 21 2020 Pavel Raiskup - 2.6.0-1 - initial packaging