[packages/ruby-bundler] up to 1.3.5; build noarch

glen glen at pld-linux.org
Sat Apr 20 22:31:57 CEST 2013


commit b9c9dd464bb9ad5895fd0a538d113dd63dcb92af
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 20 23:28:37 2013 +0300

    up to 1.3.5; build noarch

 ruby-bundler.spec | 29 +++++++++++++----------------
 1 file changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/ruby-bundler.spec b/ruby-bundler.spec
index 85a1b95..01b5ad1 100644
--- a/ruby-bundler.spec
+++ b/ruby-bundler.spec
@@ -1,23 +1,21 @@
 %define		pkgname bundler
 Summary:	Library and utilities to manage a Ruby application's gem dependencies
 Name:		ruby-%{pkgname}
-Version:	1.3.1
-Release:	2
+Version:	1.3.5
+Release:	1
 License:	MIT
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	723c6fcc13c9e639994536cdcaa451a6
+# Source0-md5:	b835af023d3e0dbe56b6fcc3841c90a6
 URL:		http://github.com/carlhuda/bundler
-BuildRequires:	rpmbuild(macros) >= 1.277
-BuildRequires:	ruby-modules
+BuildRequires:	rpmbuild(macros) >= 1.656
+BuildRequires:	rpm-rubyprov
+BuildRequires:	sed >= 4.0
 Requires:	ruby-thor >= 0.17
-%{?ruby_mod_ver_requires_eq}
-#BuildArch:	noarch
+Requires:	ruby-net-http-persistent
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# nothing to be placed there. we're not noarc only because of ruby packaging
-%define		_enable_debug_packages	0
-
 %description
 Bundler manages an application's dependencies through its entire life,
 across many machines, systematically and repeatably
@@ -47,13 +45,12 @@ ri documentation for %{pkgname}.
 Dokumentacji w formacie ri dla %{pkgname}.
 
 %prep
-%setup -qc
-%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
-find -newer README.md -o -print | xargs touch --reference %{SOURCE0}
+%setup -q -n %{pkgname}-%{version}
+
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
-rm lib/bundler/vendor/thor.rb
-rm -r lib/bundler/vendor/thor
-rm -r lib/bundler/vendor
+# move, not to package
+mv lib/bundler/vendor .
 
 %build
 rdoc --op rdoc lib
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-bundler.git/commitdiff/b9c9dd464bb9ad5895fd0a538d113dd63dcb92af



More information about the pld-cvs-commit mailing list