[DRE-commits] [origami] 08/19: really build gemspec
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Nov 7 00:22:44 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository origami.
commit 789c0245d8d34c6961147bd53417d3fe1b92926f
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Wed Sep 10 11:27:43 2014 -0300
really build gemspec
---
debian/patches/gemspec.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 5 ++---
3 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/debian/patches/gemspec.patch b/debian/patches/gemspec.patch
new file mode 100644
index 0000000..5e6de3d
--- /dev/null
+++ b/debian/patches/gemspec.patch
@@ -0,0 +1,24 @@
+--- a/Rakefile.rb
++++ b/Rakefile.rb
+@@ -20,7 +20,7 @@ As well, it can be used to create on-the
+ DESC
+
+ s.files = FileList[
+- 'README', 'COPYING.LESSER', "{lib,bin,tests,samples,templates}/**/*", "bin/shell/.irbrc"
++ 'README', 'COPYING.LESSER', "{lib,bin,test,samples,templates}/**/*", "bin/shell/.irbrc"
+ ].exclude(/\.pdf$/, /\.key$/, /\.crt$/, /\.conf$/).to_a
+
+ s.require_path = "lib"
+@@ -35,6 +35,12 @@ end
+
+ task :default => [:package]
+
++task :gemspec do
++ File.open("#{spec.name}.gemspec", 'w') do |f|
++ f.write(spec.to_ruby)
++ end
++end
++
+ Gem::PackageTask.new(spec) do |pkg|
+ pkg.need_tar = true
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..640e97b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gemspec.patch
diff --git a/debian/rules b/debian/rules
index 2d8acd2..f21809f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,10 @@
#!/usr/bin/make -f
override_dh_auto_build:
- rake
- cp pkg/*.gem .
+ rake gemspec
override_dh_auto_clean:
- rm -rf pkg/
+ $(RM) *.gemspec
dh_auto_clean
%:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/origami.git
More information about the Pkg-ruby-extras-commits
mailing list