1 %define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
2 Summary: Object-Relational mapping library for Ruby
3 Name: ruby-ActiveRecord
4 %define tarname active_record
8 Group: Development/Languages
9 Source0: http://rubyforge.org/download.php/358/%{tarname}-%{version}.tgz
10 # Source0-md5: 49768acdfed8b28f3c75fa5fec6e3f33
11 URL: http://activerecord.rubyforge.org/
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Object-Relational mapping library for Ruby
20 %setup -q -n %{tarname}-%{version}
25 rm -rf $RPM_BUILD_ROOT
26 mkdir -p $RPM_BUILD_ROOT/%{ruby_rubylibdir}
27 cp -a lib/* $RPM_BUILD_ROOT/%{ruby_rubylibdir}
30 rm -rf $RPM_BUILD_ROOT
33 %defattr(644,root,root,755)