From 5130183da3196613dc5ae1aa640e0a86d774d71a Mon Sep 17 00:00:00 2001 From: Artem Polishchuk Date: Sat, 7 Dec 2019 23:30:26 +0200 Subject: [PATCH] Initial import (#1762789). --- .gitignore | 1 + sources | 1 + vim-gitgutter.metainfo.xml | 12 ++++++++ vim-gitgutter.spec | 60 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 vim-gitgutter.metainfo.xml create mode 100644 vim-gitgutter.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6596ab --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vim-gitgutter-0.20191207git1c53af9.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..ae61940 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vim-gitgutter-0.20191207git1c53af9.tar.gz) = 413fa430f59d941304c98984a05abfcfc7af5947a35683b880d630f1872275edeff6f89bb542b7e42b1730082ec2d19d49f3285b5a9401e495820bddefa467f0 diff --git a/vim-gitgutter.metainfo.xml b/vim-gitgutter.metainfo.xml new file mode 100644 index 0000000..da20237 --- /dev/null +++ b/vim-gitgutter.metainfo.xml @@ -0,0 +1,12 @@ + + + + vim-gitgutter + gvim.desktop + vim-gitgutter + Shows a git diff in the gutter and stages/undoes hunks and partial hunks + https://github.com/airblade/vim-gitgutter + CC0-1.0 + MIT + ego.cordatus@gmail.com + diff --git a/vim-gitgutter.spec b/vim-gitgutter.spec new file mode 100644 index 0000000..c4e8c74 --- /dev/null +++ b/vim-gitgutter.spec @@ -0,0 +1,60 @@ +%global commit 1c53af9a0d3b622af5a62d69ddfc141c841a28c1 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global date 20191207 + +Name: vim-gitgutter +Version: 0 +Release: 2.%{date}git%{shortcommit}%{?dist} +Summary: Shows a git diff in the gutter and stages/undoes hunks and partial hunks + +License: MIT +URL: https://github.com/airblade/vim-gitgutter +Source0: %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz +Source1: %{name}.metainfo.xml +BuildArch: noarch + +BuildRequires: libappstream-glib +BuildRequires: vim-filesystem +Requires: vim-enhanced + +%description +A Vim plugin which shows a git diff in the 'gutter' (sign column). It shows +which lines have been added, modified, or removed. You can also preview, stage, +and undo individual hunks; and stage partial hunks. The plugin also provides a +hunk text object. + +The signs are always up to date and the plugin never saves your buffer. + + +%prep +%autosetup -n %{name}-%{commit} -p1 + + +%install +mkdir -p %{buildroot}%{vimfiles_root} +cp -r {autoload,plugin,unplace.vim} %{buildroot}%{vimfiles_root} +install -m 0644 -Dp %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml + + +%check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml + + +%files +%license LICENCE +%doc README.mkd doc/* test +%{vimfiles_root}/autoload/* +%{vimfiles_root}/plugin/* +%{vimfiles_root}/unplace.vim +%{_metainfodir}/*.xml + + +%changelog +* Sat Dec 07 2019 Artem Polishchuk - 0-2.20191207git1c53af9 +- Update to latest git snapshot + +* Thu Oct 17 2019 Artem Polishchuk - 0-2.20191015git5c73edb +- Update to latest git snapshot + +* Thu Oct 03 2019 Artem Polishchuk - 0-1.20191001git1725c13 +- Initial package