]> git.pld-linux.org Git - packages/ruby-activerecord.git/blob - ruby-activerecord.spec
- 2.1.0
[packages/ruby-activerecord.git] / ruby-activerecord.spec
1 #
2 # TODO
3 # - rip out vendor libraries: mysql.rb, sqlite.rb, simple.rb
4 #
5 Summary:        Object-Relational mapping library for Ruby
6 Summary(pl.UTF-8):      Biblioteka odwzorowań obiektowo-relacyjnych dla Ruby
7 Name:           ruby-ActiveRecord
8 %define tarname activerecord
9 Version:        2.1.0
10 Release:        1
11 License:        Ruby-alike
12 Group:          Development/Languages
13 Source0:        http://rubyforge.org/frs/download.php/37757/%{tarname}-%{version}.tgz
14 # Source0-md5:  ec01737a6f1f9cb9a2269e4fcd55de6f
15 Patch0:         %{name}-sqlitethreads.patch
16 Patch1:         %{name}-rubygems.patch
17 URL:            http://activerecord.rubyonrails.org/
18 BuildRequires:  rpmbuild(macros) >= 1.277
19 BuildRequires:  ruby-modules
20 %{?ruby_mod_ver_requires_eq}
21 Requires:       ruby-ActiveSupport >= 2.0.1
22 Requires:       ruby-transaction-simple
23 #BuildArch:     noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This package contains Object-Relational mapping library for Ruby.
28
29 %description -l pl.UTF-8
30 Ten pakiet zawiera bibliotekę odwzorowań obiektowo-relacyjnych dla
31 Ruby.
32
33 %prep
34 %setup -q -n %{tarname}-%{version}
35 %patch0 -p1
36 %patch1 -p1
37 rm -r lib/active_record/vendor
38
39 %build
40 rdoc --ri --op ri lib
41 rdoc --op rdoc lib
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
46 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
47 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc rdoc README
55 %{ruby_rubylibdir}/*
56 %{ruby_ridir}/ActiveRecord
This page took 0.037849 seconds and 4 git commands to generate.