|
|
@ -1,14 +1,12 @@
|
|
|
|
%global gemname activesupport
|
|
|
|
%global gem_name activesupport
|
|
|
|
|
|
|
|
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global rubyabi 1.8
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Support and utility classes used by the Rails framework
|
|
|
|
Summary: Support and utility classes used by the Rails framework
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
Version: 3.0.10
|
|
|
|
Version: 3.0.11
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
@ -20,8 +18,8 @@ Source0: http://rubygems.org/downloads/activesupport-%{version}.gem
|
|
|
|
# Rails rpms, you may check it out like so
|
|
|
|
# Rails rpms, you may check it out like so
|
|
|
|
# git clone http://github.com/rails/rails.git
|
|
|
|
# git clone http://github.com/rails/rails.git
|
|
|
|
# cd rails/activesupport/
|
|
|
|
# cd rails/activesupport/
|
|
|
|
# git checkout v3.0.10
|
|
|
|
# git checkout v3.0.11
|
|
|
|
# tar czvf activesupport-3.0.10-tests.tgz test/
|
|
|
|
# tar czvf activesupport-3.0.11-tests.tgz test/
|
|
|
|
Source2: activesupport-%{version}-tests.tgz
|
|
|
|
Source2: activesupport-%{version}-tests.tgz
|
|
|
|
|
|
|
|
|
|
|
|
# Removes code which breaks the test suite due to a
|
|
|
|
# Removes code which breaks the test suite due to a
|
|
|
@ -33,18 +31,21 @@ Patch1: activesupport-tests-fix.patch
|
|
|
|
Patch2: activesupport-remove-memcache-build-dep.patch
|
|
|
|
Patch2: activesupport-remove-memcache-build-dep.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires: rubygems
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: rubygem(i18n)
|
|
|
|
Requires: rubygem(i18n)
|
|
|
|
BuildRequires: rubygems
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygem(mocha)
|
|
|
|
BuildRequires: rubygem(mocha)
|
|
|
|
BuildRequires: rubygem(i18n)
|
|
|
|
BuildRequires: rubygem(i18n)
|
|
|
|
#BuildRequires: rubygem(memcache-client)
|
|
|
|
#BuildRequires: rubygem(memcache-client)
|
|
|
|
BuildRequires: rubygem(tzinfo)
|
|
|
|
BuildRequires: rubygem(tzinfo)
|
|
|
|
BuildRequires: rubygem(builder)
|
|
|
|
BuildRequires: rubygem(builder)
|
|
|
|
BuildRequires: rubygem(rack)
|
|
|
|
BuildRequires: rubygem(rack)
|
|
|
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
|
|
|
BuildRequires: rubygem(bigdecimal)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Utility library which carries commonly used classes and
|
|
|
|
Utility library which carries commonly used classes and
|
|
|
@ -52,45 +53,47 @@ goodies from the Rails framework
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
%setup -q -c -T
|
|
|
|
mkdir -p .%{gemdir}
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
gem install --local --install-dir .%{gemdir} \
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
--force -V --rdoc %{SOURCE0}
|
|
|
|
--force -V --rdoc %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
|
|
# move the tests into place
|
|
|
|
# move the tests into place
|
|
|
|
tar xzvf %{SOURCE2} -C .%{geminstdir}
|
|
|
|
tar xzvf %{SOURCE2} -C .%{gem_instdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd .%{geminstdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
%patch1 -p0
|
|
|
|
%patch1 -p0
|
|
|
|
%patch2 -p0
|
|
|
|
%patch2 -p0
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gemdir}/* %{buildroot}%{gemdir}
|
|
|
|
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd %{buildroot}%{geminstdir}
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
ruby -Itest -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
|
|
|
|
ruby -Itest -e "Dir.glob('./test/**/*_test.rb').each {|t| require t}"
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%dir %{geminstdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%doc %{geminstdir}/CHANGELOG
|
|
|
|
%doc %{gem_instdir}/CHANGELOG
|
|
|
|
%{geminstdir}/lib
|
|
|
|
%{gem_libdir}
|
|
|
|
%doc %{geminstdir}/README.rdoc
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
%{gem_cache}
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
%{gem_spec}
|
|
|
|
%{geminstdir}/test
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.10-2
|
|
|
|
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:3.0.11-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
- Rebuilt for Ruby 1.9.3.
|
|
|
|
|
|
|
|
- Update to ActiveSupport 3.0.11.
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
|
|
|
|
* Mon Aug 22 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.10-1
|
|
|
|
- Update to ActiveSupport 3.0.10
|
|
|
|
- Update to ActiveSupport 3.0.10
|
|
|
|