|
|
d4992e1 |
%global gem_name bundler
|
|
|
449339b |
|
|
|
8f909cc |
%{!?enable_test: %global enable_test 0}
|
|
|
a6b4641 |
|
|
|
449339b |
Summary: Library and utilities to manage a Ruby application's gem dependencies
|
|
|
d4992e1 |
Name: rubygem-%{gem_name}
|
|
Josef Stribny |
72c1638 |
Version: 1.7.3
|
|
Josef Stribny |
72c1638 |
Release: 1%{?dist}
|
|
|
449339b |
Group: Development/Languages
|
|
|
449339b |
License: MIT
|
|
|
449339b |
URL: http://gembundler.com
|
|
|
d4992e1 |
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
6306b4d |
Requires: ruby(release)
|
|
|
d4992e1 |
Requires: ruby(rubygems)
|
|
|
f944f97 |
Requires: rubygem(thor)
|
|
|
f944f97 |
Requires: rubygem(net-http-persistent)
|
|
|
6306b4d |
BuildRequires: ruby(release)
|
|
|
d4992e1 |
BuildRequires: rubygems-devel
|
|
|
f944f97 |
BuildRequires: ruby
|
|
|
a6b4641 |
%if 0%{enable_test} > 0
|
|
|
d4992e1 |
BuildRequires: ruby-devel
|
|
|
f944f97 |
BuildRequires: rubygem(thor)
|
|
|
f944f97 |
BuildRequires: rubygem(net-http-persistent)
|
|
|
f944f97 |
BuildRequires: rubygem(rspec)
|
|
|
6306b4d |
BuildRequires: rubygem(psych)
|
|
|
a6b4641 |
BuildRequires: git sudo
|
|
|
a6b4641 |
%endif
|
|
|
449339b |
BuildArch: noarch
|
|
|
d4992e1 |
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
449339b |
|
|
|
449339b |
%description
|
|
|
449339b |
Bundler manages an application's dependencies through its entire life, across
|
|
|
449339b |
many machines, systematically and repeatably
|
|
|
449339b |
|
|
|
449339b |
%package doc
|
|
|
449339b |
Summary: Documentation for %{name}
|
|
|
449339b |
Group: Documentation
|
|
|
449339b |
Requires:%{name} = %{version}-%{release}
|
|
|
449339b |
|
|
|
449339b |
%description doc
|
|
|
449339b |
Documentation for %{name}
|
|
|
449339b |
|
|
|
449339b |
|
|
|
449339b |
%prep
|
|
|
449339b |
%setup -q -c -T
|
|
|
6306b4d |
%gem_install -n %{SOURCE0}
|
|
|
449339b |
|
|
|
449339b |
%build
|
|
|
449339b |
|
|
|
449339b |
%install
|
|
|
d4992e1 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
d4992e1 |
cp -a .%{gem_dir}/* \
|
|
|
d4992e1 |
%{buildroot}%{gem_dir}/
|
|
|
449339b |
|
|
|
449339b |
mkdir -p %{buildroot}/%{_bindir}
|
|
|
f944f97 |
cp -a .%{_bindir}/* \
|
|
|
f944f97 |
%{buildroot}%{_bindir}/
|
|
|
f944f97 |
|
|
|
fafa57a |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod 755
|
|
|
fafa57a |
find %{buildroot}%{gem_instdir}/lib/bundler/templates/newgem/bin -type f | xargs chmod 755
|
|
|
fafa57a |
chmod 755 %{buildroot}%{gem_instdir}/lib/bundler/templates/Executable*
|
|
|
449339b |
|
|
|
f944f97 |
# Remove bundled libraries
|
|
|
d4992e1 |
rm -rf %{buildroot}/%{gem_libdir}/bundler/vendor
|
|
|
449339b |
|
|
|
449339b |
# Man pages are used by Bundler internally, do not remove them!
|
|
|
449339b |
mkdir -p %{buildroot}%{_mandir}/man5
|
|
|
d4992e1 |
cp -a %{buildroot}%{gem_libdir}/bundler/man/gemfile.5 %{buildroot}%{_mandir}/man5
|
|
|
449339b |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
Sam Kottler |
98d2f67 |
for i in bundle bundle-config bundle-exec bundle-install bundle-package bundle-update
|
|
|
449339b |
do
|
|
|
d4992e1 |
cp -a %{buildroot}%{gem_libdir}/bundler/man/$i %{buildroot}%{_mandir}/man1/`echo $i.1`
|
|
|
449339b |
done
|
|
|
449339b |
|
|
|
f944f97 |
# Test suite has to be disabled for official build, since it downloads various
|
|
|
f944f97 |
# gems, which are not in Fedora or they have different version etc.
|
|
|
f944f97 |
# Nevertheless, the test suite passes for local builds.
|
|
|
a6b4641 |
%if 0%{enable_test} > 0
|
|
|
a6b4641 |
%check
|
|
|
f944f97 |
pushd .%{gem_instdir}
|
|
|
f944f97 |
|
|
|
6306b4d |
# This test does not work, since ruby is configured with --with-ruby-version=''
|
|
|
6306b4d |
# https://github.com/carlhuda/bundler/issues/2365
|
|
|
6306b4d |
sed -i '/"works after switching Rubies"/,/end$/{s/^/#/}' spec/install/gems/platform_spec.rb
|
|
|
6306b4d |
|
|
|
f944f97 |
# Test suite needs to run in initialized git repository.
|
|
|
f944f97 |
# https://github.com/carlhuda/bundler/issues/2022
|
|
|
f944f97 |
git init
|
|
|
f944f97 |
|
|
|
6306b4d |
# There is necessary to specify load paths for several gems to pass the test
|
|
|
6306b4d |
# suite. Let's evaluate them by this nice Ruby snippet.
|
|
|
6306b4d |
RUBYOPT=-I`ruby <
|
|
|
6306b4d |
specs = %w{json rdoc psych}.map {|g| Gem::Specification.find_by_name(g)}
|
|
|
6306b4d |
specs.map! do |s|
|
|
|
6306b4d |
paths = [s.gem_dir]
|
|
|
6306b4d |
paths << s.ext_dir unless s.extensions.empty?
|
|
|
6306b4d |
paths.map {|p| File.join p, s.require_paths.first}
|
|
|
6306b4d |
end
|
|
|
6306b4d |
puts specs.join(':')
|
|
|
6306b4d |
EOF` rspec spec/
|
|
|
f944f97 |
|
|
|
a6b4641 |
%endif
|
|
|
449339b |
|
|
|
449339b |
%files
|
|
|
d4992e1 |
%dir %{gem_instdir}
|
|
|
f944f97 |
%exclude %{gem_instdir}/.*
|
|
|
f944f97 |
%exclude %{gem_instdir}/man
|
|
|
d4992e1 |
%{gem_libdir}
|
|
|
6306b4d |
%doc %{gem_instdir}/LICENSE.md
|
|
|
d4992e1 |
%{gem_instdir}/.travis.yml
|
|
|
449339b |
%{_bindir}/bundle
|
|
Sam Kottler |
98d2f67 |
%{_bindir}/bundler
|
|
|
d4992e1 |
%{gem_instdir}/bin
|
|
|
f944f97 |
%exclude %{gem_cache}
|
|
|
d4992e1 |
%{gem_spec}
|
|
|
449339b |
%doc %{_mandir}/man1/*
|
|
|
449339b |
%doc %{_mandir}/man5/*
|
|
|
449339b |
|
|
|
449339b |
%files doc
|
|
|
f944f97 |
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
d4992e1 |
%doc %{gem_instdir}/ISSUES.md
|
|
|
f944f97 |
%doc %{gem_instdir}/README.md
|
|
|
d4992e1 |
%doc %{gem_instdir}/UPGRADING.md
|
|
|
6306b4d |
%doc %{gem_instdir}/CONTRIBUTING.md
|
|
Sam Kottler |
98d2f67 |
%doc %{gem_instdir}/DEVELOPMENT.md
|
|
|
d4992e1 |
%{gem_instdir}/Rakefile
|
|
|
d4992e1 |
%{gem_instdir}/spec
|
|
|
d4992e1 |
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
d4992e1 |
%doc %{gem_docdir}
|
|
|
449339b |
|
|
|
449339b |
%changelog
|
|
Josef Stribny |
72c1638 |
* Mon Sep 22 2014 Josef Stribny <jstribny@redhat.com> - 1.7.3-1
|
|
Josef Stribny |
72c1638 |
- Update to 1.7.3
|
|
Josef Stribny |
72c1638 |
|
|
|
47ddd39 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
|
|
|
47ddd39 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
47ddd39 |
|
|
Sam Kottler |
98d2f67 |
* Sun Jan 12 2014 Sam Kottler <skottler@fedoraproject.org> - 1.5.2-1
|
|
Sam Kottler |
98d2f67 |
- Update to 1.5.2 (BZ #1047222)
|
|
Sam Kottler |
98d2f67 |
|
|
|
9eacfbf |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
|
|
|
9eacfbf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
9eacfbf |
|
|
|
92b3a92 |
* Tue Jun 11 2013 Vít Ondruch <vondruch@redhat.com> - 1.3.5-1
|
|
|
92b3a92 |
- Update to Bundler 1.3.5.
|
|
|
92b3a92 |
|
|
|
6306b4d |
* Mon Mar 04 2013 Josef Stribny <jstribny@redhat.com> - 1.3.1-1
|
|
|
6306b4d |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
6306b4d |
- Update to Bundler 1.3.1
|
|
|
6306b4d |
|
|
|
4ffc2e8 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
|
|
|
4ffc2e8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
4ffc2e8 |
|
|
|
fafa57a |
* Fri Nov 02 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-1
|
|
|
fafa57a |
- Update to Bundler 1.2.1.
|
|
|
fafa57a |
- Fix permissions on some executable files.
|
|
|
fafa57a |
|
|
|
63e3212 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
63e3212 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
63e3212 |
|
|
|
f944f97 |
* Fri Jul 13 2012 Vít Ondruch <vondruch@redhat.com> - 1.1.4-1
|
|
|
f944f97 |
- Update to Bundler 1.1.4.
|
|
|
f944f97 |
|
|
|
d4992e1 |
* Wed Feb 01 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.21-1
|
|
|
d4992e1 |
- Rebuilt for Ruby 1.9.3.
|
|
|
d4992e1 |
- Update to Bundler 1.0.21.
|
|
|
d4992e1 |
|
|
|
932d959 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.15-2
|
|
|
932d959 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
932d959 |
|
|
|
a6b4641 |
* Thu Jul 07 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.15-1
|
|
|
a6b4641 |
- Updated to Bundler 1.0.15
|
|
|
a6b4641 |
|
|
|
0dc1bdd |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
|
|
|
0dc1bdd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
0dc1bdd |
|
|
|
c40d737 |
* Fri Feb 04 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.10-1
|
|
|
c40d737 |
- Upstream update
|
|
|
c40d737 |
|
|
|
449339b |
* Thu Jan 27 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.9-2
|
|
|
449339b |
- More concise summary
|
|
|
449339b |
- Do not remove manpages, they are used internally
|
|
|
449339b |
- Added buildroot cleanup in clean section
|
|
|
449339b |
|
|
|
449339b |
* Mon Jan 24 2011 Vít Ondruch <vondruch@redhat.com> - 1.0.9-1
|
|
|
449339b |
- Bumped to Bundler 1.0.9
|
|
|
449339b |
- Installed manual pages
|
|
|
449339b |
- Removed obsolete buildroot cleanup
|
|
|
449339b |
|
|
|
449339b |
* Mon Nov 1 2010 Jozef Zigmund <jzigmund@redhat.com> - 1.0.3-2
|
|
|
449339b |
- Add ruby(abi) dependency
|
|
|
f944f97 |
- Add using macro %%{geminstdir} in files section
|
|
|
449339b |
- Add subpackage doc for doc files
|
|
|
449339b |
- Removed .gitignore file
|
|
|
449339b |
- Removed rubygem-thor from vendor folder
|
|
|
449339b |
- Add dependency rubygem(thor)
|
|
|
449339b |
|
|
|
449339b |
* Mon Oct 18 2010 Jozef Zigmund <jzigmund@redhat.com> - 1.0.3-1
|
|
|
449339b |
- Initial package
|