%global commandt_so_dir %{ruby_vendorarchdir}/command-t %global appdata_dir %{_datadir}/appdata Name: vim-command-t Version: 5.0.3 Release: 5%{?dist} Summary: An extremely fast, intuitive mechanism for opening files in VIM 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 # Use rspec-mock for stubbing to fix the build failures with RR 1.2+. # https://github.com/wincent/command-t/pull/375 Patch1: vim-command-t-5.0.3-Use-rspec-mock-for-stubbing.patch # Fix `CommandT::Scanner::BufferScanner` test. # https://github.com/wincent/command-t/commit/52adb808e2db85035e9a5a214cb147280c2f10e0 Patch2: vim-command-t-5.0.3-fix-tests.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: make BuildRequires: ruby(release) BuildRequires: ruby-devel BuildRequires: rubygems BuildRequires: rubygem(rspec) >= 3 BuildRequires: gcc # Defines %%vimfiles_root BuildRequires: vim-filesystem %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 %patch1 -p1 %patch2 -p1 %build pushd ./ruby/command-t/ext/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/command-t/ext.so mv %{buildroot}%{vimfiles_root}/ruby/command-t/ext/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 %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 Jul 23 2022 Fedora Release Engineering - 5.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 26 2022 Mamoru TASAKA - 5.0.3-4 - F-36: rebuild against ruby31 * Sat Jan 22 2022 Fedora Release Engineering - 5.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 5.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Mar 04 2021 Vít Ondruch - 5.0.3-1 - Update to Command-T 5.0.3. Resolves: rhbz#1631111 * Wed Jan 27 2021 Fedora Release Engineering - 5.0.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 06 2021 Mamoru TASAKA - 5.0.2-12 - F-34: rebuild against ruby 3.0 * Wed Jul 29 2020 Fedora Release Engineering - 5.0.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 5.0.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jan 17 2020 Vít Ondruch - 5.0.2-9 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.7 * Sat Jul 27 2019 Fedora Release Engineering - 5.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 5.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 21 2019 Mamoru TASAKA - 5.0.2-6 - F-30: rebuild against ruby26 * Fri Jul 27 2018 Vít Ondruch - 5.0.2-5 - Add "BR: gcc" to fix FTBFS (rhbz#1606647). * Sat Jul 14 2018 Fedora Release Engineering - 5.0.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 5.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 20 2018 Björn Esser - 5.0.2-3 - Rebuilt for switch to libxcrypt * Fri Jan 05 2018 Mamoru TASAKA - 5.0.2-2 - F-28: rebuild for ruby25 * Tue Sep 26 2017 Vít Ondruch - 5.0.2-1 - Update to Command-T 5.0.2. * Thu Aug 03 2017 Fedora Release Engineering - 4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 13 2017 Mamoru TASAKA - 4.0-2 - F-26: rebuild for ruby24 * Tue Jun 07 2016 Vít Ondruch - 4.0-1 - Update to Command-T 4.0. * Tue May 03 2016 Vít Ondruch - 3.0.2-1 - Update to Command-T 3.0.2. - Relax version check. * Fri Feb 05 2016 Fedora Release Engineering - 2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 08 2016 Vít Ondruch - 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 - 1.13-1 - Update to Command-T 1.13. * Fri Jun 19 2015 Fedora Release Engineering - 1.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jan 18 2015 Mamoru TASAKA - 1.10-6 - Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2 - Fix for rspec 3 * Mon Aug 18 2014 Fedora Release Engineering - 1.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 15 2014 Vít Ondruch - 1.10-3 - Fix BE arch issues. * Mon Aug 11 2014 Vít Ondruch - 1.10-2 - Add missing autoload directory. * Mon Aug 11 2014 Vít Ondruch - 1.10-1 - Update to Command-T 1.10. - Add Gnome Software plug-in AppData (rhbz#1110300). * Sun Jun 08 2014 Fedora Release Engineering - 1.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Apr 29 2014 Vít Ondruch - 1.8-1 - Update to Command-T 1.8. * Thu Dec 19 2013 Vít Ondruch - 1.6-1 - Update to command-t 1.6. * Mon Sep 23 2013 Vít Ondruch - 1.5-1 - Update to command-t 1.5. * Sun Aug 04 2013 Fedora Release Engineering - 1.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Apr 10 2013 Vít Ondruch - 1.4-4 - Add dependency on RubyGems to fix possible SEGFAULT (rhbz#858135). * Wed Feb 27 2013 Vít Ondruch - 1.4-3 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Fri Feb 15 2013 Fedora Release Engineering - 1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Aug 03 2012 Vít Ondruch - 1.4-1 - Initial package.