]> git.pld-linux.org Git - packages/ruby-activerecord.git/blobdiff - ruby-activerecord.spec
- 1.14.3
[packages/ruby-activerecord.git] / ruby-activerecord.spec
index 2669758d79a02d744fa2c640492516927443faf1..f2b3f287d82538ddc143eba450d8eaef79ef3ac3 100644 (file)
@@ -1,24 +1,29 @@
-%define        ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
-%define        ruby_ridir      %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"])')
-%define        ruby_version    %(ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
+#
+# TODO
+# - rip out vendor libraries: mysql.rb, sqlite.rb, simple.rb
+#
 Summary:       Object-Relational mapping library for Ruby
 Summary(pl):   Biblioteka odwzorowañ obiektowo-relacyjnych dla Ruby
 Name:          ruby-ActiveRecord
 %define tarname activerecord
-Version:       0.9.4
+Version:       1.14.3
 Release:       1
 License:       Ruby-alike
 Group:         Development/Languages
-Source0:       http://rubyforge.org/download.php/1216/%{tarname}-%{version}.tgz
-# Source0-md5: 7eca936e2b5eb049a0f276a58c2fda95
-uRL:           http://activerecord.rubyonrails.org/
-BuildRequires: ruby
-Requires:      ruby
+Source0:       http://rubyforge.org/frs/download.php/11252/%{tarname}-%{version}.tgz
+# Source0-md5: 0f1668d447a1cd1683b2903020ea213d
+Patch0:                %{name}-sanity.patch
+URL:           http://activerecord.rubyonrails.org/
+BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: ruby-modules
+%{?ruby_mod_ver_requires_eq}
+Requires:      ruby-ActiveSupport >= 1.3.1
+Requires:      ruby-transaction-simple
 #BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This pachage contains Object-Relational mapping library for Ruby.
+This package contains Object-Relational mapping library for Ruby.
 
 %description -l pl
 Ten pakiet zawiera bibliotekê odwzorowañ obiektowo-relacyjnych dla
@@ -26,6 +31,8 @@ Ruby.
 
 %prep
 %setup -q -n %{tarname}-%{version}
+%patch0 -p1
+rm -r lib/active_record/vendor
 
 %build
 rdoc --ri --op ri lib
@@ -33,7 +40,7 @@ rdoc --op rdoc lib
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
 cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
 
This page took 0.028576 seconds and 4 git commands to generate.