Change-Id: Id3d9584b8685d02330816595b8de1041b256015a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2202
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| ... | ... |
@@ -5,7 +5,7 @@ |
| 5 | 5 |
Summary: Simple, feature rich ascii table generation library |
| 6 | 6 |
Name: rubygem-terminal-table |
| 7 | 7 |
Version: 1.7.3 |
| 8 |
-Release: 1%{?dist}
|
|
| 8 |
+Release: 2%{?dist}
|
|
| 9 | 9 |
Group: Applications/Programming |
| 10 | 10 |
License: BSD |
| 11 | 11 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -15,6 +15,7 @@ Source0: https://rubygems.org/downloads/terminal-table-%{version}.gem
|
| 15 | 15 |
%define sha1 terminal=f1c4f71bcfc43d5b65016383403205b3bac9291e |
| 16 | 16 |
BuildRequires: ruby |
| 17 | 17 |
Requires: ruby |
| 18 |
+Requires: rubygem-unicode-display_width |
|
| 18 | 19 |
%description |
| 19 | 20 |
Simple, feature rich ascii table generation library |
| 20 | 21 |
%prep |
| ... | ... |
@@ -26,6 +27,8 @@ gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
|
| 26 | 26 |
%defattr(-,root,root,-) |
| 27 | 27 |
%{gemdir}
|
| 28 | 28 |
%changelog |
| 29 |
+* Wed Mar 29 2017 Xiaolin Li <xiaolinl@vmware.com> 1.7.3-2 |
|
| 30 |
+- Added rubygem-unicode-display_width to requires. |
|
| 29 | 31 |
* Wed Mar 22 2017 Xiaolin Li <xiaolinl@vmware.com> 1.7.3-1 |
| 30 | 32 |
- Updated to version 1.7.3. |
| 31 | 33 |
* Wed Jan 25 2017 Anish Swaminathan <anishs@vmware.com> 1.5.2-3 |
| 32 | 34 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,44 @@ |
| 0 |
+%global debug_package %{nil}
|
|
| 1 |
+%global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]})
|
|
| 2 |
+%define gem_name unicode-display_width |
|
| 3 |
+ |
|
| 4 |
+Summary: Unicode::DisplayWidth. |
|
| 5 |
+Name: rubygem-unicode-display_width |
|
| 6 |
+Version: 1.1.3 |
|
| 7 |
+Release: 1%{?dist}
|
|
| 8 |
+Group: Development/Languages |
|
| 9 |
+License: MIT |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+URL: https://github.com/janlelis/unicode-display_width |
|
| 13 |
+Source0: http://rubygems.org/gems/unicode-display_width-%{version}.gem
|
|
| 14 |
+%define sha1 unicode-display_width=ffbd2f91f7cd6660d4bb13d6114c4ca16a97d032 |
|
| 15 |
+BuildRequires: ruby |
|
| 16 |
+Requires: ruby |
|
| 17 |
+ |
|
| 18 |
+%description |
|
| 19 |
+Determines the monospace display width of a string in Ruby. Implementation based on EastAsianWidth.txt and other data, 100% in Ruby. Other than wcwidth(), which fulfills a similar purpose, it does not rely on the OS vendor to provide an up-to-date method for measuring string width. |
|
| 20 |
+ |
|
| 21 |
+%prep |
|
| 22 |
+%setup -q -c -T |
|
| 23 |
+ |
|
| 24 |
+%build |
|
| 25 |
+ |
|
| 26 |
+%install |
|
| 27 |
+gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
|
|
| 28 |
+ |
|
| 29 |
+%check |
|
| 30 |
+pushd /usr/src/photon/BUILDROOT/rubygem-rbvmomi-%{version}-%{release}.x86_64/usr/lib/ruby/gems/2.3.0/gems/rbvmomi-%{version}/
|
|
| 31 |
+gem install yard |
|
| 32 |
+gem install jeweler |
|
| 33 |
+gem install rake |
|
| 34 |
+rake test |
|
| 35 |
+popd |
|
| 36 |
+ |
|
| 37 |
+%files |
|
| 38 |
+%defattr(-,root,root,-) |
|
| 39 |
+%{gemdir}
|
|
| 40 |
+ |
|
| 41 |
+%changelog |
|
| 42 |
+* Tue Mar 28 2017 Xiaolin Li <xiaolinl@vmware.com> 1.1.3-1 |
|
| 43 |
+- Initial build |