175 lines
5.8 KiB
RPMSpec
175 lines
5.8 KiB
RPMSpec
%global commandt_so_dir %{ruby_vendorarchdir}/command-t
|
|
|
|
%global appdata_dir %{_datadir}/appdata
|
|
|
|
Name: vim-command-t
|
|
Version: 4.0
|
|
Release: 3%{?dist}
|
|
Summary: An extremely fast, intuitive mechanism for opening files in VIM
|
|
Group: Applications/Editors
|
|
License: BSD
|
|
URL: https://github.com/wincent/command-t
|
|
Source0: https://github.com/wincent/command-t/archive/%{version}/command-t-%{version}.tar.gz
|
|
# Relax the Command-T version checking.
|
|
# https://github.com/wincent/command-t/issues/192
|
|
Patch0: vim-3.0.2-Check-RUBY_LIB_VERSION-instead-of-RUBY_VERSION.patch
|
|
Requires: ruby(release)
|
|
# Although command-t does not depend on rubygems directly, the RubyGems are
|
|
# required by Ruby, but not always (rhbz#845011). So it is necessary to enforce
|
|
# the RubyGems dependency, to fix possile SEGFAULT (rhbz#858135). There is
|
|
# unfortunately nothing better to do about it, as long as RPM/YUM does not
|
|
# support some conditional requires.
|
|
Requires: ruby(rubygems)
|
|
Requires: vim-common
|
|
BuildRequires: ruby(release)
|
|
BuildRequires: ruby-devel
|
|
BuildRequires: rubygems
|
|
BuildRequires: rubygem(rspec) >= 3
|
|
BuildRequires: rubygem(rr)
|
|
# Defines %%vimfiles_root
|
|
BuildRequires: vim-filesystem
|
|
Requires(post): %{_bindir}/vim
|
|
Requires(postun): %{_bindir}/vim
|
|
|
|
%description
|
|
The Command-T plug-in for VIM provides an extremely fast, intuitive mechanism
|
|
for opening files with a minimal number of keystrokes. It's named "Command-T"
|
|
because it is inspired by the "Go to File" window bound to Command-T
|
|
in TextMate.
|
|
|
|
Files are selected by typing characters that appear in their paths, and are
|
|
ordered by an algorithm which knows that characters that appear in certain
|
|
locations (for example, immediately after a path separator) should be given
|
|
more weight.
|
|
|
|
%prep
|
|
%setup -q -n command-t-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
%build
|
|
pushd ./ruby/command-t
|
|
|
|
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
|
ruby extconf.rb --vendor
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{vimfiles_root}
|
|
cp -par {autoload,doc,plugin,ruby} %{buildroot}%{vimfiles_root}
|
|
|
|
mkdir -p %{buildroot}%{commandt_so_dir}
|
|
chmod 0755 %{buildroot}%{vimfiles_root}/ruby/command-t/ext.so
|
|
mv %{buildroot}%{vimfiles_root}/ruby/command-t/ext.so %{buildroot}%{commandt_so_dir}
|
|
|
|
# Remove all dot files.
|
|
find %{buildroot}%{vimfiles_root} -name '.*' -delete
|
|
|
|
# Install AppData.
|
|
mkdir -p %{buildroot}%{appdata_dir}
|
|
install -m 644 appstream/vim-command-t.metainfo.xml %{buildroot}%{appdata_dir}
|
|
|
|
%check
|
|
# Get rid of Bundler
|
|
sed -i '/Bundler/,/^end$/ s/^/#/' spec/spec_helper.rb
|
|
|
|
rspec -Iruby spec
|
|
|
|
%post
|
|
vim -c ":helptags %{vimfiles_root}/doc" -c :q &> /dev/null
|
|
|
|
%postun
|
|
> %{vimfiles_root}/doc/tags
|
|
vim -c ":helptags %{vimfiles_root}/doc" -c :q &> /dev/null
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{commandt_so_dir}
|
|
%{vimfiles_root}/autoload/*
|
|
%{vimfiles_root}/doc/*
|
|
%{vimfiles_root}/plugin/*
|
|
%exclude %{vimfiles_root}/ruby/command-t/ext*
|
|
%exclude %{vimfiles_root}/ruby/command-t/*.o
|
|
%exclude %{vimfiles_root}/ruby/command-t/*.h
|
|
%exclude %{vimfiles_root}/ruby/command-t/*.c
|
|
%exclude %{vimfiles_root}/ruby/command-t/Makefile
|
|
%exclude %{vimfiles_root}/ruby/command-t/mkmf.log
|
|
%exclude %{vimfiles_root}/ruby/command-t/depend
|
|
%{vimfiles_root}/ruby
|
|
%{appdata_dir}/vim-command-t.metainfo.xml
|
|
|
|
|
|
%changelog
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Fri Jan 13 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.0-2
|
|
- F-26: rebuild for ruby24
|
|
|
|
* Tue Jun 07 2016 Vít Ondruch <vondruch@redhat.com> - 4.0-1
|
|
- Update to Command-T 4.0.
|
|
|
|
* Tue May 03 2016 Vít Ondruch <vondruch@redhat.com> - 3.0.2-1
|
|
- Update to Command-T 3.0.2.
|
|
- Relax version check.
|
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Fri Jan 08 2016 Vít Ondruch <vondruch@redhat.com> - 2.0-1
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
|
- Update to Command-T 2.0.
|
|
|
|
* Wed Sep 30 2015 Vít Ondruch <vondruch@redhat.com> - 1.13-1
|
|
- Update to Command-T 1.13.
|
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sun Jan 18 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.10-6
|
|
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
|
- Fix for rspec 3
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Fri Aug 15 2014 Vít Ondruch <vondruch@redhat.com> - 1.10-3
|
|
- Fix BE arch issues.
|
|
|
|
* Mon Aug 11 2014 Vít Ondruch <vondruch@redhat.com> - 1.10-2
|
|
- Add missing autoload directory.
|
|
|
|
* Mon Aug 11 2014 Vít Ondruch <vondruch@redhat.com> - 1.10-1
|
|
- Update to Command-T 1.10.
|
|
- Add Gnome Software plug-in AppData (rhbz#1110300).
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Tue Apr 29 2014 Vít Ondruch <vondruch@redhat.com> - 1.8-1
|
|
- Update to Command-T 1.8.
|
|
|
|
* Thu Dec 19 2013 Vít Ondruch <vondruch@redhat.com> - 1.6-1
|
|
- Update to command-t 1.6.
|
|
|
|
* Mon Sep 23 2013 Vít Ondruch <vondruch@redhat.com> - 1.5-1
|
|
- Update to command-t 1.5.
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Wed Apr 10 2013 Vít Ondruch <vondruch@redhat.com> - 1.4-4
|
|
- Add dependency on RubyGems to fix possible SEGFAULT (rhbz#858135).
|
|
|
|
* Wed Feb 27 2013 Vít Ondruch <vondruch@redhat.com> - 1.4-3
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Aug 03 2012 Vít Ondruch <vondruch@redhat.com> - 1.4-1
|
|
- Initial package.
|