[DRE-commits] [SCM] ruby-warden.git branch, master, updated. upstream/1.2.1-2-gd1bb309

Praveen Arimbrathodiyil pravi.a at gmail.com
Thu Oct 18 11:31:54 UTC 2012


The following commit has been merged in the master branch:
commit d1bb3096463b8688bd71ea2352e9f3220ccc3499
Author: Praveen Arimbrathodiyil <pravi.a at gmail.com>
Date:   Thu Oct 18 16:59:53 2012 +0530

    tune the packging to fit debian policy
    
    - add long description from wiki in debian/control
    - update debian/copyright file
    - run all tests
    - patch spec/spec_helper.rb to use explicit require for rspec

diff --git a/debian/changelog b/debian/changelog
index c07024d..53c126a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-warden (1.2.1-1) UNRELEASED; urgency=low
+ruby-warden (1.2.1-1) experimental; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #624635)
 
- -- Praveen Arimbrathodiyil <pravi at savannah.pnq.redhat.com>  Thu, 18 Oct 2012 16:55:24 +0530
+ -- Praveen Arimbrathodiyil <praveen at debian.org>  Thu, 18 Oct 2012 15:59:06 +0530
diff --git a/debian/control b/debian/control
index c1020af..d3871da 100644
--- a/debian/control
+++ b/debian/control
@@ -2,19 +2,26 @@ Source: ruby-warden
 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~)
 Standards-Version: 3.9.3
-#Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-warden.git
-#Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-warden.git;a=summary
+Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-warden.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-warden.git;a=summary
 Homepage: http://github.com/hassox/warden
 XS-Ruby-Versions: all
 
 Package: ruby-warden
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-# rack (>= 1.0)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
+ ruby-rack, ruby-rspec
 Description: Rack middleware that provides authentication for rack applications
- <insert long description, indented with spaces>
+ Warden is a Rack-based middleware, designed to provide a mechanism for 
+ authentication in Ruby web applications. It is a common mechanism that 
+ fits into the Rack Machinery to offer powerful options for authentication.
+ .
+ Warden is designed to be lazy. That is, if you don't use it, it doesn't 
+ do anything, but when you do use it, it will spring into action and 
+ provide an underlying mechanism to allow authentication in any 
+ Rack-based application.
diff --git a/debian/copyright b/debian/copyright
index 06d69b9..2cac733 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,33 +1,31 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: warden
-Source: FIXME <http://example.com/>
+Source: http://rubygems.org/gems/warden
 
 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: 2009 Daniel Neighman
+License: Expat
 
 Files: debian/*
-Copyright: 2012  <>
-License:
- [LICENSE TEXT]
+Copyright: 2012 Praveen Arimbrathodiyil <praveen at debian.org>
+License: Expat
+
+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/patches/explicit_require_rspec.patch b/debian/patches/explicit_require_rspec.patch
new file mode 100644
index 0000000..8e26b1f
--- /dev/null
+++ b/debian/patches/explicit_require_rspec.patch
@@ -0,0 +1,14 @@
+Description: Add explicit require rspec
+ This is needed for running tests with gem2deb
+Author: Praveen Arimbrathodiyil <praveen at debian.org>
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -7,6 +7,7 @@
+ 
+ require 'rubygems'
+ require 'rack'
++require 'rspec'
+ 
+ Dir[File.join(File.dirname(__FILE__), "helpers", "**/*.rb")].each do |f|
+   require f
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a79c631
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+explicit_require_rspec.patch
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..fa50257 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -4,7 +4,7 @@
 # a good idea to define it here so the package gets tested at build time.
 # Examples:
 # $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
+Dir['{spec}/**/*.rb'].each { |f| require f }
 #
 # require 'test/ts_foo.rb'
 #

-- 
ruby-warden.git



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