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