[DRE-commits] [SCM] ruby-image-science.git branch, master, updated. upstream/1.2.1-2-g3ab5cda

Gunnar Wolf gwolf at gwolf.org
Wed Sep 14 23:06:32 UTC 2011


The following commit has been merged in the master branch:
commit 3ab5cda91e60df27621546b6677bb8721daa979a
Author: Gunnar Wolf <gwolf at gwolf.org>
Date:   Wed Sep 14 18:05:06 2011 -0500

    Merged in the packaging information for prior releases

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..0b9bd0b
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,39 @@
+This package uses libinline-ruby, a Ruby module that allows for easily
+embedding and on-the-fly compiling C code in Ruby modules.
+
+Although it will work right away on most typical situations, there are
+a couple of catches you should keep in mind:
+
+- To minimize startup times, the inlined C code is cached. This means,
+  any user who calls this module in his Ruby code will get a directory
+  called ".ruby_inline" on his home directory. Inside this directory,
+  Inline will store the C code to be compiled and the compiled
+  objects. The directory can be safely purged, as it will be
+  regenerated as needed.
+
+- You can set up the environment variable INLINEDIR to specify a
+  different directory, i.e., to cope with the cases where the current
+  user has no rights to write on his own directory (which is often the
+  case when using this module for Web-facing application servers). You
+  can safely point it to a randomized temporary directory, as in:
+
+  $ su - nobody -c 'export INLINEDIR=$(mktemp -d); \
+         ruby -e "require \"image_science\""; \
+         rm -rf $INLINEDIR'
+
+  Of course, you would replace the call to Ruby to the startup for
+  your application. There will be a slight time penalty upon
+  initialization, as this will compile anew the code each time it is
+  started, but will allow you to work with users unable to work in
+  their home directories.
+
+- It might also be a good idea, specially on slower systems, to set
+  INLINEDIR to a fixed location, i.e. to create user-owned
+  /var/lib/inline/$(whoami) directories. This would avoid the
+  recompilation penalty - You should just remember to purge the
+  directory should you stop using this module.
+
+Of course, for most use cases, the default .ruby_inline directory will
+serve you well.
+
+ -- Gunnar Wolf <gwolf at debian.org>, Wed, 14 Sep 2011 17:02:08 -0500
diff --git a/debian/changelog b/debian/changelog
index 6217939..f2f927f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,24 @@
-ruby-image-science (1.2.1-1) UNRELEASED; urgency=low
+ruby-image-science (1.2.1-2) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Repackaged using gem2deb 
+  * Renamed/joined packages to ruby-image-science following current
+    pkg-ruby-extras team policy
 
  -- Gunnar Wolf <gwolf at debian.org>  Wed, 14 Sep 2011 16:49:15 -0500
+
+libimage-science-ruby (1.2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Reworked some files explicitly listed in debian/rules so they are
+    handled in a cleaner DebHelper way
+  * Bumped up standards-version to 3.8.3 (no changes needed)
+  * added missing misc:Depends dependencies
+  * Changed section to Ruby as per ftp-masters' request
+
+ -- Gunnar Wolf <gwolf at debian.org>  Wed, 26 Aug 2009 11:56:29 -0500
+
+libimage-science-ruby (1.1.3-1) unstable; urgency=low
+
+  * Initial upload (Closes: #499196)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Tue, 16 Sep 2008 18:42:16 -0500
diff --git a/debian/control b/debian/control
index c0b49fa..a162aa7 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,12 @@ Source: ruby-image-science
 Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
-Uploaders:  <gwolf at debian.org>
+Uploaders: Gunnar Wolf <gwolf at debian.org>
 DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.8~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.8~), ruby-minitest
 Standards-Version: 3.9.2
-#Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-image-science.git
-#Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-image-science.git;a=summary
+Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-image-science.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-image-science.git;a=summary
 Homepage: http://seattlerb.rubyforge.org/ImageScience.html
 XS-Ruby-Versions: all
 
@@ -16,9 +16,39 @@ Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
 # hoe (>= 2.3.3, development)
-Description: ImageScience is a clean and happy Ruby library that generates thumbnails -- and kicks the living crap out of RMagick
- ImageScience is a clean and happy Ruby library that generates
- thumbnails -- and kicks the living crap out of RMagick. Oh, and it
- doesn't leak memory like a sieve. :)
+Replaces: libimage-science-ruby (<< 1.2.1-1~), libimage-science-ruby-doc (<< 1.2.1-1~), libimage-science-ruby1.8 (<< 1.2.1-1~)
+Breaks: libimage-science-ruby (<< 1.2.1-1~), libimage-science-ruby-doc (<< 1.2.1-1~), libimage-science-ruby1.8 (<< 1.2.1-1~)
+Provides: libimage-science-ruby, libimage-science-ruby-doc, libimage-science-ruby1.8
+Description: Clean Ruby library to provide simple transformations on images
+ ImageScience is a clean Ruby library allowing for simple
+ transformations on images, mainly geared towards generating thumbnails
+ - The provided functions aim at scaling and cropping images.
  .
- For more information including build steps, see http://seattlerb.rubyforge.org/
+ Emphasis is made on keeping the code as lean as possible (at less than
+ 200 LoC), and on correctness to avoid memory leaks and similar
+ problems that often accompany similar libraries.
+
+# Transitional packages
+Package: libimage-science-ruby
+Section: oldlibs
+Architecture: all
+Depends: ${misc:Depends}, ruby-image-science
+Description: Transitional package for ruby-image-science
+ This is a transitional package to ease upgrades to the ruby-image-science
+ package. It can safely be removed.
+
+Package: libimage-science-ruby-doc
+Section: oldlibs
+Architecture: all
+Depends: ${misc:Depends}, ruby-image-science
+Description: Transitional package for ruby-image-science
+ This is a transitional package to ease upgrades to the ruby-image-science
+ package. It can safely be removed.
+
+Package: libimage-science-ruby1.8
+Section: oldlibs
+Architecture: all
+Depends: ${misc:Depends}, ruby-image-science
+Description: Transitional package for ruby-image-science
+ This is a transitional package to ease upgrades to the ruby-image-science
+ package. It can safely be removed.
diff --git a/debian/copyright b/debian/copyright
index 1fd6487..fa9ceaf 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,33 +1,31 @@
 Format: http://dep.debian.net/deps/dep5
 Upstream-Name: image_science
-Source: FIXME <http://example.com/>
+Source: http://seattlerb.rubyforge.org/ImageScience.html
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
- 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 2 of the License, or (at your option) any later
- version.
- .
- This program 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 package; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA  02110-1301 USA
- .
- 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'.
+Copyright: © 2006-2009 Ryan Davis, Seattle.rb <support at zenspider.com>
+License: MIT
 
 Files: debian/*
-Copyright: 2011  <gwolf at debian.org>
-License:
- [LICENSE TEXT]
+Copyright: 2011 Gunnar wolf <gwolf at debian.org>
+License: MIT
+
+License: MIT
+ 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/patches/fix_ruby_path b/debian/patches/fix_ruby_path
new file mode 100644
index 0000000..9ceb7ad
--- /dev/null
+++ b/debian/patches/fix_ruby_path
@@ -0,0 +1,10 @@
+Index: ruby-image-science-1.2.1/lib/image_science.rb
+===================================================================
+--- ruby-image-science-1.2.1.orig/lib/image_science.rb	2011-09-14 16:49:15.000000000 -0500
++++ ruby-image-science-1.2.1/lib/image_science.rb	2011-09-14 17:37:28.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ require 'rubygems'
+ require 'inline'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3191781
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_ruby_path
diff --git a/debian/require-rubygems.overrides b/debian/require-rubygems.overrides
new file mode 100644
index 0000000..4984181
--- /dev/null
+++ b/debian/require-rubygems.overrides
@@ -0,0 +1 @@
+debian/ruby-image-science/usr/lib/ruby/vendor_ruby/image_science.rb
diff --git a/debian/ruby-image-science.docs b/debian/ruby-image-science.docs
index 23a54bd..71dfd5b 100644
--- a/debian/ruby-image-science.docs
+++ b/debian/ruby-image-science.docs
@@ -1,2 +1 @@
-# FIXME: READMEs found
-# README.txt
+README.txt
diff --git a/debian/ruby-image-science.examples b/debian/ruby-image-science.examples
new file mode 100644
index 0000000..a6f9bbd
--- /dev/null
+++ b/debian/ruby-image-science.examples
@@ -0,0 +1,2 @@
+bench.rb
+bin/image_science_thumb
diff --git a/debian/rules b/debian/rules
index a5e7dc8..d26d11b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,19 @@
 # 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
+export DH_RUBY_IGNORE_TESTS=ruby1.9.1
 #
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_installechangelogs:
+	dh_installchangelogs History.txt
+
+override_dh_install:
+	dh_install
+	# The provided binaries are provided as examples (and listed
+	# in the corresponding file), not as general usage binaries.
+	rm -rf debian/ruby-image-science/usr/bin

-- 
ruby-image-science.git



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