rpms/rubygem-activerecord/devel .cvsignore, 1.9, 1.10 rubygem-activerecord.spec, 1.11, 1.12 sources, 1.9, 1.10
Mamoru Tasaka
mtasaka at fedoraproject.org
Sun Sep 20 16:40:28 UTC 2009
- Previous message (by thread): rpms/rubygem-actionpack/devel rubygem-actionpack-2.3.4-enable-test.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 rubygem-actionpack.spec, 1.12, 1.13 sources, 1.9, 1.10
- Next message (by thread): rpms/rubygem-activeresource/devel .cvsignore, 1.8, 1.9 rubygem-activeresource.spec, 1.9, 1.10 sources, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mtasaka
Update of /cvs/extras/rpms/rubygem-activerecord/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7435/rubygem-activerecord/devel
Modified Files:
.cvsignore rubygem-activerecord.spec sources
Log Message:
rails 2.3.4 (CVE-2009-3009), requires rubygems >= 1.3.4
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/rubygem-activerecord/devel/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- .cvsignore 26 Jul 2009 10:55:14 -0000 1.9
+++ .cvsignore 20 Sep 2009 16:40:26 -0000 1.10
@@ -1 +1 @@
-activerecord-2.3.3.gem
+activerecord-2.3.4.gem
Index: rubygem-activerecord.spec
===================================================================
RCS file: /cvs/extras/rpms/rubygem-activerecord/devel/rubygem-activerecord.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- rubygem-activerecord.spec 26 Jul 2009 10:55:14 -0000 1.11
+++ rubygem-activerecord.spec 20 Sep 2009 16:40:26 -0000 1.12
@@ -4,18 +4,25 @@
%define gemname activerecord
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%define rubyabi 1.8
+
Summary: Implements the ActiveRecord pattern for ORM
Name: rubygem-%{gemname}
-Version: 2.3.3
+Version: 2.3.4
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: ruby(abi) = %{rubyabi}
Requires: rubygems
Requires: rubygem(activesupport) = %{version}
BuildRequires: rubygems
+BuildRequires(check): rubygem(rake)
+BuildRequires(check): rubygem(activesupport) = %{version}
+BuildRequires(check): rubygem(sqlite3-ruby)
+BuildRequires(check): rubygem(mocha)
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
@@ -26,34 +33,48 @@ Subscription, that can find, save, and d
manual SQL.
%prep
+%setup -q -c -T
-%build
+# rake test creates debug.log under %%{geminstdir},
+# so let's install gem file under %%{_builddir} first
-%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-gem install --local --install-dir %{buildroot}%{gemdir} \
+mkdir -p ./%{gemdir}
+gem install --local --install-dir ./%{gemdir} \
--force --rdoc %{SOURCE0}
# Remove backup files
-find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
+find ./%{geminstdir} -type f -name "*~" -delete
# Delete zero-length files
-find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
+# No! These are needed for rake test
+# find ./%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
# Fix anything executable that does not have a shebang
-for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
+for file in `find ./%{geminstdir} -type f -perm /a+x`; do
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done
# Find files with a shebang that do not have executable permissions
-for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
+for file in `find ./%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
done
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+
%clean
rm -rf %{buildroot}
+%check
+# Only test sqlite3 backend
+pushd .%{geminstdir}
+rake test_sqlite3 --trace
+
%files
%defattr(-, root, root, -)
%dir %{geminstdir}
@@ -71,6 +92,10 @@ rm -rf %{buildroot}
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%changelog
+* Fri Sep 18 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 2.3.4-1
+- Update to 2.3.4
+- Enable check
+
* Sun Jul 26 2009 Jeroen van Meeuwen <j.van.meeuwen at ogd.nl> - 2.3.3-1
- New upstream version
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/rubygem-activerecord/devel/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- sources 26 Jul 2009 10:55:14 -0000 1.9
+++ sources 20 Sep 2009 16:40:26 -0000 1.10
@@ -1 +1 @@
-1516ff58e4e43987aed43a09d7b342d2 activerecord-2.3.3.gem
+edb29388f671d27c1670c52694f2dd99 activerecord-2.3.4.gem
- Previous message (by thread): rpms/rubygem-actionpack/devel rubygem-actionpack-2.3.4-enable-test.patch, NONE, 1.1 .cvsignore, 1.9, 1.10 rubygem-actionpack.spec, 1.12, 1.13 sources, 1.9, 1.10
- Next message (by thread): rpms/rubygem-activeresource/devel .cvsignore, 1.8, 1.9 rubygem-activeresource.spec, 1.9, 1.10 sources, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list