[Groonga-commit] pgroonga/pgroonga at 5324725 [master] Support Ubuntu package

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 29 00:32:37 JST 2015


Kouhei Sutou	2015-01-29 00:32:37 +0900 (Thu, 29 Jan 2015)

  New Revision: 53247258f3a43ac52fd746005fd8480139fc9978
  https://github.com/pgroonga/pgroonga/commit/53247258f3a43ac52fd746005fd8480139fc9978

  Message:
    Support Ubuntu package

  Added files:
    packages/debian/changelog
    packages/debian/compat
    packages/debian/control
    packages/debian/copyright
    packages/debian/patches/series
    packages/debian/rules
    packages/debian/source/format
    packages/debian/watch
  Modified files:
    Rakefile

  Modified: Rakefile (+28 -0)
===================================================================
--- Rakefile    2015-01-29 00:07:23 +0900 (633e389)
+++ Rakefile    2015-01-29 00:32:37 +0900 (089e7a9)
@@ -3,6 +3,14 @@
 package = "pgroonga"
 rsync_base_path = "packages �� packages.groonga.org:public"
 gpg_uid = "45499429"
+groonga_source_dir_candidates = [
+  "../groonga.clean",
+  "../groonga",
+]
+groonga_source_dir = groonga_source_dir_candidates.find do |candidate|
+  File.exist?(candidate)
+end
+groonga_source_dir = File.expand_path(groonga_source_dir) if groonga_source_dir
 
 def find_version(package)
   control_content = File.read("#{package}.control")
@@ -13,6 +21,13 @@ def find_version(package)
   end
 end
 
+def launchpad_uploader_pgp_key
+  env = "LAUNCHPAD_UPLOADER_PGP_KEY"
+  key = ENV[env]
+  raise "Specify #{env} environment variable" if key.nil?
+  key
+end
+
 version = find_version(package)
 
 archive_base_name = "#{package}-#{version}"
@@ -142,4 +157,17 @@ postgresql-devel
          "#{rsync_path}/#{distribution}")
     end
   end
+
+  namespace :ubuntu do
+    desc "Upload package"
+    task :upload do
+      ruby("#{groonga_source_dir}/packages/ubuntu/upload.rb",
+           "--package", package,
+           "--version", version,
+           "--source-archive", archive_name,
+           "--code-names", "utopic",
+           "--debian-directory", "packages/debian",
+           "--pgp-sign-key", launchpad_uploader_pgp_key)
+    end
+  end
 end

  Added: packages/debian/changelog (+5 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/changelog    2015-01-29 00:32:37 +0900 (d769d56)
@@ -0,0 +1,5 @@
+pgroonga (0.2.0-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Kouhei Sutou <kou �� clear-code.com>  Thu, 29 Jan 2015 00:00:00 +0900

  Added: packages/debian/compat (+1 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/compat    2015-01-29 00:32:37 +0900 (ec63514)
@@ -0,0 +1 @@
+9

  Added: packages/debian/control (+22 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/control    2015-01-29 00:32:37 +0900 (48e3279)
@@ -0,0 +1,22 @@
+Source: pgroonga
+Section: libs
+Priority: optional
+Maintainer: PGroonga Project <packages �� groonga.org>
+Build-Depends:
+  debhelper (>= 9),
+  pkg-config,
+  libgroonga-dev,
+  postgresql-server-dev-9.4
+Standards-Version: 3.9.3
+Homepage: https://github.com/pgroonga/pgroonga
+
+Package: postgresql-9.4-pgroonga
+Architecture: any
+Depends:
+  ${misc:Depends},
+  ${shlibs:Depends},
+  libgroonga0,
+  postgresql-server-9.4
+Description: Fast full-text search plugin for PostgreSQL based on Groonga
+ PGroonga is a PostgreSQL plugin. It provides fast full-text search feature.
+ It is based on Groonga full-text search engine.

  Added: packages/debian/copyright (+35 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/copyright    2015-01-29 00:32:37 +0900 (0ca4f9e)
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Kouhei Sutou <kou****@clear*****>
+Source: http://packages.groonga.org/source/pgroonga/
+
+Files: *
+Copyright: 2015 Kouhei Sutou <kou �� clear-code.com>
+License: PostgreSQL
+
+Files: pgroonga.c
+       pgroonga.h
+       pgroonga_types.c
+       pgroonga--*.sql
+Copyright: 2015 Kouhei Sutou <kou �� clear-code.com>
+           2010 Itagaki Takahiro
+           2009-2010, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
+           1996-2010, The PostgreSQL Global Development Group
+           1994, The Regents of the University of California
+License: PostgreSQL
+
+License: PostgreSQL
+ Permission to use, copy, modify, and distribute this software and
+ its documentation for any purpose, without fee, and without a written
+ agreement is hereby granted, provided that the above copyright notice and
+ this paragraph and the following two paragraphs appear in all copies.
+ .
+ IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE TO ANY PARTY FOR DIRECT,
+ INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
+ PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ IF THE COPYRIGHT HOLDERS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ .
+ THE COPYRIGHT HOLDERS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THE COPYRIGHT HOLDERS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

  Added: packages/debian/patches/series (+0 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/patches/series    2015-01-29 00:32:37 +0900 (e69de29)

  Added: packages/debian/rules (+13 -0) 100755
===================================================================
--- /dev/null
+++ packages/debian/rules    2015-01-29 00:32:37 +0900 (633c7d4)
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile-gmake -*-
+#
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+%:
+	dh $@
+
+# disable 'make check'.
+override_dh_auto_test:

  Added: packages/debian/source/format (+1 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/source/format    2015-01-29 00:32:37 +0900 (163aaf8)
@@ -0,0 +1 @@
+3.0 (quilt)

  Added: packages/debian/watch (+2 -0) 100644
===================================================================
--- /dev/null
+++ packages/debian/watch    2015-01-29 00:32:37 +0900 (3de5752)
@@ -0,0 +1,2 @@
+version=3
+http://packages.groonga.org/source/pgroonga/pgroonga-(.+).tar.gz
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index