vim-gitgutter/vim-gitgutter.spec
Artem Polishchuk 98588d0c54 Convert to %autorelease and %autochangelog
[skip changelog]
2023-09-13 15:14:51 +03:00

54 lines
1.5 KiB
RPMSpec

%global commit b356cc9a7da08ebeb919cd04b2831dad71a34d38
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global date 20200501
Name: vim-gitgutter
Version: 0
Release: 12.%{date}git%{shortcommit}.%autorelease
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 -rp {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
%autochangelog