Browse code

Use system libraries for rubygem-nokogiri

Change-Id: I0b47ad6f942aa666e55290d8607fafcbd59bac5f
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1603
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>

suezzelur authored on 2016/10/29 03:08:00
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 
5 5
 Name: rubygem-nokogiri
6 6
 Version: 1.6.7.2
7
-Release: 2%{?dist}
7
+Release: 3%{?dist}
8 8
 Summary: Nokogiri is an HTML, XML, SAX, and Reader parser.
9 9
 Group: Development/Languages
10 10
 License: MIT
... ...
@@ -13,8 +13,12 @@ Source0: https://rubygems.org/downloads/nokogiri-%{version}.gem
13 13
 %define sha1 nokogiri=d6a374a969abd6105d19076558e57a5cbb10e484
14 14
 BuildRequires: ruby
15 15
 BuildRequires: rubygem-mini_portile2
16
+BuildRequires: libxml2-devel
17
+BuildRequires: libxslt-devel
16 18
 Requires: ruby
17 19
 Requires: rubygem-mini_portile2
20
+Requires: libxml2
21
+Requires: libxslt
18 22
 %description
19 23
 Nokogiri is an HTML, XML, SAX, and Reader parser. Among Nokogiri's many features is the ability to search documents via XPath or CSS3 selectors.
20 24
 %prep
... ...
@@ -22,17 +26,19 @@ Nokogiri is an HTML, XML, SAX, and Reader parser. Among Nokogiri's many features
22 22
 %build
23 23
 
24 24
 %install
25
-gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
25
+NOKOGIRI_USE_SYSTEM_LIBRARIES=1 gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
26 26
 
27 27
 %files
28 28
 %defattr(-,root,root,-)
29 29
 %{gemdir}
30 30
 
31 31
 %changelog
32
+*	Thu Oct 27 2016 Anish Swaminathan <anishs@vmware.com> 1.6.7.2-3
33
+-	Use SYSTEM_LIBRARIES for nokogiri
32 34
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.6.7.2-2
33 35
 -	GA - Bump release of all rpms
34
-* Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 1.6.7.2-1
35
-- Upgrade version.
36
-* Wed Nov 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.6.6.2-1
37
-- Initial build
36
+*	Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 1.6.7.2-1
37
+- 	Upgrade version.
38
+* 	Wed Nov 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.6.6.2-1
39
+- 	Initial build
38 40