libspotify 12.1.51.1-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +2 -0
- data/LICENSE.txt +22 -0
- data/README.md +10 -0
- data/Rakefile +72 -0
- data/lib/libspotify.rb +1 -0
- data/libspotify.gemspec +17 -0
- data/libspotify.library +0 -0
- metadata +78 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Kim Burgestrand
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# libspotify
|
2
|
+
|
3
|
+
This is a mere ruby gem that bundles the libspotify binaries for ease of installation.
|
4
|
+
|
5
|
+
Please see [the official libspotify documentation at https://developer.spotify.com/technologies/libspotify/ for more information](https://developer.spotify.com/technologies/libspotify/).
|
6
|
+
|
7
|
+
# Version policy
|
8
|
+
|
9
|
+
Given `12.1.51.0`, the `12.1.51` is the libspotify version, and the last `0` means it’s the first version released
|
10
|
+
of the libspotify gem for this libspotify version.
|
data/Rakefile
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
desc "Build the libspotify gem for supported platforms"
|
2
|
+
task :build do
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
root = File.dirname(__FILE__)
|
6
|
+
bins = File.join(root, 'bin/')
|
7
|
+
pkgs = File.join(root, 'pkg/')
|
8
|
+
FileUtils.mkdir_p(pkgs, verbose: true)
|
9
|
+
|
10
|
+
# We want the right binary location.
|
11
|
+
require_relative 'lib/libspotify'
|
12
|
+
|
13
|
+
# Maps platform to libspotify binary name.
|
14
|
+
platforms =
|
15
|
+
{
|
16
|
+
"universal-darwin" => "libspotify-darwin.dylib",
|
17
|
+
"i686-linux" => "libspotify-i686-linux.so",
|
18
|
+
"x86_64-linux" => "libspotify-x86_64-linux.so",
|
19
|
+
Gem::Platform::RUBY => nil, # fallback platform
|
20
|
+
}
|
21
|
+
|
22
|
+
# Load our gem specification.
|
23
|
+
original = Gem::Specification.load('libspotify.gemspec')
|
24
|
+
|
25
|
+
# output bling.
|
26
|
+
puts
|
27
|
+
|
28
|
+
# Now build the gem for each platform.
|
29
|
+
gempaths = platforms.each_pair.map do |platform, name|
|
30
|
+
# Make sure we don’t break anything.
|
31
|
+
spec = original.dup
|
32
|
+
|
33
|
+
print "[#{platform}]: "
|
34
|
+
spec.platform = platform
|
35
|
+
|
36
|
+
if name.nil? # pure ruby build
|
37
|
+
spec.files.delete('libspotify.library')
|
38
|
+
FileUtils.rm(LIBSPOTIFY_BIN, verbose: true)
|
39
|
+
else
|
40
|
+
source_binary = File.join(bins, name)
|
41
|
+
begin
|
42
|
+
FileUtils.cp(source_binary, LIBSPOTIFY_BIN, verbose: true)
|
43
|
+
rescue Errno::ENOENT
|
44
|
+
puts "Missing #{source_binary}. Cannot build for #{platform}."
|
45
|
+
exit(false)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# Annoying.
|
50
|
+
Gem.configuration.verbose = false
|
51
|
+
|
52
|
+
# Move the build binary to the pkg/ directory.
|
53
|
+
gemname = Gem::Builder.new(spec).build
|
54
|
+
File.join(pkgs, File.basename(gemname)).tap do |gempath|
|
55
|
+
FileUtils.mv(gemname, gempath)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
puts
|
60
|
+
puts "All gems successfully built. To publish, do:"
|
61
|
+
gempaths.each do |path|
|
62
|
+
puts " gem push pkg/#{File.basename(path)}"
|
63
|
+
end
|
64
|
+
puts "Do not forget to push to GitHub as well."
|
65
|
+
end
|
66
|
+
|
67
|
+
desc "Launch an IRB console with the gem loaded."
|
68
|
+
task :console do
|
69
|
+
exec 'irb -Ilib -rlibspotify'
|
70
|
+
end
|
71
|
+
|
72
|
+
task :default => :console
|
data/lib/libspotify.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
LIBSPOTIFY_BIN = File.expand_path("../libspotify.library", File.dirname(__FILE__))
|
data/libspotify.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.expand_path('../lib/libspotify', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.name = "libspotify"
|
6
|
+
gem.authors = ["Kim Burgestrand"]
|
7
|
+
gem.email = ["kim@burgestrand.se"]
|
8
|
+
gem.summary = %q{A binary ruby gem for distribution of libspotify.}
|
9
|
+
gem.description = File.read('README.md')
|
10
|
+
gem.homepage = "https://github.com/Burgestrand/libspotify"
|
11
|
+
gem.require_paths = ["lib"]
|
12
|
+
gem.files = `git ls-files`.split($/)
|
13
|
+
gem.files << "libspotify.library"
|
14
|
+
|
15
|
+
gem.version = "12.1.51.1"
|
16
|
+
gem.platform = Gem::Platform::RUBY
|
17
|
+
end
|
data/libspotify.library
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: libspotify
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 12.1.51.1
|
5
|
+
prerelease:
|
6
|
+
platform: universal-darwin
|
7
|
+
authors:
|
8
|
+
- Kim Burgestrand
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-08-01 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: ! '# libspotify
|
15
|
+
|
16
|
+
|
17
|
+
This is a mere ruby gem that bundles the libspotify binaries for ease of installation.
|
18
|
+
|
19
|
+
|
20
|
+
Please see [the official libspotify documentation at https://developer.spotify.com/technologies/libspotify/
|
21
|
+
for more information](https://developer.spotify.com/technologies/libspotify/).
|
22
|
+
|
23
|
+
|
24
|
+
# Version policy
|
25
|
+
|
26
|
+
|
27
|
+
Given `12.1.51.0`, the `12.1.51` is the libspotify version, and the last `0` means
|
28
|
+
it’s the first version released
|
29
|
+
|
30
|
+
of the libspotify gem for this libspotify version.
|
31
|
+
|
32
|
+
'
|
33
|
+
email:
|
34
|
+
- kim@burgestrand.se
|
35
|
+
executables: []
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- .gitignore
|
40
|
+
- Gemfile
|
41
|
+
- LICENSE.txt
|
42
|
+
- README.md
|
43
|
+
- Rakefile
|
44
|
+
- bin/.gitkeep
|
45
|
+
- lib/libspotify.rb
|
46
|
+
- libspotify.gemspec
|
47
|
+
- libspotify.library
|
48
|
+
homepage: https://github.com/Burgestrand/libspotify
|
49
|
+
licenses: []
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options: []
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ! '>='
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
hash: -685144165072869494
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
hash: -685144165072869494
|
72
|
+
requirements: []
|
73
|
+
rubyforge_project:
|
74
|
+
rubygems_version: 1.8.24
|
75
|
+
signing_key:
|
76
|
+
specification_version: 3
|
77
|
+
summary: A binary ruby gem for distribution of libspotify.
|
78
|
+
test_files: []
|