54 lines
1.4 KiB
RPMSpec
54 lines
1.4 KiB
RPMSpec
%global commit f12b8b80897c1214327e6075abc007ec6e55a691
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
%global date 20191207
|
|
|
|
Name: vim-gv
|
|
Version: 0
|
|
Release: 3.%{date}git%{shortcommit}%{?dist}
|
|
Summary: Git commit browser in Vim
|
|
|
|
License: MIT
|
|
URL: https://github.com/junegunn/gv.vim
|
|
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
|
|
Requires: vim-fugitive
|
|
|
|
%description
|
|
A git commit browser.
|
|
|
|
|
|
%prep
|
|
%autosetup -n gv.vim-%{commit} -p1
|
|
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{vimfiles_root}
|
|
cp -r plugin %{buildroot}%{vimfiles_root}
|
|
install -m 0644 -Dp %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
|
|
|
|
|
|
%check
|
|
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
|
|
|
|
|
|
%files
|
|
%doc README.md test/
|
|
%{vimfiles_root}/plugin/*
|
|
%{_metainfodir}/*.xml
|
|
|
|
|
|
%changelog
|
|
* Sat Dec 07 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-3.20191207gitf12b8b8
|
|
- Update to latest git snapshot
|
|
- Fix license
|
|
|
|
* Thu Oct 17 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-2.20191013git7a84f63
|
|
- Update to latest git snapshot
|
|
|
|
* Thu Oct 03 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0-1.20190911git0868f29
|
|
- Initial package
|