ovirt-engine-sdk 4.1.1 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 395a9b04dc3e71a235ae9052b21279a2bbb8af8f
4
- data.tar.gz: 7bd2f24543570390f93c3a67830489070ed1ed4d
3
+ metadata.gz: ddf0ca50c29a4459a5294f8c37b1fbb6259fdd45
4
+ data.tar.gz: 63bd397c04570ce3619146fb25009e556798e18e
5
5
  SHA512:
6
- metadata.gz: 1f52ca7563332b7e15e0e1167586c456090392885f642c4bc3581377a74e7f828ba8d2c0bcbb3d715a2cf7978c399dae27224fd7ddab16ba36dbb6297ff96b0d
7
- data.tar.gz: 549a64ac8af616d12895d846c1d01efb57c39161483c963d701de3f95dc42d5bc2eede42815874620934441293e008cea7b8d89125d71ec81624b76294e893b1
6
+ metadata.gz: bd72d1fdfb18d03aedd4a77cbef3a3f432eed016332c949930651ae19f43e538760bd2118e7814c5a82758feb8ca60b6270324f9608b6c8653882a75596cbb3c
7
+ data.tar.gz: 203ab888e1e8eab72c64051e28161aa80a0b80b08b7a81ff5917619e243293d8d92d8cae858bbac2e8ae6890762cd2fa91fbe2d1f01679f0519146c951039739
data/CHANGES.adoc CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.1.2 / Feb 9 2017
6
+
7
+ Bug fixes:
8
+
9
+ * Use `curl-config` to detect `libcurl`, if possible.
10
+
5
11
  == 4.1.1 / Feb 1 2017
6
12
 
7
13
  Bug fixes:
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
3
  #
4
- # Copyright (c) 2015-2016 Red Hat, Inc.
4
+ # Copyright (c) 2015-2017 Red Hat, Inc.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -18,15 +18,25 @@
18
18
 
19
19
  require 'mkmf'
20
20
 
21
- # Check that "libxml2" is available:
22
- unless find_executable('xml2-config')
21
+ # Check if "libxml2" is available:
22
+ xml2_config = find_executable('xml2-config')
23
+ if xml2_config
24
+ cflags = `#{xml2_config} --cflags`.strip
25
+ libs = `#{xml2_config} --libs`.strip
26
+ $CPPFLAGS = "#{cflags} #{$CPPFLAGS}"
27
+ $LDFLAGS = "#{libs} #{$LDFLAGS}"
28
+ elsif !pkg_config('libxml2')
23
29
  raise 'The "libxml2" package isn\'t available.'
24
30
  end
25
- $CPPFLAGS = "#{`xml2-config --cflags`.strip} #{$CPPFLAGS}"
26
- $LDFLAGS = "#{`xml2-config --libs`.strip} #{$LDFLAGS}"
27
31
 
28
- # Check that "libcurl" is available:
29
- unless pkg_config('libcurl')
32
+ # Check if "libcurl" is available:
33
+ curl_config = find_executable('curl-config')
34
+ if curl_config
35
+ cflags = `#{curl_config} --cflags`.strip
36
+ libs = `#{curl_config} --libs`.strip
37
+ $CPPFLAGS = "#{cflags} #{$CPPFLAGS}"
38
+ $LDFLAGS = "#{libs} #{$LDFLAGS}"
39
+ elsif !pkg_config('libcurl')
30
40
  raise 'The "libcurl" package isn\'t available.'
31
41
  end
32
42
 
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.1.1'.freeze
19
+ VERSION = '4.1.2'.freeze
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt-engine-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Hernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake