|
|
39f3a6 |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
39f3a6 |
%{!?scl:%global pkg_name %{name}}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%global gem_name bundler
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Enable test when building on local.
|
|
|
39f3a6 |
%{?_with_tests: %global enable_tests 1}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Ideally it should be checked against FileUtils::VERSION.
|
|
|
39f3a6 |
# https://github.com/ruby/fileutils/pull/12
|
|
|
39f3a6 |
%global fileutils_version 0.7.2
|
|
|
39f3a6 |
%global molinillo_version 0.6.4
|
|
|
39f3a6 |
%global net_http_persistent_version 2.9.4
|
|
|
39f3a6 |
%global thor_version 0.20.0
|
|
|
39f3a6 |
|
|
|
39f3a6 |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
39f3a6 |
Version: 1.16.1
|
|
|
39f3a6 |
Release: 1%{?dist}
|
|
|
39f3a6 |
Summary: Library and utilities to manage a Ruby application's gem dependencies
|
|
|
39f3a6 |
Group: Development/Languages
|
|
|
39f3a6 |
License: MIT
|
|
|
39f3a6 |
URL: http://bundler.io
|
|
|
39f3a6 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
39f3a6 |
# git clone https://github.com/bundler/bundler.git && cd bundler
|
|
|
39f3a6 |
# git checkout v1.16.1 && tar czvf bundler-1.16.1-specs.tgz spec/
|
|
|
39f3a6 |
Source1: %{gem_name}-%{version}-specs.tgz
|
|
|
39f3a6 |
# Sources for rspec to test internally.
|
|
|
39f3a6 |
# Comment out Source when testing on local. Don't import those.
|
|
|
39f3a6 |
# Source200: diff-lcs-1.3.gem
|
|
|
39f3a6 |
# Source201: rspec-3.7.0.gem
|
|
|
39f3a6 |
# Source202: rspec-core-3.7.0.gem
|
|
|
39f3a6 |
# Source203: rspec-expectations-3.7.0.gem
|
|
|
39f3a6 |
# Source204: rspec-mocks-3.7.0.gem
|
|
|
39f3a6 |
# Source205: rspec-support-3.7.0.gem
|
|
|
39f3a6 |
Requires: %{?scl_prefix}ruby(release)
|
|
|
39f3a6 |
Requires: %{?scl_prefix}ruby(rubygems)
|
|
|
39f3a6 |
BuildRequires: %{?scl_prefix}ruby(release)
|
|
|
39f3a6 |
BuildRequires: %{?scl_prefix}rubygems-devel
|
|
|
39f3a6 |
BuildRequires: %{?scl_prefix}ruby
|
|
|
39f3a6 |
%if 0%{?enable_tests} > 0
|
|
|
39f3a6 |
BuildRequires: %{?scl_prefix}ruby-devel
|
|
|
39f3a6 |
BuildRequires: %{?scl_prefix}rake
|
|
|
39f3a6 |
BuildRequires: git
|
|
|
39f3a6 |
BuildRequires: %{?scl:%{_root_bindir}}%{!?scl:%{_bindir}}/ps
|
|
|
39f3a6 |
%endif
|
|
|
39f3a6 |
# https://github.com/bundler/bundler/issues/3647
|
|
|
39f3a6 |
Provides: bundled(rubygem-fileutils) = %{fileutils_version}
|
|
|
39f3a6 |
Provides: bundled(rubygem-molinillo) = %{molinillo_version}
|
|
|
39f3a6 |
Provides: bundled(rubygem-net-http-persisntent) = %{net_http_persistent_version}
|
|
|
39f3a6 |
Provides: bundled(rubygem-thor) = %{thor_version}
|
|
|
39f3a6 |
BuildArch: noarch
|
|
|
39f3a6 |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%description
|
|
|
39f3a6 |
Bundler manages an application's dependencies through its entire life, across
|
|
|
39f3a6 |
many machines, systematically and repeatably.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%package doc
|
|
|
39f3a6 |
Summary: Documentation for %{pkg_name}
|
|
|
39f3a6 |
Group: Documentation
|
|
|
39f3a6 |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
39f3a6 |
BuildArch: noarch
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%description doc
|
|
|
39f3a6 |
Documentation for %{pkg_name}.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%prep
|
|
|
39f3a6 |
%setup -q -c -T
|
|
|
39f3a6 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
39f3a6 |
set -ex
|
|
|
39f3a6 |
%gem_install -n %{SOURCE0}
|
|
|
39f3a6 |
%{?scl:EOF}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%build
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%install
|
|
|
39f3a6 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
39f3a6 |
cp -a .%{gem_dir}/* \
|
|
|
39f3a6 |
%{buildroot}%{gem_dir}/
|
|
|
39f3a6 |
|
|
|
39f3a6 |
|
|
|
39f3a6 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
39f3a6 |
cp -a .%{_bindir}/* \
|
|
|
39f3a6 |
%{buildroot}%{_bindir}/
|
|
|
39f3a6 |
|
|
|
39f3a6 |
find %{buildroot}%{gem_instdir}/exe -type f | xargs chmod a+x
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Man pages are used by Bundler internally, do not remove them!
|
|
|
39f3a6 |
for n in 5 1; do
|
|
|
39f3a6 |
mkdir -p %{buildroot}%{_mandir}/man${n}
|
|
|
39f3a6 |
for file in %{buildroot}%{gem_instdir}/man/*.${n}; do
|
|
|
39f3a6 |
base_name=$(basename "${file}")
|
|
|
39f3a6 |
cp -a "${file}" "%{buildroot}%{_mandir}/man${n}/${base_name}"
|
|
|
39f3a6 |
done
|
|
|
39f3a6 |
done
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%check
|
|
|
39f3a6 |
pushd .%{gem_instdir}
|
|
|
39f3a6 |
# Check bundled libraries.
|
|
|
39f3a6 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
39f3a6 |
set -ex
|
|
|
39f3a6 |
|
|
|
39f3a6 |
[ `ls lib/bundler/vendor | wc -l` == 4 ]
|
|
|
39f3a6 |
|
|
|
39f3a6 |
ruby -e '
|
|
|
39f3a6 |
module Bundler; end
|
|
|
39f3a6 |
require "./lib/bundler/vendor/fileutils/lib/fileutils.rb"'
|
|
|
39f3a6 |
|
|
|
39f3a6 |
[ `ruby -e '
|
|
|
39f3a6 |
module Bundler; end
|
|
|
39f3a6 |
require "./lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata"
|
|
|
39f3a6 |
puts Bundler::Molinillo::VERSION'` == '%{molinillo_version}' ]
|
|
|
39f3a6 |
|
|
|
39f3a6 |
[ `ruby -Ilib -e '
|
|
|
39f3a6 |
module Bundler; module Persistent; module Net; module HTTP; end; end; end; end
|
|
|
39f3a6 |
require "./lib/bundler/vendor/net-http-persistent/lib/net/http/persistent"
|
|
|
39f3a6 |
puts Bundler::Persistent::Net::HTTP::Persistent::VERSION'` == '%{net_http_persistent_version}' ]
|
|
|
39f3a6 |
|
|
|
39f3a6 |
[ `ruby -e '
|
|
|
39f3a6 |
module Bundler; end
|
|
|
39f3a6 |
require "./lib/bundler/vendor/thor/lib/thor/version"
|
|
|
39f3a6 |
puts Bundler::Thor::VERSION'` == '%{thor_version}' ]
|
|
|
39f3a6 |
%{?scl:EOF}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Test suite has to be disabled for official build, since it downloads various
|
|
|
39f3a6 |
# gems, which are not in Fedora or they have different version etc.
|
|
|
39f3a6 |
# Nevertheless, the test suite should run for local builds.
|
|
|
39f3a6 |
%if 0%{?enable_tests} > 0
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
39f3a6 |
set -ex
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# mkdir gems
|
|
|
39f3a6 |
# pushd gems
|
|
|
39f3a6 |
# cp -p "%%{SOURCE200}" .
|
|
|
39f3a6 |
# cp -p "%%{SOURCE201}" .
|
|
|
39f3a6 |
# cp -p "%%{SOURCE202}" .
|
|
|
39f3a6 |
# cp -p "%%{SOURCE203}" .
|
|
|
39f3a6 |
# cp -p "%%{SOURCE204}" .
|
|
|
39f3a6 |
# cp -p "%%{SOURCE205}" .
|
|
|
39f3a6 |
# gem install *.gem --local --no-document
|
|
|
39f3a6 |
# # Path to rspec is not set in Copr.
|
|
|
39f3a6 |
# export PATH="~/bin:${PATH}"
|
|
|
39f3a6 |
# popd
|
|
|
39f3a6 |
|
|
|
39f3a6 |
tar xzvf %{SOURCE1}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Test suite needs to run in initialized git repository.
|
|
|
39f3a6 |
# https://github.com/carlhuda/bundler/issues/2022
|
|
|
39f3a6 |
git init
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Create bundler.gemspec used in spec/spec_helper.rb
|
|
|
39f3a6 |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# Color tests do not work in mock building process (but this can be tested
|
|
|
39f3a6 |
# running from shell).
|
|
|
39f3a6 |
# https://github.com/rpm-software-management/mock/issues/136
|
|
|
39f3a6 |
sed -i '/^ context "with color" do$/,/^ end$/ s/^/#/' \
|
|
|
39f3a6 |
spec/bundler/source_spec.rb
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# This test fails due to rubypick.
|
|
|
39f3a6 |
sed -i '/^ it "like a normally executed executable" do$/,/^ end$/ s/^/#/' \
|
|
|
39f3a6 |
spec/commands/exec_spec.rb
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# RDoc is not default gem on Fedora.
|
|
|
39f3a6 |
sed -i '/^ context "given a default gem shippped in ruby" do$/,/^ end$/ s/^/#/' \
|
|
|
39f3a6 |
spec/commands/info_spec.rb
|
|
|
39f3a6 |
|
|
|
39f3a6 |
# It is necessary to require spec_helper.rb explicitly.
|
|
|
39f3a6 |
# https://github.com/bundler/bundler/pull/5634
|
|
|
39f3a6 |
# TODO: Fix error.
|
|
|
39f3a6 |
rspec -rspec_helper spec
|
|
|
39f3a6 |
%{?scl:EOF}
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%endif
|
|
|
39f3a6 |
|
|
|
39f3a6 |
popd
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%files
|
|
|
39f3a6 |
%dir %{gem_instdir}
|
|
|
39f3a6 |
%{_bindir}/bundle
|
|
|
39f3a6 |
%{_bindir}/bundler
|
|
|
39f3a6 |
%exclude %{gem_instdir}/.*
|
|
|
39f3a6 |
%exclude %{gem_libdir}/bundler/ssl_certs/index.rubygems.org
|
|
|
39f3a6 |
%exclude %{gem_libdir}/bundler/ssl_certs/rubygems.global.ssl.fastly.net
|
|
|
39f3a6 |
%exclude %{gem_libdir}/bundler/ssl_certs/rubygems.org
|
|
|
39f3a6 |
%exclude %{gem_libdir}/bundler/ssl_certs/.document
|
|
|
39f3a6 |
%license %{gem_instdir}/LICENSE.md
|
|
|
39f3a6 |
%exclude %{gem_instdir}/bundler.gemspec
|
|
|
39f3a6 |
%{gem_instdir}/exe
|
|
|
39f3a6 |
%{gem_libdir}
|
|
|
39f3a6 |
%exclude %{gem_instdir}/man/*.ronn
|
|
|
39f3a6 |
%doc %{gem_instdir}/man
|
|
|
39f3a6 |
%exclude %{gem_cache}
|
|
|
39f3a6 |
%{gem_spec}
|
|
|
39f3a6 |
%doc %{_mandir}/man1/*
|
|
|
39f3a6 |
%doc %{_mandir}/man5/*
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%files doc
|
|
|
39f3a6 |
%doc %{gem_docdir}
|
|
|
39f3a6 |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
39f3a6 |
%doc %{gem_instdir}/README.md
|
|
|
39f3a6 |
|
|
|
39f3a6 |
%changelog
|
|
|
39f3a6 |
* Tue Jan 02 2018 Jun Aruga <jaruga@redhat.com> - 1.16.1-1
|
|
|
39f3a6 |
- Update to Bundler 1.16.1.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Jan 02 2017 Vít Ondruch <vondruch@redhat.com> - 1.13.7-1
|
|
|
39f3a6 |
- Update to Bundler 1.13.7.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Tue Jul 19 2016 Pavel Valena <pvalena@redhat.com> - 1.10.6-4
|
|
|
39f3a6 |
- Remove %%license macro
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 1.10.6-4
|
|
|
39f3a6 |
- Rebuilt with rh-ruby23-scldevel in buildroot
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 1.10.6-3
|
|
|
39f3a6 |
- Add scl macros
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.6-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Oct 12 2015 Vít Ondruch <vondruch@redhat.com> - 1.10.6-1
|
|
|
39f3a6 |
- Update to Bundler 1.10.6.
|
|
|
39f3a6 |
- Keep vendored libraries.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.8-3
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Feb 05 2015 Vít Ondruch <vondruch@redhat.com> - 1.7.8-2
|
|
|
39f3a6 |
- Properly uninstall the vendor directory.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Tue Dec 09 2014 Vít Ondruch <vondruch@redhat.com> - 1.7.8-1
|
|
|
39f3a6 |
- Update to Bundler 1.7.8.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Nov 20 2014 Josef Stribny <jstribny@redhat.com> - 1.7.6-2
|
|
|
39f3a6 |
- Keep ssl_certs/certificate_manager.rb file (used in tests)
|
|
|
39f3a6 |
- Correctly add load paths for gems during tests
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Wed Nov 12 2014 Josef Stribny <jstribny@redhat.com> - 1.7.6-1
|
|
|
39f3a6 |
- Update to 1.7.6
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Tue Nov 11 2014 Josef Stribny <jstribny@redhat.com> - 1.7.4-2
|
|
|
39f3a6 |
- Use symlinks for vendored libraries (rhbz#1163039)
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Oct 27 2014 Vít Ondruch <vondruch@redhat.com> - 1.7.4-1
|
|
|
39f3a6 |
- Update to Bundler 1.7.4.
|
|
|
39f3a6 |
- Add thor and net-http-persistent dependencies into .gemspec.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Sep 22 2014 Josef Stribny <jstribny@redhat.com> - 1.7.3-1
|
|
|
39f3a6 |
- Update to 1.7.3
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Sun Jan 12 2014 Sam Kottler <skottler@fedoraproject.org> - 1.5.2-1
|
|
|
39f3a6 |
- Update to 1.5.2 (BZ #1047222)
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Tue Jun 11 2013 Vít Ondruch <vondruch@redhat.com> - 1.3.5-1
|
|
|
39f3a6 |
- Update to Bundler 1.3.5.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Mar 04 2013 Josef Stribny <jstribny@redhat.com> - 1.3.1-1
|
|
|
39f3a6 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
39f3a6 |
- Update to Bundler 1.3.1
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Fri Nov 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-1
|
|
|
39f3a6 |
- Update to Bundler 1.2.1.
|
|
|
39f3a6 |
- Fix permissions on some executable files.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Fri Jul 13 2012 Vít Ondruch <vondruch@redhat.com> - 1.1.4-1
|
|
|
39f3a6 |
- Update to Bundler 1.1.4.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Wed Feb 01 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.21-1
|
|
|
39f3a6 |
- Rebuilt for Ruby 1.9.3.
|
|
|
39f3a6 |
- Update to Bundler 1.0.21.
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Jul 07 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.15-1
|
|
|
39f3a6 |
- Updated to Bundler 1.0.15
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
|
|
|
39f3a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Fri Feb 04 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.10-1
|
|
|
39f3a6 |
- Upstream update
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Thu Jan 27 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.9-2
|
|
|
39f3a6 |
- More concise summary
|
|
|
39f3a6 |
- Do not remove manpages, they are used internally
|
|
|
39f3a6 |
- Added buildroot cleanup in clean section
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Jan 24 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.9-1
|
|
|
39f3a6 |
- Bumped to Bundler 1.0.9
|
|
|
39f3a6 |
- Installed manual pages
|
|
|
39f3a6 |
- Removed obsolete buildroot cleanup
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Nov 1 2010 Jozef Zigmund <jzigmund@redhat.com> - 1.0.3-2
|
|
|
39f3a6 |
- Add ruby(abi) dependency
|
|
|
39f3a6 |
- Add using macro %%{geminstdir} in files section
|
|
|
39f3a6 |
- Add subpackage doc for doc files
|
|
|
39f3a6 |
- Removed .gitignore file
|
|
|
39f3a6 |
- Removed rubygem-thor from vendor folder
|
|
|
39f3a6 |
- Add dependency rubygem(thor)
|
|
|
39f3a6 |
|
|
|
39f3a6 |
* Mon Oct 18 2010 Jozef Zigmund <jzigmund@redhat.com> - 1.0.3-1
|
|
|
39f3a6 |
- Initial package
|