Blame SPECS/rubygem-bundler.spec

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