[DRE-commits] [SCM] ruby-graphviz.git branch, master, updated. cec88cf8d3af7d9f5e95aeae65c6e88e5700e908

Praveen Arimbrathodiyil praveen at debian.org
Fri Oct 26 15:54:51 UTC 2012


The following commit has been merged in the master branch:
commit cec88cf8d3af7d9f5e95aeae65c6e88e5700e908
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Oct 26 21:23:38 2012 +0530

    tune the package and fix lintian errors
    
    - added man pages for all executables in /usr/bin
    - patched out all rubygems requires

diff --git a/debian/changelog b/debian/changelog
index e3a9d3c..4d01724 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-graphviz (1.0.8-1) UNRELEASED; urgency=low
+ruby-graphviz (1.0.8-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #676393)
 
- -- Praveen Arimbrathodiyil <pravi at savannah.pnq.redhat.com>  Fri, 26 Oct 2012 21:17:20 +0530
+ -- Praveen Arimbrathodiyil <praveen at debian.org>  Fri, 26 Oct 2012 18:38:19 +0530
diff --git a/debian/control b/debian/control
index b671ff1..5a629f1 100644
--- a/debian/control
+++ b/debian/control
@@ -2,19 +2,23 @@ Source: ruby-graphviz
 Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
-Uploaders:  <>
+Uploaders: Praveen Arimbrathodiyil <praveen at debian.org>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~),
+ graphviz
 Standards-Version: 3.9.3
-#Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-graphviz.git
-#Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-graphviz.git;a=summary
+Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-graphviz.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-graphviz.git;a=summary
 Homepage: http://github.com/glejeune/Ruby-Graphviz
 XS-Ruby-Versions: all
 
 Package: ruby-graphviz
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
+ graphviz
 # rake (>= 0, development), gems (>= 0, development), rdoc (>= 0, development)
-Description: Interface to the GraphViz graphing tool
- Ruby/Graphviz provides an interface to layout and generate images of directed graphs in a variety of formats (PostScript, PNG, etc.) using GraphViz.
+Description: Ruby interface to the GraphViz graphing tool
+ Ruby/Graphviz provides an interface to layout and generate images of 
+ directed graphs in a variety of formats (PostScript, PNG, etc.) using 
+ GraphViz.
diff --git a/debian/copyright b/debian/copyright
index 8f88927..aba73d2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,11 +1,20 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: ruby-graphviz
-Source: FIXME <http://example.com/>
+Source: http://rubygems.org/gems/ruby-graphviz
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2004-2012 Gregoire Lejeune
+License: GPL-2+
+
+Files: lib/graphviz/nothugly/nothugly.xsl
+Copyright: Vidar Hokstad and Ryan Shea
+License: Expat
+
+Files: debian/*
+Copyright: 2012 Praveen Arimbrathodiyil <praveen at debian.org>
+License: GPL-2+
+
+License: GPL-2+
  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
@@ -25,9 +34,24 @@ License: GPL-2+ (FIXME)
  .
  On Debian systems, the full text of the GNU General Public
  License version 2 can be found in the file
- `/usr/share/common-licenses/GPL-2'.
+ `/usr/share/common-licenses/GPL-2'.a
 
-Files: debian/*
-Copyright: 2012  <>
-License:
- [LICENSE TEXT]
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/dot2ruby.1.pod b/debian/dot2ruby.1.pod
new file mode 100644
index 0000000..0e58f6d
--- /dev/null
+++ b/debian/dot2ruby.1.pod
@@ -0,0 +1,47 @@
+=head1 NAME
+
+dot2ruby - create a ruby script from a graphviz script
+
+=head1 SYNOPSIS
+
+usage: dot2ruby [-ofile] [-Tformat] [-h] [-V] script
+
+=head1 DESCRIPTION
+
+B<dot2ruby> is a tool that allows you to create a ruby script from 
+a graphviz script.
+
+See /usr/share/doc/ruby-graphviz/ for more details.
+
+=head1 OPTIONS
+
+-o, --output-file file        Output file
+-T, --output-format format    Output format (default: nil)
+-p, --path                    Graphviz path
+-V, --version                 Show version
+-h, --help                    Show this usage message
+
+=head1 EXAMPLE
+
+$ cat hello.dot
+digraph G {Hello->World;}
+
+$ dot2ruby hello.dot
+# This code was generated by dot2ruby.g
+
+require 'rubygems'
+require 'graphviz'
+graph_g = GraphViz.digraph( "G" ) { |graph_g|
+  graph_g[:bb] = '0,0,70,108'
+  node_hello = graph_g.add_nodes( "Hello", :height => '0.5', :label => '\N', :pos => '35,90', :width => '0.88889' )
+  graph_g.add_edges( "Hello", "World", :pos => 'e,35,36.413 35,71.831 35,64.131 35,54.974 35,46.417' )
+  node_world = graph_g.add_nodes( "World", :height => '0.5', :label => '\N', :pos => '35,18', :width => '0.97222' )
+}
+puts graph_g.output( :canon => String )
+
+=head1 AUTHOR
+
+Copyright 2004-2012 Gregoire Lejeune
+
+This manual page is written by Praveen Arimbrathodiyl <praveen at debian.org> for
+Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
diff --git a/debian/gem2gv.1.pod b/debian/gem2gv.1.pod
new file mode 100644
index 0000000..f398db2
--- /dev/null
+++ b/debian/gem2gv.1.pod
@@ -0,0 +1,35 @@
+=head1 NAME
+
+gem2gv - create a dependency graph between gems
+
+=head1 SYNOPSIS
+
+usage: gem2gv [-Tformat] [-ofile] [-h] [-V] gemname
+
+=head1 DESCRIPTION
+
+B<gem2gv> is a tool that allows you to create a dependency graph 
+between gems.
+
+See /usr/share/doc/ruby-graphviz/ for more details.
+
+=head1 OPTIONS
+
+-T, --output-format format    Output format (default: PNG)
+-o, --output-file file        Output file (default: STDOUT)
+-p, --path                    Graphviz path
+-u, --use PROGRAM             Program to use (default: dot)
+-s, --stop LIB[,LIB, ...]     Stop on libs
+-V, --version                 Show version
+-h, --help                    Show this usage message
+
+=head1 EXAMPLE
+
+gem2gv -Tpng -oruby-graphviz.png ruby-graphviz
+
+=head1 AUTHOR
+
+Copyright 2004-2012 Gregoire Lejeune
+
+This manual page is written by Praveen Arimbrathodiyl <praveen at debian.org> for
+Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
diff --git a/debian/git2gv.1.pod b/debian/git2gv.1.pod
new file mode 100644
index 0000000..3f32374
--- /dev/null
+++ b/debian/git2gv.1.pod
@@ -0,0 +1,30 @@
+=head1 NAME
+
+git2gv - show your git commits graphically
+
+=head1 SYNOPSIS
+
+usage: git2gv [-Tformat] [-ofile] [-h] [-V]
+
+=head1 DESCRIPTION
+
+B<git2gv> is a tool that allows you to show your git commits
+graphically.
+
+See /usr/share/doc/ruby-graphviz/ for more details.
+
+=head1 OPTIONS
+
+-T, --output-format format    Output format (default: png)
+    --nothugly                Use nothugly if SVG output
+-o, --output-file file        Output file (default: STDOUT)
+-p, --path                    Graphviz path
+-V, --version                 Show version
+-h, --help                    Show this usage message
+
+=head1 AUTHOR
+
+Copyright 2004-2012 Gregoire Lejeune
+
+This manual page is written by Praveen Arimbrathodiyl <praveen at debian.org> for
+Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..900bbc8
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/*.[0-9]
\ No newline at end of file
diff --git a/debian/patches/remove-rubygems-require.patch b/debian/patches/remove-rubygems-require.patch
new file mode 100644
index 0000000..309dc24
--- /dev/null
+++ b/debian/patches/remove-rubygems-require.patch
@@ -0,0 +1,39 @@
+Description: remove require 'rubygems'
+
+Gems should not require rubygems to work.
+
+Author: Praveen Arimbrathodiyil <praveen at debian.org>
+Last-Update: 2012-10-26
+
+--- a/lib/graphviz/family_tree.rb
++++ b/lib/graphviz/family_tree.rb
+@@ -1,6 +1,7 @@
+ # -*- coding: utf-8 -*-
+ 
+-require 'rubygems'
++# Libs should not require rubygems, commenting out
++# require 'rubygems'
+ require 'graphviz'
+ require 'graphviz/family_tree/generation'
+ require 'graphviz/family_tree/person'
+--- a/lib/graphviz/family_tree/person.rb
++++ b/lib/graphviz/family_tree/person.rb
+@@ -1,4 +1,5 @@
+-require 'rubygems'
++# Libs should not require rubygems, commenting out
++# require 'rubygems'
+ require 'graphviz'
+ 
+ class GraphViz
+--- a/lib/graphviz/nothugly.rb
++++ b/lib/graphviz/nothugly.rb
+@@ -7,7 +7,8 @@
+ # Earl Cummings, Michael Kennedy (Graphviz 2.20.2 compatibility, bug fixes,
+ # testing, lots of gradients)
+ 
+-require 'rubygems'
++# Libs should not require rubygmes, commenting out
++# require 'rubygems'
+ begin
+    require 'xml/xslt'
+    XSLT_METHOD = :xml_xslt_transform
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8d29f0b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove-rubygems-require.patch
diff --git a/debian/ruby-graphviz.examples b/debian/ruby-graphviz.examples
index d970cc8..a30f214 100644
--- a/debian/ruby-graphviz.examples
+++ b/debian/ruby-graphviz.examples
@@ -1,3 +1,2 @@
-# FIXME: examples/ dir found in source. Consider installing the examples.
 # Examples:
-# examples/*
+examples/*
diff --git a/debian/ruby2gv.1.pod b/debian/ruby2gv.1.pod
new file mode 100644
index 0000000..78c9874
--- /dev/null
+++ b/debian/ruby2gv.1.pod
@@ -0,0 +1,35 @@
+=head1 NAME
+
+ruby2gv - create a dependency graph from a ruby script 
+
+=head1 SYNOPSIS
+
+usage: ruby2gv [-Tformat] [-ofile] [-h] [-V] script
+
+=head1 DESCRIPTION
+
+B<ruby2gv> is a simple tool that allows you to create a dependency graph 
+from a ruby script.
+
+See /usr/share/doc/ruby-graphviz/ for more details.
+
+=head1 OPTIONS
+
+-T, --output-format format    Output format (default: PNG)
+-o, --output-file file        Output file (default: STDOUT)
+-p, --path                    Graphviz path
+-u, --use PROGRAM             Program to use (default: dot)
+-s, --stop LIB[,LIB, ...]     Stop on libs
+-V, --version                 Show version
+-h, --help                    Show this usage message
+
+=head1 EXAMPLE
+
+ruby2gv -Tpng -oruby2gv.png /usr/bin/ruby2gv
+
+=head1 AUTHOR
+
+Copyright 2004-2012 Gregoire Lejeune
+
+This manual page is written by Praveen Arimbrathodiyl <praveen at debian.org> for
+Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).
diff --git a/debian/rules b/debian/rules
index a5e7dc8..36d91ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,5 +11,23 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+COMMAND_LIST  = dot2ruby  gem2gv  git2gv  ruby2gv  xml2gv
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+build:
+	dh build --buildsystem=ruby --with ruby
+	@for COMMAND in $(COMMAND_LIST); do \
+    pod2man --section=1 --release=\"Ruby-Graphviz\" \
+            --center=\"Debian\ GNU\ System\" \
+            debian/$$COMMAND.1.pod > debian/$$COMMAND.1;\
+   done
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG.rdoc
+
+clean:
+	dh clean --buildsystem=ruby --with ruby
+	@$(foreach COMMAND,$(COMMAND_LIST), rm -f debian/$(COMMAND).1)
+	rm -rf test/output
diff --git a/debian/xml2gv.1.pod b/debian/xml2gv.1.pod
new file mode 100644
index 0000000..bf2ad88
--- /dev/null
+++ b/debian/xml2gv.1.pod
@@ -0,0 +1,29 @@
+=head1 NAME
+
+xml2gv - show your xml files graphically
+
+=head1 SYNOPSIS
+
+usage: xml2gv [-Tformat] [-ofile] [-h] [-V] script
+
+=head1 DESCRIPTION
+
+B<xml2gv> is a tool that allows you to show a xml file as a graph.
+
+See /usr/share/doc/ruby-graphviz/ for more details.
+
+=head1 OPTIONS
+
+-T, --output-format format    Output format (default: PNG)
+-o, --output-file file        Output file (default: STDOUT)
+-p, --path                    Graphviz path
+-u, --use PROGRAM             Program to use (default: dot)
+-V, --version                 Show version
+-h, --help                    Show this usage message
+
+=head1 AUTHOR
+
+Copyright 2004-2012 Gregoire Lejeune
+
+This manual page is written by Praveen Arimbrathodiyl <praveen at debian.org> for
+Debian GNU System (GNU/Linux, GNU/kFreeBSD, GNU/Hurd).

-- 
ruby-graphviz.git



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