[DRE-commits] [ruby-cssmin] 01/02: Generate gemspec file from Rakefile

Balasankar C balasankarc-guest at moszumanska.debian.org
Mon Mar 30 16:34:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-cssmin.

commit 0b92498b4d3ce0866566890a419d3687324a2aac
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sat Mar 28 09:38:54 2015 +0530

    Generate gemspec file from Rakefile
---
 debian/changelog       |  7 +++++++
 debian/clean           |  1 +
 debian/patches/gemspec | 10 ++++++++++
 debian/patches/series  |  1 +
 debian/rules           |  3 +++
 5 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5a1bfb1..9551af5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-cssmin (1.0.3-2) experimental; urgency=medium
+
+  * Generate gemspec file from Rakefile (Closes: #768946)
+  * Bump standards version to 3.9.6 (no changes)
+
+ -- Balasankar C <balasankarc at autistici.org>  Sat, 28 Mar 2015 09:36:26 +0530
+
 ruby-cssmin (1.0.3-1) unstable; urgency=medium
 
   * Initial release (Closes: #758298)
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..0d12b45
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+cssmin.gemspec
diff --git a/debian/patches/gemspec b/debian/patches/gemspec
new file mode 100644
index 0000000..0ed6149
--- /dev/null
+++ b/debian/patches/gemspec
@@ -0,0 +1,10 @@
+--- a/Rakefile.rb
++++ b/Rakefile.rb
+@@ -65,3 +65,7 @@
+   t.test_files = FileList['test/*_test.rb']
+   t.verbose = true
+ end
++
++file "cssmin.gemspec" do
++  File.write("cssmin.gemspec", gemspec.to_ruby)
++end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e0a7662
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gemspec
diff --git a/debian/rules b/debian/rules
index fc37b8f..a43ba53 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,6 @@
 	dh $@ --buildsystem=ruby --with ruby
 override_dh_installchangelogs:
 		dh_installchangelogs HISTORY.md
+override_dh_auto_install:
+	rake cssmin.gemspec
+	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-cssmin.git



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