Blame SPECS/rubygem-railties.spec

cc6d10
%{?scl:%scl_package rubygem-%{gem_name}}
cc6d10
%{!?scl:%global pkg_name %{name}}
cc6d10
cc6d10
# Generated from railties-3.0.3.gem by gem2rpm -*- rpm-spec -*-
cc6d10
%global gem_name railties
cc6d10
cc6d10
%global download_path http://rubygems.org/downloads/
cc6d10
cc6d10
cc6d10
%global runtests 1
cc6d10
cc6d10
Summary: Tools for creating, working with, and running Rails applications
cc6d10
Name: %{?scl_prefix}rubygem-%{gem_name}
cc6d10
Version: 4.1.5
cc6d10
Release: 1%{?dist}
cc6d10
Group: Development/Languages
cc6d10
License: MIT
cc6d10
URL: http://www.rubyonrails.org
cc6d10
Source0: %{download_path}%{gem_name}-%{version}.gem
cc6d10
# ** Take LICENSE file from upstream. **
cc6d10
# wget --no-check-certificate https://github.com/rails/rails/raw/master/railties/MIT-LICENSE
cc6d10
Source1: http://github.com/rails/rails/raw/master/railties/MIT-LICENSE
cc6d10
# to get tests:
cc6d10
# git clone http://github.com/rails/rails.git && cd rails/railties/
cc6d10
# git checkout v4.1.5 && tar czvf railties-4.1.5-tests.tgz test/
cc6d10
Source2: railties-%{version}-tests.tgz
cc6d10
# Default to `bundle --local` when creating a new app
cc6d10
# https://bugzilla.redhat.com/show_bug.cgi?id=1115079
cc6d10
Patch0: rubygem-railties-default-to-bundle-install-local.patch
cc6d10
# Let's keep Requires and BuildRequires sorted alphabeticaly
cc6d10
Requires: %{?scl_prefix_ruby}ruby(release)
cc6d10
Requires: %{?scl_prefix_ruby}ruby(rubygems)
cc6d10
Requires: %{?scl_prefix}rubygem(actionpack) = %{version}
cc6d10
Requires: %{?scl_prefix}rubygem(activesupport) = %{version}
cc6d10
Requires: %{?scl_prefix_ruby}rubygem(rake)
cc6d10
Requires: %{?scl_prefix_ruby}rubygem(thor) >= 0.18.1
cc6d10
Requires: %{?scl_prefix_ruby}rubygem(thor) < 2.0
cc6d10
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
cc6d10
BuildRequires: %{?scl_prefix_ruby}ruby(release)
cc6d10
%if 0%{?runtests}
cc6d10
BuildRequires: %{?scl_prefix}rubygem(actionpack) = %{version}
cc6d10
BuildRequires: %{?scl_prefix}rubygem(actionview) = %{version}
cc6d10
BuildRequires: %{?scl_prefix}rubygem(activerecord) = %{version}
cc6d10
BuildRequires: %{?scl_prefix}rubygem(activesupport) = %{version}
cc6d10
BuildRequires: %{?scl_prefix}rubygem(actionmailer) = %{version}
cc6d10
BuildRequires: %{?scl_prefix_ruby}rubygem(bundler)
cc6d10
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
cc6d10
BuildRequires: %{?scl_prefix}rubygem(mocha)
cc6d10
BuildRequires: %{?scl_prefix_ruby}rubygem(rake)
cc6d10
BuildRequires: %{?scl_prefix}rubygem(sqlite3)
cc6d10
BuildRequires: %{?scl_prefix_ruby}rubygem(thor) >= 0.18.1
cc6d10
BuildRequires: %{?scl_prefix_ruby}rubygem(thor) < 2.0
cc6d10
%endif
cc6d10
BuildArch: noarch
cc6d10
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
cc6d10
cc6d10
%description
cc6d10
Rails internals: application bootup, plugins, generators, and rake tasks.
cc6d10
Railties is responsible to glue all frameworks together. Overall, it:
cc6d10
* handles all the bootstrapping process for a Rails application;
cc6d10
* manager rails command line interface;
cc6d10
* provides Rails generators core;
cc6d10
cc6d10
%package doc
cc6d10
Summary: Documentation for %{pkg_name}
cc6d10
Group: Documentation
cc6d10
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
cc6d10
cc6d10
%description doc
cc6d10
This package contains documentation for %{pkg_name}.
cc6d10
cc6d10
%prep
cc6d10
%setup -n %{pkg_name}-%{version} -q -c -T
cc6d10
mkdir -p .%{_bindir}
cc6d10
%{?scl:scl enable %scl - << \EOF}
cc6d10
%gem_install -n %{SOURCE0}
cc6d10
%{?scl:EOF}
cc6d10
cc6d10
pushd .%{gem_instdir}
cc6d10
%patch0 -p1
cc6d10
popd
cc6d10
cc6d10
# May by only for v.3.0.3-6
cc6d10
#  
cc6d10
# Some stylesheet seems to be mistakingly marked as executable in the upstream
cc6d10
# source
cc6d10
find .%{gem_instdir} -name *.css -type f -perm /a+x -exec %{__chmod} -v 644 {} \;
cc6d10
cc6d10
%build
cc6d10
cc6d10
%install
cc6d10
mkdir -p %{buildroot}%{gem_dir}
cc6d10
mkdir -p %{buildroot}%{_bindir}
cc6d10
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cc6d10
cp -a .%{_bindir}/* %{buildroot}%{_bindir}
cc6d10
cc6d10
cp %{SOURCE1} %{buildroot}%{gem_instdir}
cc6d10
cc6d10
%check
cc6d10
%if 0%{?runtests}
cc6d10
# fake RAILS_FRAMEWORK_ROOT
cc6d10
ln -s %{gem_dir}/gems/activesupport-%{version}/ .%{gem_dir}/gems/activesupport
cc6d10
ln -s %{gem_dir}/gems/actionmailer-%{version}/ .%{gem_dir}/gems/actionmailer
cc6d10
ln -s ${PWD}%{gem_instdir} .%{gem_dir}/gems/railties
cc6d10
touch .%{gem_dir}/gems/load_paths.rb
cc6d10
touch .%{gem_dir}/gems/Gemfile
cc6d10
export RUBYOPT="-I${PWD}%{gem_dir}/gems/railties:${PWD}%{gem_dir}/gems/railties/lib:${PWD}%{gem_dir}/gems/railties/test"
cc6d10
export PATH="${PWD}%{gem_dir}/gems/railties/bin:$PATH"
cc6d10
cc6d10
pushd .%{gem_dir}/gems/railties
cc6d10
# extract tests
cc6d10
tar xzf %{SOURCE2}
cc6d10
cc6d10
# Get rid of Bundler for now
cc6d10
sed -i -e "s|require 'bundler/setup' unless defined?(Bundler)||" test/isolation/abstract_unit.rb
cc6d10
cc6d10
# TODO: Test are not yet in the best state.
cc6d10
#       Investigate: Very unstable, more failures than in Fedora
cc6d10
%{?scl:scl enable %{scl} - << \EOF}
cc6d10
ruby -I. -e 'Dir.glob("test/**/*_test.rb").sort.each {|t| require t}' \
cc6d10
  | grep "101. runs, .* assertions, .* failures, 33.* errors, 0 skips"
cc6d10
%{?scl:EOF}
cc6d10
popd
cc6d10
%endif
cc6d10
cc6d10
%files
cc6d10
%{_bindir}/rails
cc6d10
%dir %{gem_instdir}
cc6d10
%{gem_instdir}/bin
cc6d10
%{gem_libdir}
cc6d10
%exclude %{gem_cache}
cc6d10
%{gem_spec}
cc6d10
%doc %{gem_instdir}/MIT-LICENSE
cc6d10
cc6d10
%files doc
cc6d10
%doc %{gem_docdir}
cc6d10
%doc %{gem_instdir}/CHANGELOG.md
cc6d10
%doc %{gem_instdir}/RDOC_MAIN.rdoc
cc6d10
%doc %{gem_instdir}/README.rdoc
cc6d10
cc6d10
%changelog
cc6d10
* Mon Jan 26 2015 Josef Stribny <jstribny@redhat.com> - 4.1.5-1
cc6d10
- Update to 4.1.5
cc6d10
cc6d10
* Wed Jul 23 2014 Josef Stribny <jstribny@redhat.com> - 4.0.2-3
cc6d10
- Patch: Run bundle install with --local when creating new app
cc6d10
  - Resolves: rhbz#1115079
cc6d10
cc6d10
* Wed Feb 05 2014 Josef Stribny <jstribny@redhat.com> - 4.0.2-2
cc6d10
- Fix license (SyntaxHighlighter is removed in 4.x.x)
cc6d10
cc6d10
* Wed Dec 04 2013 Josef Stribny <jstribny@redhat.com> - 4.0.2-1
cc6d10
- Update to Railties 4.0.2
cc6d10
  - Resolves: rhbz#1037985
cc6d10
cc6d10
* Thu Nov 21 2013 Josef Stribny <jstribny@redhat.com> - 4.0.1-1
cc6d10
- Update to Railties 4.0.1
cc6d10
cc6d10
* Wed Oct 16 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-2
cc6d10
- Convert to scl.
cc6d10
cc6d10
* Thu Aug 08 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-1
cc6d10
- Update to Railties 4.0.0.
cc6d10
cc6d10
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.13-2
cc6d10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cc6d10
cc6d10
* Tue Jun 11 2013 Josef Stribny <jstribny@redhat.com> - 3.2.13-1
cc6d10
- Fix license.
cc6d10
cc6d10
* Sat Mar 09 2013 Vít Ondruch <vondruch@redhat.com> - 3.2.12-3
cc6d10
- Relax RDoc dependency.
cc6d10
cc6d10
* Fri Mar 08 2013 Vít Ondruch <vondruch@redhat.com> - 3.2.12-2
cc6d10
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
cc6d10
cc6d10
* Tue Feb 12 2013 Vít Ondruch <vondruch@redhat.com> - 3.2.12-1
cc6d10
- Update to Railties 3.2.12.
cc6d10
cc6d10
* Wed Jan 09 2013 Vít Ondruch <vondruch@redhat.com> - 3.2.11-1
cc6d10
- Update to Railties 3.2.11.
cc6d10
cc6d10
* Fri Jan 04 2013 Vít Ondruch <vondruch@redhat.com> - 3.2.10-1
cc6d10
- Update to Railties 3.2.10.
cc6d10
cc6d10
* Mon Aug 13 2012 Vít Ondruch <vondruch@redhat.com> - 3.2.8-1
cc6d10
- Update to Railties 3.2.8.
cc6d10
cc6d10
* Mon Jul 30 2012 Vít Ondruch <vondruch@redhat.com> - 3.2.7-1
cc6d10
- Update to Railties 3.2.7.
cc6d10
cc6d10
* Mon Jul 23 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.6-1
cc6d10
- Update to Railties 3.2.6.
cc6d10
- Move some files into -doc subpackage.
cc6d10
- Remove the unneeded %%defattr.
cc6d10
- Introduce %%check section (not running tests yet, as they are part of dependency loop).
cc6d10
cc6d10
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.15-2
cc6d10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cc6d10
cc6d10
* Fri Jun 15 2012 Vít Ondruch <vondruch@redhat.com> - 3.0.15-1
cc6d10
- Update to Railties 3.0.15.
cc6d10
cc6d10
* Fri Jun 01 2012 Vít Ondruch <vondruch@redhat.com> - 3.0.13-1
cc6d10
- Update to Railties 3.0.13.
cc6d10
cc6d10
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.0.11-1
cc6d10
- Rebuilt for Ruby 1.9.3.
cc6d10
- Update to Railties 3.0.11.
cc6d10
cc6d10
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.10-2
cc6d10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cc6d10
cc6d10
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 3.0.10-1
cc6d10
- Update to Railties 3.0.10
cc6d10
cc6d10
* Thu Jul 21 2011 Vít Ondruch <vondruch@redhat.com> - 3.0.9-2
cc6d10
- Added missing RDoc dependency.
cc6d10
cc6d10
* Thu Jul 07 2011 Vít Ondruch <vondruch@redhat.com> - 3.0.9-1
cc6d10
- Update to Railties 3.0.9
cc6d10
cc6d10
* Mon Jun 27 2011  <mmorsi@redhat.com> - 3.0.5-2
cc6d10
- include fix for BZ #715385
cc6d10
cc6d10
* Tue Mar 29 2011 Vít Ondruch <vondruch@redhat.com> - 3.0.5-1
cc6d10
- Updated to Railties 3.0.5
cc6d10
cc6d10
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-8
cc6d10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cc6d10
cc6d10
* Wed Feb 02 2011  <Minnikhanov@gmail.com> - 3.0.3-7
cc6d10
- Fix Comment 11 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c11
cc6d10
- Take LICENSE file from upstream.
cc6d10
cc6d10
* Mon Jan 31 2011  <Minnikhanov@gmail.com> - 3.0.3-6
cc6d10
- Fix Comment 9 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c9
cc6d10
- Temporarily test suite is blocked.
cc6d10
cc6d10
* Thu Jan 27 2011  <Minnikhanov@gmail.com> - 3.0.3-5
cc6d10
- Fix Comment 7 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c7 
cc6d10
cc6d10
* Tue Jan 25 2011  <Minnikhanov@gmail.com> - 3.0.3-4
cc6d10
- Fix Comment 5 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c5 
cc6d10
cc6d10
* Mon Jan 24 2011  <Minnikhanov@gmail.com> - 3.0.3-3
cc6d10
- Fix Comment 3 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c3 
cc6d10
cc6d10
* Sun Jan 23 2011  <Minnikhanov@gmail.com> - 3.0.3-2
cc6d10
- Fix Comment 1 #665560. https://bugzilla.redhat.com/show_bug.cgi?id=668090#c1 
cc6d10
cc6d10
* Fri Jan 07 2011  <Minnikhanov@gmail.com> - 3.0.3-1
cc6d10
- Initial package