[DRE-commits] [SCM] ruby-sqlite3.git branch, master, updated. debian/1.3.6-2

Antonio Terceiro terceiro at debian.org
Mon Jun 25 22:15:59 UTC 2012


The following commit has been merged in the master branch:
commit ad89ff0834f66a04e965c08658a58894168891d0
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Jun 24 18:35:07 2012 -0300

    Add an external gemspec

diff --git a/debian/changelog b/debian/changelog
index c2281ac..2d55466 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-sqlite3 (1.3.6-2) unstable; urgency=low
 
   * Team upload.
   * Bump build-depends on gem2deb to >= 0.3.0~
+  * debian/rules: use debian/sqlite3-1.3.6.gemspec as a gemspec
 
  -- Antonio Terceiro <terceiro at debian.org>  Sun, 24 Jun 2012 17:54:27 -0300
 
diff --git a/debian/rules b/debian/rules
index 30a05ad..17e5446 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,11 @@
 # Uncomment to ignore some test failures (but the tests will run anyway).
 # Valid values:
 #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
-#
-# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
+
+# TODO this should not be needed if the upstream tarball was obtained through
+# gemwatch (it would already have a metadata.yml file).
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)
+export DH_RUBY_GEMSPEC=debian/sqlite3-$(UPSTREAM_VERSION).gemspec
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/sqlite3-1.3.6.gemspec b/debian/sqlite3-1.3.6.gemspec
new file mode 100644
index 0000000..8070485
--- /dev/null
+++ b/debian/sqlite3-1.3.6.gemspec
@@ -0,0 +1,44 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+  s.name = "sqlite3"
+  s.version = "1.3.6"
+
+  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
+  s.authors = ["Jamis Buck", "Luis Lavena", "Aaron Patterson"]
+  s.date = "2012-04-16"
+  s.description = "This module allows Ruby programs to interface with the SQLite3\ndatabase engine (http://www.sqlite.org).  You must have the\nSQLite engine installed in order to build this module.\n\nNote that this module is only compatible with SQLite 3.6.16 or newer."
+  s.email = ["jamis at 37signals.com", "luislavena at gmail.com", "aaron at tenderlovemaking.com"]
+  s.extensions = ["ext/sqlite3/extconf.rb"]
+  s.extra_rdoc_files = ["API_CHANGES.rdoc", "CHANGELOG.rdoc", "Manifest.txt", "README.rdoc", "ext/sqlite3/backup.c", "ext/sqlite3/database.c", "ext/sqlite3/exception.c", "ext/sqlite3/sqlite3.c", "ext/sqlite3/statement.c"]
+  s.files = ["API_CHANGES.rdoc", "CHANGELOG.rdoc", "ChangeLog.cvs", "LICENSE", "Manifest.txt", "README.rdoc", "Rakefile", "ext/sqlite3/backup.c", "ext/sqlite3/backup.h", "ext/sqlite3/database.c", "ext/sqlite3/database.h", "ext/sqlite3/exception.c", "ext/sqlite3/exception.h", "ext/sqlite3/extconf.rb", "ext/sqlite3/sqlite3.c", "ext/sqlite3/sqlite3_ruby.h", "ext/sqlite3/statement.c", "ext/sqlite3/statement.h", "faq/faq.rb", "faq/faq.yml", "lib/sqlite3.rb", "lib/sqlite3/constants.rb", "lib/sqlite3/database.rb", "lib/sqlite3/errors.rb", "lib/sqlite3/pragmas.rb", "lib/sqlite3/resultset.rb", "lib/sqlite3/statement.rb", "lib/sqlite3/translator.rb", "lib/sqlite3/value.rb", "lib/sqlite3/version.rb", "setup.rb", "tasks/faq.rake", "tasks/gem.rake", "tasks/native.rake", "tasks/vendor_sqlite3.rake", "test/helper.rb", "test/test_backup.rb", "test/test_collation.rb", "test/test_database.rb", "test/test_database_readonly.rb", "test/test_deprecated.rb", "test/test_encoding.rb", "test/test_integration.rb", "test/test_integration_open_close.rb", "test/test_integration_pending.rb", "test/test_integration_resultset.rb", "test/test_integration_statement.rb", "test/test_sqlite3.rb", "test/test_statement.rb", "test/test_statement_execute.rb", "test/test_result_set.rb", ".gemtest"]
+  s.homepage = "http://github.com/luislavena/sqlite3-ruby"
+  s.rdoc_options = ["--main", "README.rdoc"]
+  s.require_paths = ["lib"]
+  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
+  s.rubyforge_project = "sqlite3"
+  s.rubygems_version = "1.8.23"
+  s.summary = "This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org)"
+  s.test_files = ["test/test_backup.rb", "test/test_collation.rb", "test/test_database.rb", "test/test_database_readonly.rb", "test/test_deprecated.rb", "test/test_encoding.rb", "test/test_integration.rb", "test/test_integration_open_close.rb", "test/test_integration_pending.rb", "test/test_integration_resultset.rb", "test/test_integration_statement.rb", "test/test_result_set.rb", "test/test_sqlite3.rb", "test/test_statement.rb", "test/test_statement_execute.rb"]
+
+  if s.respond_to? :specification_version then
+    s.specification_version = 3
+
+    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+      s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
+      s.add_development_dependency(%q<rake-compiler>, ["~> 0.7.0"])
+      s.add_development_dependency(%q<mini_portile>, ["~> 0.2.2"])
+      s.add_development_dependency(%q<hoe>, ["~> 3.0"])
+    else
+      s.add_dependency(%q<rdoc>, ["~> 3.10"])
+      s.add_dependency(%q<rake-compiler>, ["~> 0.7.0"])
+      s.add_dependency(%q<mini_portile>, ["~> 0.2.2"])
+      s.add_dependency(%q<hoe>, ["~> 3.0"])
+    end
+  else
+    s.add_dependency(%q<rdoc>, ["~> 3.10"])
+    s.add_dependency(%q<rake-compiler>, ["~> 0.7.0"])
+    s.add_dependency(%q<mini_portile>, ["~> 0.2.2"])
+    s.add_dependency(%q<hoe>, ["~> 3.0"])
+  end
+end

-- 
ruby-sqlite3.git



More information about the Pkg-ruby-extras-commits mailing list