[packages/fpm] use github tarball which would include rspec tests

glen glen at pld-linux.org
Tue Aug 25 14:51:34 CEST 2015


commit beabb477293f59e5b215252899740baadc157568
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 25 15:38:00 2015 +0300

    use github tarball which would include rspec tests

 fpm.spec | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/fpm.spec b/fpm.spec
index 93a8fe8..d2f710b 100644
--- a/fpm.spec
+++ b/fpm.spec
@@ -8,8 +8,8 @@ Version:	1.4.0
 Release:	1
 License:	MIT-like
 Group:		Development/Languages
-Source0:	http://rubygems.org/downloads/%{name}-%{version}.gem
-# Source0-md5:	4d82b0484db150928330b04bb44c92a2
+Source0:	https://github.com/jordansissel/fpm/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	1aae7b53d0e6470183222a7634b7d799
 Patch0:		templates.patch
 Patch1:		tmppath.patch
 Patch2:		config-attrs.patch
@@ -57,8 +57,11 @@ wasting pointless hours debugging bad rpm specs!
 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
 
 %build
-# write .gemspec
-%__gem_helper spec
+# make gemspec self-contained
+ruby -r rubygems -e 'spec = eval(File.read("%{name}.gemspec"))
+	File.open("%{name}-%{version}.gemspec", "w") do |file|
+	file.puts spec.to_ruby_for_cache
+end'
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fpm.git/commitdiff/72329b5ab93b34f920ae31b7de48f28725e733f5



More information about the pld-cvs-commit mailing list