]> git.pld-linux.org Git - packages/ruby-activerecord.git/blobdiff - ruby-activerecord.spec
- 1.14.3
[packages/ruby-activerecord.git] / ruby-activerecord.spec
index 69516fb524019bcd660b1d2b63bdb7fc84bc46b0..f2b3f287d82538ddc143eba450d8eaef79ef3ac3 100644 (file)
@@ -1,32 +1,29 @@
 #
 # TODO
-# 
 # - rip out vendor libraries: mysql.rb, sqlite.rb, simple.rb
 #
-%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"]')
 Summary:       Object-Relational mapping library for Ruby
 Summary(pl):   Biblioteka odwzorowañ obiektowo-relacyjnych dla Ruby
 Name:          ruby-ActiveRecord
 %define tarname activerecord
-Version:       1.11.0
+Version:       1.14.3
 Release:       1
 License:       Ruby-alike
 Group:         Development/Languages
-Source0:       http://rubyforge.org/frs/download.php/5111/%{tarname}-%{version}.tgz
-# Source0-md5: caaa795595cb012890a811167f184b3f
-Patch0:        %{name}-sanity.patch
-uRL:           http://activerecord.rubyonrails.org/
-BuildRequires: ruby
-Requires:      ruby
-Requires: ruby-ActiveSupport
-Requires: ruby-transaction-simple
+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
@@ -35,15 +32,15 @@ Ruby.
 %prep
 %setup -q -n %{tarname}-%{version}
 %patch0 -p1
+rm -r lib/active_record/vendor
 
 %build
-rm lib/active_record/vendor -r
 rdoc --ri --op ri lib
 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.064218 seconds and 4 git commands to generate.