]> git.pld-linux.org Git - packages/ruby-activerecord.git/blobdiff - ruby-activerecord.spec
- 1.14.3
[packages/ruby-activerecord.git] / ruby-activerecord.spec
index 74c267b6ff3b642f18c5151ef14618f71be25cd4..f2b3f287d82538ddc143eba450d8eaef79ef3ac3 100644 (file)
@@ -1,34 +1,54 @@
-%define        ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+#
+# 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 active_record
-Version:       0.5
-Release:       0
+%define tarname activerecord
+Version:       1.14.3
+Release:       1
 License:       Ruby-alike
 Group:         Development/Languages
-Source0:       http://rubyforge.org/download.php/358/%{tarname}-%{version}.tgz
-# Source0-md5: 49768acdfed8b28f3c75fa5fec6e3f33
-URL:           http://activerecord.rubyforge.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
-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
+Ruby.
 
 %prep
 %setup -q -n %{tarname}-%{version}
+%patch0 -p1
+rm -r lib/active_record/vendor
 
 %build
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/%{ruby_rubylibdir}
-cp -a lib/* $RPM_BUILD_ROOT/%{ruby_rubylibdir}
+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}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc rdoc README
 %{ruby_rubylibdir}/*
+%{ruby_ridir}/ActiveRecord
This page took 0.060147 seconds and 4 git commands to generate.