-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim-ctrlp.spec
More file actions
61 lines (47 loc) · 1.75 KB
/
vim-ctrlp.spec
File metadata and controls
61 lines (47 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
%global commit 2e773fd8c7548526853fff6ee2e642eafbbe3d04
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global snapshotdate 20190610
Name: vim-ctrlp
Version: 1.80
Release: 1.%{snapshotdate}git%{shortcommit}%{?dist}
Summary: Full path fuzzy file, buffer, mru, tag, ... finder for Vim
License: Vim
URL: https://github.com/ctrlpvim/ctrlp.vim
Source0: https://github.com/ctrlpvim/ctrlp.vim/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
Source1: https://raw.githubusercontent.com/osoukup/ctrlp.vim/master/%{name}.metainfo.xml
Requires: vim-filesystem
Requires: vim-common
Requires(post): vim
Requires(postun): vim
# Needed for AppData check
BuildRequires: libappstream-glib
# Defines %%vimfiles_root
BuildRequires: vim-filesystem
BuildArch: noarch
%description
Full path fuzzy file, buffer, mru, tag, ... finder with an intuitive interface.
Written in pure Vimscript for MacVim, gVim and Vim version 7.0+. Has full
support for Vim's |regexp| as search pattern, built-in MRU files monitoring,
project's root finder, and more.
%prep
%autosetup -n ctrlp.vim-%{commit}
%build
%install
mkdir -p %{buildroot}%{vimfiles_root}
cp -r {autoload,doc,plugin} %{buildroot}%{vimfiles_root}
# Install AppData
mkdir -p %{buildroot}%{_metainfodir}
install -m 644 %{SOURCE1} %{buildroot}%{_metainfodir}
%check
# Check the AppData add-on to comply with guidelines
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.metainfo.xml
%files
%license LICENSE
%doc readme.md
%{vimfiles_root}/autoload/*
%doc %{vimfiles_root}/doc/*
%{vimfiles_root}/plugin/*
%{_metainfodir}/%{name}.metainfo.xml
%changelog
* Tue Feb 26 2019 Ondřej Soukup <osoukup@redhat.com> - 1.80-1.20190610git2e773fd
- Initial package.