Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Vít Ondruch
167dc6795f Fix BE arch issues. 2014-08-15 10:46:11 +02:00
Vít Ondruch
1005d22be8 Update to Command-T 1.10. 2014-08-11 16:56:21 +02:00
Vít Ondruch
874ffca723 Update to Command-T 1.8. 2014-04-30 10:25:00 +02:00
Vít Ondruch
63f920efeb Update to command-t 1.6. 2013-12-19 15:30:28 +01:00
Vít Ondruch
883369dbbe Update to command-t 1.5. 2013-09-23 17:06:01 +02:00
4 changed files with 107 additions and 7 deletions

4
.gitignore vendored
View file

@ -1 +1,5 @@
/command-t-1.4.tar.gz
/command-t-1.5.tar.gz
/command-t-1.6.tar.gz
/command-t-1.8.tar.gz
/command-t-1.10.tar.gz

View file

@ -1 +1 @@
d98188718066276cc26ec4ea5002c076 command-t-1.4.tar.gz
f7ef747b3a8beae15b711079eb3aaa3c command-t-1.10.tar.gz

View file

@ -0,0 +1,75 @@
From 953aa33ab33ca6059f85dc8ebb40c3b6bbaae39c Mon Sep 17 00:00:00 2001
From: Greg Hurrell <greg@hurrell.net>
Date: Thu, 14 Aug 2014 07:40:39 -0700
Subject: [PATCH] Fix (spurious) test failure on big-endian architectures
Our example includes a int_64_t value (the PDU's length prefix), which
is endian-sensitive and so needs to be asserted using native endianness.
Fixes:
https://github.com/wincent/Command-T/issues/101
https://bugzilla.redhat.com/show_bug.cgi?id=1130079
---
spec/command-t/watchman/utils_spec.rb | 45 ++++++++++++++++++++++++-----------
1 file changed, 31 insertions(+), 14 deletions(-)
diff --git a/spec/command-t/watchman/utils_spec.rb b/spec/command-t/watchman/utils_spec.rb
index 8f174f7..4bb5c4e 100644
--- a/spec/command-t/watchman/utils_spec.rb
+++ b/spec/command-t/watchman/utils_spec.rb
@@ -379,20 +379,37 @@ def roundtrip(value)
it 'generates a correct serialization' do
# in Ruby 1.8, hashes aren't ordered, so two serializations are possible
- expected = [
- binary(
- "\x00\x01\x06\x49\x00\x00\x00\x00\x00\x00\x00\x00\x03\x03\x02\x03" \
- "\x05query\x02\x03\x0a/some/path\x01\x03\x02\x02\x03\x0aexpression" \
- "\x00\x03\x02\x02\x03\x04type\x02\x03\x01f\x02\x03\x06fields\x00" \
- "\x03\x01\x02\x03\x04name"
- ),
- binary(
- "\x00\x01\x06\x49\x00\x00\x00\x00\x00\x00\x00\x00\x03\x03\x02\x03" \
- "\x05query\x02\x03\x0a/some/path\x01\x03\x02\x02\x03\x06fields\x00" \
- "\x03\x01\x02\x03\x04name\x02\x03\x0aexpression\x00\x03\x02\x02" \
- "\x03\x04type\x02\x03\x01f"
- )
- ]
+ if little_endian?
+ expected = [
+ binary(
+ "\x00\x01\x06\x49\x00\x00\x00\x00\x00\x00\x00\x00\x03\x03\x02\x03" \
+ "\x05query\x02\x03\x0a/some/path\x01\x03\x02\x02\x03\x0a" \
+ "expression\x00\x03\x02\x02\x03\x04type\x02\x03\x01f\x02\x03\x06" \
+ "fields\x00\x03\x01\x02\x03\x04name"
+ ),
+ binary(
+ "\x00\x01\x06\x49\x00\x00\x00\x00\x00\x00\x00\x00\x03\x03\x02\x03" \
+ "\x05query\x02\x03\x0a/some/path\x01\x03\x02\x02\x03\x06fields" \
+ "\x00\x03\x01\x02\x03\x04name\x02\x03\x0aexpression\x00\x03\x02" \
+ "\x02\x03\x04type\x02\x03\x01f"
+ )
+ ]
+ else
+ expected = [
+ binary(
+ "\x00\x01\x06\x00\x00\x00\x00\x00\x00\x00\x49\x00\x03\x03\x02\x03" \
+ "\x05query\x02\x03\x0a/some/path\x01\x03\x02\x02\x03\x0a" \
+ "expression\x00\x03\x02\x02\x03\x04type\x02\x03\x01f\x02\x03\x06" \
+ "fields\x00\x03\x01\x02\x03\x04name"
+ ),
+ binary(
+ "\x00\x01\x06\x00\x00\x00\x00\x00\x00\x00\x49\x00\x03\x03\x02\x03" \
+ "\x05query\x02\x03\x0a/some/path\x01\x03\x02\x02\x03\x06fields" \
+ "\x00\x03\x01\x02\x03\x04name\x02\x03\x0aexpression\x00\x03\x02" \
+ "\x02\x03\x04type\x02\x03\x01f"
+ )
+ ]
+ end
expect(expected).to include(described_class.dump(query))
end
end
--
2.0.3

View file

@ -5,8 +5,8 @@
%global commandt_so_dir %{ruby_vendorarchdir}/command-t
Name: vim-command-t
Version: 1.4
Release: 5%{?dist}
Version: 1.10
Release: 3%{?dist}
Summary: An extremely fast, intuitive mechanism for opening files in VIM
Group: Applications/Editors
License: BSD
@ -14,8 +14,11 @@ URL: https://wincent.com/products/command-t
# Officialy distributed only using vimball:
# https://wincent.com/issues/1978
# git clone git://git.wincent.com/command-t.git && cd command-t/
# git archive 1.4 -o command-t-1.4.tar.gz
# git archive 1.10 -o command-t-1.10.tar.gz
Source0: command-t-%{version}.tar.gz
# Fix test failure on BE architectures (rhbz#1130079).
# https://github.com/wincent/Command-T/commit/953aa33ab33ca6059f85dc8ebb40c3b6bbaae39c
Patch0: vim-command-t-1.10-Fix-test-failure-on-big-endian-architectures.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
@ -45,6 +48,8 @@ more weight.
%prep
%setup -q -c
%patch0 -p1
%build
pushd ./ruby/command-t
@ -57,7 +62,7 @@ popd
%install
mkdir -p %{buildroot}%{vimfiles}
cp -par {doc,plugin,ruby} %{buildroot}%{vimfiles}
cp -par {autoload,doc,plugin,ruby} %{buildroot}%{vimfiles}
mkdir -p %{buildroot}%{commandt_so_dir}
chmod 0755 %{buildroot}%{vimfiles}/ruby/command-t/ext.so
@ -72,7 +77,7 @@ cp -pa doc/command-t.txt README.txt
%check
# Get rid of Bundler
sed -i '24,+5d' spec/spec_helper.rb
sed -i '/Bundler/,/^end$/ s/^/#/' spec/spec_helper.rb
rspec -Iruby spec
@ -87,6 +92,7 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null
%doc LICENSE
%doc README.txt
%{commandt_so_dir}
%{vimfiles}/autoload/*
%{vimfiles}/doc/*
%{vimfiles}/plugin/*
%exclude %{vimfiles}/ruby/command-t/ext*
@ -96,10 +102,25 @@ vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null
%exclude %{vimfiles}/ruby/command-t/Makefile
%exclude %{vimfiles}/ruby/command-t/mkmf.log
%exclude %{vimfiles}/ruby/command-t/depend
%{vimfiles}/ruby/*
%{vimfiles}/ruby
%changelog
* 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-1
- Update to Command-T 1.10.
* 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