Update to command-t 1.6.

This commit is contained in:
Vít Ondruch 2013-12-19 15:19:19 +01:00
commit 5fb86726a7
4 changed files with 37 additions and 10 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/command-t-1.4.tar.gz
/command-t-1.5.tar.gz
/command-t-1.6.tar.gz

View file

@ -1 +1 @@
8f989c2c527b82aae0048de0c5f131d7 command-t-1.5.tar.gz
6a739517689a4f41e04998b9f1a68eae command-t-1.6.tar.gz

View file

@ -0,0 +1,25 @@
From 64821ca4df5e8e88c9ff77836e29f33712d3009b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Thu, 19 Dec 2013 14:43:41 +0100
Subject: [PATCH] Always prepend space to -DPROCESSOR_COUNT.
This prevents issues when something is already declared in DEFS.
---
ruby/command-t/extconf.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ruby/command-t/extconf.rb b/ruby/command-t/extconf.rb
index e38cdd8..bf3c6c8 100644
--- a/ruby/command-t/extconf.rb
+++ b/ruby/command-t/extconf.rb
@@ -99,6 +99,6 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
count = processor_count
count = 1 if count < 0 # sanity check
count = 32 if count > 32 # sanity check
-RbConfig::MAKEFILE_CONFIG['DEFS'] += "-DPROCESSOR_COUNT=#{count}"
+RbConfig::MAKEFILE_CONFIG['DEFS'] += " -DPROCESSOR_COUNT=#{count}"
create_makefile('ext')
--
1.8.4.2

View file

@ -5,7 +5,7 @@
%global commandt_so_dir %{ruby_vendorarchdir}/command-t
Name: vim-command-t
Version: 1.5
Version: 1.6
Release: 1%{?dist}
Summary: An extremely fast, intuitive mechanism for opening files in VIM
Group: Applications/Editors
@ -13,12 +13,12 @@ License: BSD
URL: https://wincent.com/products/command-t
# Officialy distributed only using vimball:
# https://wincent.com/issues/1978
# .gitattributes are used to ignore huge benchmark.yml file.
# https://github.com/wincent/Command-T/pull/56
# git clone git://git.wincent.com/command-t.git && cd command-t/
# echo "data/benchmark.yml export-ignore" > .gitattributes
# git archive 1.5 -o command-t-1.5.tar.gz --worktree-attributes
# git archive 1.6 -o command-t-1.6.tar.gz
Source0: command-t-%{version}.tar.gz
# Fixes build on i386, where DEFS already contains some definition.
# https://github.com/wincent/Command-T/pull/60
Patch0: vim-command-t-1.6-Always-prepend-space-to-DPROCESSOR_COUNT.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
@ -48,6 +48,8 @@ more weight.
%prep
%setup -q -c
%patch0 -p1
%build
pushd ./ruby/command-t
@ -77,10 +79,6 @@ cp -pa doc/command-t.txt README.txt
# Get rid of Bundler
sed -i '24,+5d' spec/spec_helper.rb
# Test suite fails with "NoMethodError: undefined method `evaluate' for VIM:Module".
# https://wincent.com/issues/2111
sed -i '/@base_wild_ignore = VIM::wild_ignore/ s/^/#/' ruby/command-t/scanner/file_scanner.rb
rspec -Iruby spec
%post
@ -107,6 +105,9 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null
%changelog
* 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.