Commit e0bb5310 authored by Ryan Niebur's avatar Ryan Niebur

Run dh-make-ruby and tweak things

parent c1874c66
......@@ -5,8 +5,13 @@ dpkg-ruby (0.3.7) UNRELEASED; urgency=low
[ Ryan Niebur ]
* close files once they're parsed (Closes: #585448)
* Run dh-make-ruby and tweak things:
- policy 3.9.2
- move everything into dpkg-ruby package, the rest become
transitional
- simplified debian/rules
-- Ryan Niebur <ryan@debian.org> Sun, 04 Sep 2011 11:41:29 -0700
-- Ryan Niebur <ryan@debian.org> Sun, 04 Sep 2011 21:21:20 -0700
dpkg-ruby (0.3.6+nmu1) unstable; urgency=high
......
Source: dpkg-ruby
Section: devel
Section: ruby
Priority: optional
Maintainer: Ryan Niebur <ryan@debian.org>
Build-Depends: debhelper (>= 7.0.50~), ruby1.8, ruby1.8-dev, libapt-pkg-dev, ruby1.9.1, ruby1.9.1-dev, ruby
Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.7~), libapt-pkg-dev
Vcs-Git: git://git.debian.org/apt-listbugs/dpkg-ruby.git
Vcs-Browser: http://git.debian.org/?p=apt-listbugs/dpkg-ruby.git;a=summary
Standards-Version: 3.8.3
Standards-Version: 3.9.2
XS-Ruby-Versions: all
Package: dpkg-ruby
Architecture: all
Depends: ruby1.8, libdpkg-ruby1.8, ${misc:Depends}
Architecture: any
XB-Ruby-Versions: ${ruby:Versions}
Replaces: libdpkg-ruby (<< 0.3.7~), libdpkg-ruby1.8 (<< 0.3.7~), libdpkg-ruby1.9.1 (<< 0.3.7~)
Breaks: libdpkg-ruby (<< 0.3.7~), libdpkg-ruby1.8 (<< 0.3.7~), libdpkg-ruby1.9.1 (<< 0.3.7~)
Provides: libdpkg-ruby, libdpkg-ruby1.8, libdpkg-ruby1.9.1
Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
Description: ruby interface for dpkg
It provides Debian::Dpkg and Debian::DpkgDeb modules and
Debian::Deb, Debian::Dsc, Debian::Archives, Debian::Sources,
Debian::Packages and Debian::Status classes on ruby 1.8.
.
It provides dpkg-ruby (a dpkg-awk clone) and dpkg-checkdeps
(check utility of deb dependency problem).
Package: libdpkg-ruby
Section: ruby
Section: oldlibs
Architecture: all
Depends: ${misc:Depends}, libdpkg-ruby1.8 (>= 0.3.3)
Description: metapackage for libdpkg-ruby
It provides Debian::Dpkg and Debian::DpkgDeb modules and
Debian::Deb, Debian::Dsc, Debian::Archives, Debian::Sources,
Debian::Packages and Debian::Status classes on ruby 1.8.
.
This package depends on the version of libdpkg-ruby built for the
default version of ruby.
Depends: ${misc:Depends}, dpkg-ruby (>= 0.3.7)
Description: Transitional package for dpkg-ruby
This is a transitional package to ease upgrades to the dpkg-ruby
package. It can safely be removed.
Package: libdpkg-ruby1.8
Section: ruby
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: modules/classes for dpkg on ruby 1.8
It provides Debian::Dpkg and Debian::DpkgDeb modules and
Debian::Deb, Debian::Dsc, Debian::Archives, Debian::Sources,
Debian::Packages and Debian::Status classes on ruby 1.8.
Section: oldlibs
Architecture: all
Depends: ${misc:Depends}, dpkg-ruby (>= 0.3.7)
Description: Transitional package for dpkg-ruby
This is a transitional package to ease upgrades to the dpkg-ruby
package. It can safely be removed.
Package: libdpkg-ruby1.9.1
Section: ruby
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: modules/classes for dpkg on ruby 1.9
It provides Debian::Dpkg and Debian::DpkgDeb modules and
Debian::Deb, Debian::Dsc, Debian::Archives, Debian::Sources,
Debian::Packages and Debian::Status classes on ruby 1.9.
Section: oldlibs
Architecture: all
Depends: ${misc:Depends}, dpkg-ruby (>= 0.3.7)
Description: Transitional package for dpkg-ruby
This is a transitional package to ease upgrades to the dpkg-ruby
package. It can safely be removed.
man/dpkg-checkdeps.1
man/dpkg.rb.1
man/dpkg-ruby.1
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
RUBY := /usr/bin/ruby1.8
EXAMPLES=debian/libdpkg-ruby1.8.examples
#
# Uncomment to ignore all test failures (but the tests will run anyway)
#export DH_RUBY_IGNORE_TESTS=all
#
# 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
#
# If you need to specify the .gemspec (eg there is more than one)
#export DH_RUBY_GEMSPEC=gem.gemspec
%:
dh $@
VERSION_1.9=1.9.1
19VERSION=$(shell ruby$(VERSION_1.9) -rrbconfig -e 'puts Config::CONFIG["ruby_version"]')
override_dh_auto_build:
# Add here commands to compile the package.
$(MAKE) RUBY=$(RUBY)
#/usr/bin/docbook-to-man debian/dpkg-ruby.sgml > dpkg-ruby.1
mkdir -p ext/ruby1.9 ext/ruby1.8
ruby$(VERSION_1.9) -C ext/ruby1.9 ../debian_version/extconf.rb
ruby1.8 -C ext/ruby1.8 ../debian_version/extconf.rb
make -C ext/ruby1.9
make -C ext/ruby1.8
override_dh_auto_clean:
$(MAKE) clean RUBY=$(RUBY)
rm -f $(EXAMPLES)
for i in install docs examples; do rm -f debian/libdpkg-ruby$(VERSION_1.9).$$i; done
[ ! -f ext/ruby1.8/Makefile ] || make -C ext/ruby1.8 distclean
[ ! -f ext/ruby1.9/Makefile ] || make -C ext/ruby1.9 distclean
DESTDIR=$(CURDIR)/debian/tmp
override_dh_auto_install:
# mkdir -p `pwd`/debian/dpkg-ruby/`ruby -r mkmf -e 'puts $$libdir'`
# Add here commands to install the package into debian/dpkg-ruby.
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp RUBY=ruby$(VERSION_1.9)
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp RUBY=ruby1.8
sh ./debian/fixshbang.sh debian/tmp $(RUBY)
# dpkg.rb as example only
-rm -f $(CURDIR)/debian/tmp/usr/bin/dpkg.rb
-rm -f $(CURDIR)/debian/tmp/usr/share/man/man1/dpkg.rb.1*
make -C ext/ruby1.8 install DESTDIR=$(DESTDIR) sitelibdir=$(DESTDIR)$(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
make -C ext/ruby1.9 install DESTDIR=$(DESTDIR) sitelibdir=$(DESTDIR)$(shell ruby$(VERSION_1.9) -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
ls -1d examples/* | grep -v CVS > $(EXAMPLES)
echo bin/dpkg.rb >> $(EXAMPLES)
override_dh_install:
for i in install docs examples; do cp debian/libdpkg-ruby1.8.$$i debian/libdpkg-ruby$(VERSION_1.9).$$i; sed -i s/1.8/$(19VERSION)/g debian/libdpkg-ruby$(VERSION_1.9).$$i; done
dh_install --sourcedir=$(CURDIR)/debian/tmp
override_dh_auto_test:
@echo no tests during package build
dh $@ --buildsystem=ruby --with ruby
.TH DPKG.RB 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*-
.SH NAME
dpkg.rb \- Utility to read a dpkg style db file, dpkg like program
.SH SYNOPSIS
\fBdpkg.rb\fP [\fB(-l|--list)\fP [\fIpackage\fP ...]]
.br
\fBdpkg.rb\fP [\fB(-s|--status)\fP [\fIpackage\fP ...]]
.br
\fBdpkg.rb\fP [\fB--get-selections\fP [\fIpackage\fP ...]]
.br
\fBdpkg.rb\fP [\fB--print-avail\fP [\fIpackage\fP ...]]
.br
\fBdpkg.rb\fP [\fB(-L|--listfiles)\fP [\fIpackage\fP ...]]
.br
\fBdpkg.rb\fP [\fB(-S|--search)\fP [\fIpattern\fP ...]]
.br
\fBdpkg.rb\fP [\fB--help\fP]
.br
.SH DESCRIPTION
.I dpkg.rb
parses a dpkg status file(or other similarly formated file) and
outputs the resulting records like
.I dpkg(1).
.SH OPTIONS
.TP
.PD 0
.BI -l " [package...]"
.TP
.BI --list " [package...]"
.PD
List \fIpackage\fPs.
.TP
.PD 0
.BI -s " [package...]"
.TP
.BI --status " [package...]"
.PD
show status of \fIpackage\fPs.
.TP
.PD 0
.BI --get-selections " [package...]"
.PD
get selections of \fIpackage\fPs.
.TP
.PD 0
.BI --print-avail " [package...]"
.PD
print available of \fIpackage\fPs.
.TP
.PD 0
.BI -L " [package...]"
.TP
.BI --listfiles " [package...]"
.PD
list files in \fIpackage\fPs.
.TP
.PD 0
.BI -S " [pattern...]"
.TP
.BI --search " [pattern...]"
.PD
search package containing files matched \fIpattern\fPs.
.TP
.PD 0
.BI -h
.TP
.BI --help
.PD
Display some help.
.SH BUGS
Be warned that the author has only a shallow understanding of the
dpkg packaging system, so there are probably tons of bugs in this
program.
This program comes with no warranties. If running this program
causes fire and brimstone to rain down upon the earth, you will be
on our own.
This program accesses the dpkg database directly in places, querying
for data that cannot be gotten via dpkg.
.SH AUTHOR
Fumitoshi UKAI <ukai@debian.or.jp>.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment