|
|
42409c |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
42409c |
%{!?scl:%global pkg_name %{name}}
|
|
|
42409c |
|
|
|
42409c |
%global gem_name bundler
|
|
|
42409c |
|
|
|
42409c |
%{?_with_tests: %global enable_tests 1}
|
|
|
42409c |
|
|
|
42409c |
%global compact_index_client_version 0.1.0
|
|
|
42409c |
%global molinillo_version 0.5.1
|
|
|
42409c |
%global net_http_persistent_version 2.9.3
|
|
|
42409c |
%global postit_version 0.2.0
|
|
|
42409c |
%global thor_version 0.19.1
|
|
|
42409c |
|
|
|
42409c |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
42409c |
Version: 1.13.7
|
|
|
42409c |
Release: 1%{?dist}
|
|
|
42409c |
Summary: Library and utilities to manage a Ruby application's gem dependencies
|
|
|
42409c |
Group: Development/Languages
|
|
|
42409c |
License: MIT
|
|
|
42409c |
URL: http://bundler.io
|
|
|
42409c |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
42409c |
# git clone https://github.com/bundler/bundler.git && cd bundler
|
|
|
42409c |
# git checkout v1.13.7 && tar czvf bundler-1.13.7-specs.tgz spec/
|
|
|
42409c |
Source1: %{gem_name}-%{version}-specs.tgz
|
|
|
42409c |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
42409c |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
42409c |
%{?scl:BuildRequires: scldevel(ruby)}
|
|
|
42409c |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
42409c |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
42409c |
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
|
42409c |
%if 0%{?enable_tests} > 0
|
|
|
42409c |
BuildRequires: %{?scl_prefix_ruby}ruby-devel
|
|
|
42409c |
BuildRequires: %{?scl_prefix}rubygem(rspec)
|
|
|
42409c |
BuildRequires: git
|
|
|
42409c |
BuildRequires: %{?scl:%{_root_bindir}}%{!?scl:%{_bindir}}/ps
|
|
|
42409c |
%endif
|
|
|
42409c |
# https://github.com/bundler/bundler/issues/3647
|
|
|
42409c |
Provides: bundled(rubygem-compact_index_client) = %{compact_index_client_version}
|
|
|
42409c |
Provides: bundled(rubygem-molinillo) = %{molinillo_version}
|
|
|
42409c |
Provides: bundled(rubygem-net-http-persisntent) = %{net_http_persistent_version}
|
|
|
42409c |
Provides: bundled(rubygem-postit) = %{postit_version}
|
|
|
42409c |
Provides: bundled(rubygem-thor) = %{thor_version}
|
|
|
42409c |
BuildArch: noarch
|
|
|
42409c |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
42409c |
|
|
|
42409c |
%description
|
|
|
42409c |
Bundler manages an application's dependencies through its entire life, across
|
|
|
42409c |
many machines, systematically and repeatably.
|
|
|
42409c |
|
|
|
42409c |
%package doc
|
|
|
42409c |
Summary: Documentation for %{pkg_name}
|
|
|
42409c |
Group: Documentation
|
|
|
42409c |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
42409c |
BuildArch: noarch
|
|
|
42409c |
|
|
|
42409c |
%description doc
|
|
|
42409c |
Documentation for %{pkg_name}.
|
|
|
42409c |
|
|
|
42409c |
%prep
|
|
|
42409c |
%setup -q -c -T
|
|
|
42409c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
42409c |
%gem_install -n %{SOURCE0}
|
|
|
42409c |
%{?scl:EOF}
|
|
|
42409c |
|
|
|
42409c |
%build
|
|
|
42409c |
|
|
|
42409c |
%install
|
|
|
42409c |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
42409c |
cp -a .%{gem_dir}/* \
|
|
|
42409c |
%{buildroot}%{gem_dir}/
|
|
|
42409c |
|
|
|
42409c |
|
|
|
42409c |
mkdir -p %{buildroot}%{_bindir}
|
|
|
42409c |
cp -a .%{_bindir}/* \
|
|
|
42409c |
%{buildroot}%{_bindir}/
|
|
|
42409c |
|
|
|
42409c |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
42409c |
|
|
|
42409c |
# Man pages are used by Bundler internally, do not remove them!
|
|
|
42409c |
mkdir -p %{buildroot}%{_mandir}/man5
|
|
|
42409c |
cp -a %{buildroot}%{gem_libdir}/bundler/man/gemfile.5 %{buildroot}%{_mandir}/man5
|
|
|
42409c |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
42409c |
for i in bundle bundle-binstubs bundle-config bundle-exec bundle-gem bundle-install bundle-lock bundle-package bundle-platform bundle-update
|
|
|
42409c |
do
|
|
|
42409c |
cp -a %{buildroot}%{gem_libdir}/bundler/man/$i %{buildroot}%{_mandir}/man1/`echo $i.1`
|
|
|
42409c |
done
|
|
|
42409c |
|
|
|
42409c |
%check
|
|
|
42409c |
pushd .%{gem_instdir}
|
|
|
42409c |
# Check bundled libraries.
|
|
|
42409c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
42409c |
set -e
|
|
|
42409c |
|
|
|
42409c |
[ `ls lib/bundler/vendor | wc -l` == 5 ]
|
|
|
42409c |
|
|
|
42409c |
[ `ruby -e '
|
|
|
42409c |
module Bundler; end
|
|
|
42409c |
require "./lib/bundler/vendor/compact_index_client/lib/compact_index_client/version"
|
|
|
42409c |
puts Bundler::CompactIndexClient::VERSION'` == '%{compact_index_client_version}' ]
|
|
|
42409c |
|
|
|
42409c |
[ `ruby -e '
|
|
|
42409c |
module Bundler; end
|
|
|
42409c |
require "./lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata"
|
|
|
42409c |
puts Bundler::Molinillo::VERSION'` == '%{molinillo_version}' ]
|
|
|
42409c |
|
|
|
42409c |
[ `ruby -Ilib/bundler/vendor -rnet/http/persistent \
|
|
|
42409c |
-e "puts Net::HTTP::Persistent::VERSION"` == '%{net_http_persistent_version}' ]
|
|
|
42409c |
|
|
|
42409c |
[ `ruby -e '
|
|
|
42409c |
module BundlerVendoredPostIt; end
|
|
|
42409c |
require "./lib/bundler/vendor/postit/lib/postit/version"
|
|
|
42409c |
puts BundlerVendoredPostIt::PostIt::VERSION'` == '%{postit_version}' ]
|
|
|
42409c |
|
|
|
42409c |
[ `ruby -e '
|
|
|
42409c |
module Bundler; end
|
|
|
42409c |
require "./lib/bundler/vendor/thor/lib/thor/version"
|
|
|
42409c |
puts Bundler::Thor::VERSION'` == '%{thor_version}' ]
|
|
|
42409c |
%{?scl:EOF}
|
|
|
42409c |
|
|
|
42409c |
# Test suite has to be disabled for official build, since it downloads various
|
|
|
42409c |
# gems, which are not in Fedora or they have different version etc.
|
|
|
42409c |
# Nevertheless, the test suite should run for local builds.
|
|
|
42409c |
%if 0%{?enable_tests} > 0
|
|
|
42409c |
|
|
|
42409c |
tar xzvf %{SOURCE1}
|
|
|
42409c |
|
|
|
42409c |
# Test suite needs to run in initialized git repository.
|
|
|
42409c |
# https://github.com/carlhuda/bundler/issues/2022
|
|
|
42409c |
git init
|
|
|
42409c |
|
|
|
42409c |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
42409c |
rspec spec
|
|
|
42409c |
%{?scl:EOF}
|
|
|
42409c |
|
|
|
42409c |
%endif
|
|
|
42409c |
|
|
|
42409c |
popd
|
|
|
42409c |
|
|
|
42409c |
# There is no %license macro on RHEL6.
|
|
|
42409c |
# https://bugzilla.redhat.com/show_bug.cgi?id=1386246
|
|
|
42409c |
%{!?_licensedir:%global license %%doc}
|
|
|
42409c |
|
|
|
42409c |
%files
|
|
|
42409c |
%dir %{gem_instdir}
|
|
|
42409c |
%{_bindir}/bundle
|
|
|
42409c |
%{_bindir}/bundler
|
|
|
42409c |
%exclude %{gem_instdir}/.*
|
|
|
42409c |
%exclude %{gem_libdir}/bundler/ssl_certs/index.rubygems.org
|
|
|
42409c |
%exclude %{gem_libdir}/bundler/ssl_certs/rubygems.global.ssl.fastly.net
|
|
|
42409c |
%exclude %{gem_libdir}/bundler/ssl_certs/rubygems.org
|
|
|
42409c |
%exclude %{gem_libdir}/bundler/ssl_certs/.document
|
|
|
42409c |
%license %{gem_instdir}/LICENSE.md
|
|
|
42409c |
%exclude %{gem_instdir}/bin
|
|
|
42409c |
%{gem_instdir}/exe
|
|
|
42409c |
%{gem_libdir}
|
|
|
42409c |
%exclude %{gem_instdir}/man
|
|
|
42409c |
%exclude %{gem_cache}
|
|
|
42409c |
%{gem_spec}
|
|
|
42409c |
%doc %{_mandir}/man1/*
|
|
|
42409c |
%doc %{_mandir}/man5/*
|
|
|
42409c |
|
|
|
42409c |
%files doc
|
|
|
42409c |
%doc %{gem_docdir}
|
|
|
42409c |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
42409c |
%doc %{gem_instdir}/CODE_OF_CONDUCT.md
|
|
|
42409c |
%doc %{gem_instdir}/ISSUES.md
|
|
|
42409c |
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
|
42409c |
%doc %{gem_instdir}/README.md
|
|
|
42409c |
%doc %{gem_instdir}/DEVELOPMENT.md
|
|
|
42409c |
%{gem_instdir}/Rakefile
|
|
|
42409c |
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
42409c |
|
|
|
42409c |
%changelog
|
|
|
42409c |
* Mon Jan 02 2017 Vít Ondruch <vondruch@redhat.com> - 1.13.7-1
|
|
|
42409c |
- Update to Bundler 1.13.7.
|
|
|
42409c |
|
|
|
42409c |
* Tue Jul 19 2016 Pavel Valena <pvalena@redhat.com> - 1.10.6-4
|
|
|
42409c |
- Remove %%license macro
|
|
|
42409c |
|
|
|
42409c |
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 1.10.6-4
|
|
|
42409c |
- Rebuilt with rh-ruby23-scldevel in buildroot
|
|
|
42409c |
|
|
|
42409c |
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 1.10.6-3
|
|
|
42409c |
- Add scl macros
|
|
|
42409c |
|
|
|
42409c |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.6-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Mon Oct 12 2015 Vít Ondruch <vondruch@redhat.com> - 1.10.6-1
|
|
|
42409c |
- Update to Bundler 1.10.6.
|
|
|
42409c |
- Keep vendored libraries.
|
|
|
42409c |
|
|
|
42409c |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.8-3
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Thu Feb 05 2015 Vít Ondruch <vondruch@redhat.com> - 1.7.8-2
|
|
|
42409c |
- Properly uninstall the vendor directory.
|
|
|
42409c |
|
|
|
42409c |
* Tue Dec 09 2014 Vít Ondruch <vondruch@redhat.com> - 1.7.8-1
|
|
|
42409c |
- Update to Bundler 1.7.8.
|
|
|
42409c |
|
|
|
42409c |
* Thu Nov 20 2014 Josef Stribny <jstribny@redhat.com> - 1.7.6-2
|
|
|
42409c |
- Keep ssl_certs/certificate_manager.rb file (used in tests)
|
|
|
42409c |
- Correctly add load paths for gems during tests
|
|
|
42409c |
|
|
|
42409c |
* Wed Nov 12 2014 Josef Stribny <jstribny@redhat.com> - 1.7.6-1
|
|
|
42409c |
- Update to 1.7.6
|
|
|
42409c |
|
|
|
42409c |
* Tue Nov 11 2014 Josef Stribny <jstribny@redhat.com> - 1.7.4-2
|
|
|
42409c |
- Use symlinks for vendored libraries (rhbz#1163039)
|
|
|
42409c |
|
|
|
42409c |
* Mon Oct 27 2014 Vít Ondruch <vondruch@redhat.com> - 1.7.4-1
|
|
|
42409c |
- Update to Bundler 1.7.4.
|
|
|
42409c |
- Add thor and net-http-persistent dependencies into .gemspec.
|
|
|
42409c |
|
|
|
42409c |
* Mon Sep 22 2014 Josef Stribny <jstribny@redhat.com> - 1.7.3-1
|
|
|
42409c |
- Update to 1.7.3
|
|
|
42409c |
|
|
|
42409c |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Sun Jan 12 2014 Sam Kottler <skottler@fedoraproject.org> - 1.5.2-1
|
|
|
42409c |
- Update to 1.5.2 (BZ #1047222)
|
|
|
42409c |
|
|
|
42409c |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Tue Jun 11 2013 Vít Ondruch <vondruch@redhat.com> - 1.3.5-1
|
|
|
42409c |
- Update to Bundler 1.3.5.
|
|
|
42409c |
|
|
|
42409c |
* Mon Mar 04 2013 Josef Stribny <jstribny@redhat.com> - 1.3.1-1
|
|
|
42409c |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
42409c |
- Update to Bundler 1.3.1
|
|
|
42409c |
|
|
|
42409c |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Fri Nov 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-1
|
|
|
42409c |
- Update to Bundler 1.2.1.
|
|
|
42409c |
- Fix permissions on some executable files.
|
|
|
42409c |
|
|
|
42409c |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Fri Jul 13 2012 Vít Ondruch <vondruch@redhat.com> - 1.1.4-1
|
|
|
42409c |
- Update to Bundler 1.1.4.
|
|
|
42409c |
|
|
|
42409c |
* Wed Feb 01 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.21-1
|
|
|
42409c |
- Rebuilt for Ruby 1.9.3.
|
|
|
42409c |
- Update to Bundler 1.0.21.
|
|
|
42409c |
|
|
|
42409c |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Thu Jul 07 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.15-1
|
|
|
42409c |
- Updated to Bundler 1.0.15
|
|
|
42409c |
|
|
|
42409c |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
|
|
|
42409c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
42409c |
|
|
|
42409c |
* Fri Feb 04 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.10-1
|
|
|
42409c |
- Upstream update
|
|
|
42409c |
|
|
|
42409c |
* Thu Jan 27 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.9-2
|
|
|
42409c |
- More concise summary
|
|
|
42409c |
- Do not remove manpages, they are used internally
|
|
|
42409c |
- Added buildroot cleanup in clean section
|
|
|
42409c |
|
|
|
42409c |
* Mon Jan 24 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.9-1
|
|
|
42409c |
- Bumped to Bundler 1.0.9
|
|
|
42409c |
- Installed manual pages
|
|
|
42409c |
- Removed obsolete buildroot cleanup
|
|
|
42409c |
|
|
|
42409c |
* Mon Nov 1 2010 Jozef Zigmund <jzigmund@redhat.com> - 1.0.3-2
|
|
|
42409c |
- Add ruby(abi) dependency
|
|
|
42409c |
- Add using macro %%{geminstdir} in files section
|
|
|
42409c |
- Add subpackage doc for doc files
|
|
|
42409c |
- Removed .gitignore file
|
|
|
42409c |
- Removed rubygem-thor from vendor folder
|
|
|
42409c |
- Add dependency rubygem(thor)
|
|
|
42409c |
|
|
|
42409c |
* Mon Oct 18 2010 Jozef Zigmund <jzigmund@redhat.com> - 1.0.3-1
|
|
|
42409c |
- Initial package
|