diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1301b25 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/bundler-1.3.5.gem diff --git a/.ror40-rubygem-bundler.metadata b/.ror40-rubygem-bundler.metadata new file mode 100644 index 0000000..456dea3 --- /dev/null +++ b/.ror40-rubygem-bundler.metadata @@ -0,0 +1 @@ +2cad3052a59b83f1f616e8202f5c714e46bd8523 SOURCES/bundler-1.3.5.gem diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/bundler-add-support-for-binary-extensions-in-dedicated-folde.patch b/SOURCES/bundler-add-support-for-binary-extensions-in-dedicated-folde.patch new file mode 100644 index 0000000..27efa49 --- /dev/null +++ b/SOURCES/bundler-add-support-for-binary-extensions-in-dedicated-folde.patch @@ -0,0 +1,34 @@ +From ce83a370930cde5ca2d6bc1c92f1d29603e44145 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?V=C3=ADt=20Ondruch?= +Date: Thu, 19 Jan 2012 10:31:15 +0100 +Subject: [PATCH] Add support for binary extensions in dedicated folder. + +--- + lib/bundler/rubygems_ext.rb | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb +index a68fb0a..89796d3 100644 +--- a/lib/bundler/rubygems_ext.rb ++++ b/lib/bundler/rubygems_ext.rb +@@ -31,13 +31,16 @@ module Gem + end + + def load_paths +- require_paths.map do |require_path| ++ paths = require_paths.map do |require_path| + if require_path.include?(full_gem_path) + require_path + else + File.join(full_gem_path, require_path) + end + end ++ ++ paths << File.join(ext_dir, require_paths.first) unless extensions.empty? ++ paths + end + + # RubyGems 1.8+ used only. +-- +1.7.7.5 + diff --git a/SPECS/rubygem-bundler.spec b/SPECS/rubygem-bundler.spec new file mode 100644 index 0000000..8dde209 --- /dev/null +++ b/SPECS/rubygem-bundler.spec @@ -0,0 +1,197 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name bundler + +%{!?enable_test: %global enable_test 0} + +Summary: Library and utilities to manage a Ruby application's gem dependencies +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 1.3.5 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://gembundler.com +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +Patch1: bundler-add-support-for-binary-extensions-in-dedicated-folde.patch +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix}rubygem(thor) +Requires: %{?scl_prefix}rubygem(net-http-persistent) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby +%if 0%{enable_test} > 0 +BuildRequires: %{?scl_prefix_ruby}ruby-devel +BuildRequires: %{?scl_prefix}rubygem(thor) +BuildRequires: %{?scl_prefix}rubygem(net-http-persistent) +BuildRequires: %{?scl_prefix}rubygem(rspec) +BuildRequires: git sudo +%endif +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +%description +Bundler manages an application's dependencies through its entire life, across +many machines, systematically and repeatably + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires:%{?scl_prefix}%{pkg_name} = %{version}-%{release} + +%description doc +Documentation for %{pkg_name} + + +%prep +%setup -n %{pkg_name}-%{version} -q -c -T +mkdir -p .%{gem_dir} +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +pushd .%{gem_instdir} +%patch1 -p1 +popd + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +mkdir -p %{buildroot}/%{_bindir} +cp -a .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x +find %{buildroot}%{gem_instdir}/lib/bundler/templates/newgem/bin -type f | xargs chmod 755 +chmod 755 %{buildroot}%{gem_instdir}/lib/bundler/templates/Executable* + +# Remove bundled libraries +rm -rf %{buildroot}/%{gem_libdir}/bundler/vendor + +# Man pages are used by Bundler internally, do not remove them! +mkdir -p %{buildroot}%{_mandir}/man5 +cp -a %{buildroot}%{gem_libdir}/bundler/man/gemfile.5 %{buildroot}%{_mandir}/man5 +mkdir -p %{buildroot}%{_mandir}/man1 +for i in bundle bundle-config bundle-exec bundle-install bundle-package bundle-update +do + cp -a %{buildroot}%{gem_libdir}/bundler/man/$i %{buildroot}%{_mandir}/man1/`echo $i.1` +done + +# Test suite has to be disabled for official build, since it downloads various +# gems, which are not in Fedora or they have different version etc. +# Nevertheless, the test suite passes for local builds. +%if 0%{enable_test} > 0 +%check +pushd .%{gem_instdir} + +# This test does not work, since ruby is configured with --with-ruby-version='' +# https://github.com/carlhuda/bundler/issues/2365 +sed -i '/"works after switching Rubies"/,/end$/{s/^/#/}' spec/install/gems/platform_spec.rb + +# Test suite needs to run in initialized git repository. +# https://github.com/carlhuda/bundler/issues/2022 +git init + +# LANG=en_US.utf-8 prevents test suite failure caused by RubyGems issue: +# https://github.com/rubygems/rubygems/issues/314 +%{?scl:scl enable %{scl} - << \EOF} + +# There is necessary to specify load paths for several gems to pass the test +# suite. Let's evaluate them by this nice Ruby snippet. +RUBYOPT=-I`ruby < - 1.3.5-1 +- Update to bundler 1.3.5 + +* Thu Jun 06 2013 Josef Stribny - 1.1.4-4 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Jul 26 2012 Bohuslav Kabrda - 1.1.4-3 +- Imported from Fedora again. +- Specfile cleanup + +* Sat Jul 21 2012 Fedora Release Engineering - 1.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jul 13 2012 Vít Ondruch - 1.1.4-1 +- Update to Bundler 1.1.4. + +* Wed Feb 01 2012 Vít Ondruch - 1.0.21-1 +- Rebuilt for Ruby 1.9.3. +- Update to Bundler 1.0.21. + +* Sat Jan 14 2012 Fedora Release Engineering - 1.0.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Jul 07 2011 Vít Ondruch - 1.0.15-1 +- Updated to Bundler 1.0.15 + +* Wed Feb 09 2011 Fedora Release Engineering - 1.0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Feb 04 2011 Vít Ondruch - 1.0.10-1 +- Upstream update + +* Thu Jan 27 2011 Vít Ondruch - 1.0.9-2 +- More concise summary +- Do not remove manpages, they are used internally +- Added buildroot cleanup in clean section + +* Mon Jan 24 2011 Vít Ondruch - 1.0.9-1 +- Bumped to Bundler 1.0.9 +- Installed manual pages +- Removed obsolete buildroot cleanup + +* Mon Nov 1 2010 Jozef Zigmund - 1.0.3-2 +- Add ruby(abi) dependency +- Add using macro %%{geminstdir} in files section +- Add subpackage doc for doc files +- Removed .gitignore file +- Removed rubygem-thor from vendor folder +- Add dependency rubygem(thor) + +* Mon Oct 18 2010 Jozef Zigmund - 1.0.3-1 +- Initial package