[DRE-commits] [tdiary-style-rd] 01/03: Create Debian Package

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Sun Jun 26 09:13:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

uwabami-guest pushed a commit to branch master
in repository tdiary-style-rd.

commit 573c2914aaa4fbe531706abd1e158c20a7065b75
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Sat Feb 28 00:47:14 2015 +0900

    Create Debian Package
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 debian/README.Debian                               |  8 ++++++
 debian/changelog                                   |  5 ++++
 debian/compat                                      |  1 +
 debian/control                                     | 24 ++++++++++++++++++
 debian/copyright                                   | 29 ++++++++++++++++++++++
 debian/docs                                        |  2 ++
 debian/patches/0001-Add_LOAD_PATH_for_RSpec.patch  | 20 +++++++++++++++
 ...-patch-replace-git-execution-from-gemspec.patch | 22 ++++++++++++++++
 debian/patches/series                              |  2 ++
 debian/ruby-tests.rake                             |  7 ++++++
 debian/rules                                       |  8 ++++++
 debian/source/format                               |  1 +
 debian/tdiary-style-rd.dirs                        |  1 +
 debian/tdiary-style-rd.install                     |  1 +
 debian/tdiary-style-rd.links                       |  4 +++
 debian/watch                                       |  3 +++
 16 files changed, 138 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..4b9c5d7
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,8 @@
+tDiary: RD style for Debian
+===========================
+
+In Debian, tdiary-style-rd is installed under '/usr/share/tdiary/lib',
+and create all files as symbolic link under '/usr/lib/vendor/ruby', for
+Backward Compatiblity(Avoid Apache's follow symlink settings).
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org>, Tue,  5 Jan 2016 19:03:37 +0900
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..9894223
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+tdiary-style-rd (0.0.3-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org>  Sat, 28 Feb 2015 00:25:11 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c362d8d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: tdiary-style-rd
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Youhei SASAKI <uwabami at gfd-dennou.org>
+Build-Depends: debhelper (>= 9~), gem2deb, tdiary-core (>= 4.2.0~)
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/tdiary-style-rd.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-ruby-extras/tdiary-style-rd.git
+Homepage: https://github.com/tdiary/tdiary-style-rd
+XS-Ruby-Versions: all
+
+Package: tdiary-style-rd
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, tdiary-core, ruby-rd
+Description: RD Style for tDiary
+ RD style for tDiary (>= 2.x) format. based on Wiki style.
+ .
+ The tDiary is a weblog system, which makes your weblog
+ communication-friendly for the writer (you) and readers. It consists of
+ Ruby scripts for CGI (Common Gateway Interface).
+ .
+ This package provides RD Style. RD is Ruby's POD. RDtool is formatter for RD.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..49e0ac1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tdiary-style-rd
+Source: https://github.com/tdiary/tdiary-style-rd
+
+Files: *
+Copyright: 2003 UECHI Yasumasa <uechi at potaway.net>
+           2013 hsbt <shibata.hiroshi at gmail.com>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2015 Youhei SASAKI <uwabami at gfd-dennou.org>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
\ No newline at end of file
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..977b5bf
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README.md
+README.rd
diff --git a/debian/patches/0001-Add_LOAD_PATH_for_RSpec.patch b/debian/patches/0001-Add_LOAD_PATH_for_RSpec.patch
new file mode 100644
index 0000000..1c0d51a
--- /dev/null
+++ b/debian/patches/0001-Add_LOAD_PATH_for_RSpec.patch
@@ -0,0 +1,20 @@
+From: Debian Ruby Extras Maintainers
+ <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Date: Tue, 5 Jan 2016 18:56:50 +0900
+Subject: Add LOAD_PATH '/usr/share/tdiary/lib' for RSpec
+
+Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
+---
+ spec/spec_helper.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index a9e4745..a03e62a 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,4 +1,4 @@
+-$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
++$LOAD_PATH.unshift File.expand_path('/usr/share/tdiary/lib')
+ require 'tdiary/comment_manager'
+ require 'tdiary/referer_manager'
+ require 'tdiary/style'
diff --git a/debian/patches/0002-Add-patch-replace-git-execution-from-gemspec.patch b/debian/patches/0002-Add-patch-replace-git-execution-from-gemspec.patch
new file mode 100644
index 0000000..d8b5835
--- /dev/null
+++ b/debian/patches/0002-Add-patch-replace-git-execution-from-gemspec.patch
@@ -0,0 +1,22 @@
+From: Youhei SASAKI <uwabami at gfd-dennou.org>
+Date: Tue, 5 Jan 2016 18:57:59 +0900
+Subject: Add patch: replace git execution from gemspec
+
+Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
+---
+ tdiary-style-rd.gemspec | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tdiary-style-rd.gemspec b/tdiary-style-rd.gemspec
+index 8a3d362..a38c2f3 100644
+--- a/tdiary-style-rd.gemspec
++++ b/tdiary-style-rd.gemspec
+@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
+   spec.homepage      = "https://github.com/tdiary/tdiary-style-rd"
+   spec.license       = "MIT"
+ 
+-  spec.files         = `git ls-files`.split($/)
++  spec.files         = [".gitignore",".rspec",".travis.yml","Gemfile","LICENSE.txt","README.md","README.rd","Rakefile","lib/tdiary-style-rd.rb","lib/tdiary/style/rd.rb","lib/tdiary/style/rd/version.rb","spec/spec_helper.rb","spec/tdiary/style/rd_spec.rb","tdiary-style-rd.gemspec"]
+   spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
+   spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
+   spec.require_paths = ["lib"]
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..db5cead
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0001-Add_LOAD_PATH_for_RSpec.patch
+0002-Add-patch-replace-git-execution-from-gemspec.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..48132e5
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'gem2deb/rake/spectask'
+
+Gem2Deb::Rake::RSpecTask.new do |spec|
+  spec.pattern = FileList['spec/**/*_spec.rb']
+end
+
+task :default => :spec
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6e34202
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --buildsystem ruby --with ruby
+
+override_dh_auto_install:
+	dh_auto_install
+	rm -fr $(CURDIR)/debian/tdiary-style-rd/usr/lib
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tdiary-style-rd.dirs b/debian/tdiary-style-rd.dirs
new file mode 100644
index 0000000..90d85d3
--- /dev/null
+++ b/debian/tdiary-style-rd.dirs
@@ -0,0 +1 @@
+usr/share/tdiary/lib
diff --git a/debian/tdiary-style-rd.install b/debian/tdiary-style-rd.install
new file mode 100644
index 0000000..59e2eaa
--- /dev/null
+++ b/debian/tdiary-style-rd.install
@@ -0,0 +1 @@
+lib usr/share/tdiary/
diff --git a/debian/tdiary-style-rd.links b/debian/tdiary-style-rd.links
new file mode 100644
index 0000000..b4adc97
--- /dev/null
+++ b/debian/tdiary-style-rd.links
@@ -0,0 +1,4 @@
+usr/share/tdiary/lib/tdiary/style/rd/version.rb  usr/lib/ruby/vendor_ruby/tdiary/style/rd/version.rb
+usr/share/tdiary/lib/tdiary/style/rd.rb usr/lib/ruby/vendor_ruby/tdiary/style/rd.rb
+usr/share/tdiary/lib/tdiary-style-rd.rb usr/lib/ruby/vendor_ruby/tdiary-style-rd.rb
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..77a9f2d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/tdiary-style-rd-$1\.tar\.gz/ \
+  https://github.com/tdiary/tdiary-style-rd/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/tdiary-style-rd.git



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