]> git.pld-linux.org Git - packages/ruby-activerecord.git/blob - ruby-activerecord.spec
- pl, cosmetics; don't use rel==0
[packages/ruby-activerecord.git] / ruby-activerecord.spec
1 %define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
2 %define ruby_ridir      %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"])')
3 %define ruby_version    %(ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
4 Summary:        Object-Relational mapping library for Ruby
5 Summary(pl):    Biblioteka odwzorowañ obiektowo-relacyjnych dla Ruby
6 Name:           ruby-ActiveRecord
7 %define tarname active_record
8 Version:        0.5
9 Release:        0.1
10 License:        Ruby-alike
11 Group:          Development/Languages
12 Source0:        http://rubyforge.org/download.php/358/%{tarname}-%{version}.tgz
13 # Source0-md5:  49768acdfed8b28f3c75fa5fec6e3f33
14 URL:            http://activerecord.rubyforge.org/
15 BuildRequires:  ruby
16 Requires:       ruby
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This pachage contains Object-Relational mapping library for Ruby.
22
23 %description -l pl
24 Ten pakiet zawiera bibliotekê odwzorowañ obiektowo-relacyjnych dla
25 Ruby.
26
27 %prep
28 %setup -q -n %{tarname}-%{version}
29
30 %build
31 rm lib/%{tarname}/fixtures.rb
32 rdoc --ri --op ri lib
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 mkdir -p $RPM_BUILD_ROOT/{%{ruby_rubylibdir},%{ruby_ridir}}
37 cp -a lib/* $RPM_BUILD_ROOT/%{ruby_rubylibdir}
38 cp -a ri/ri/* $RPM_BUILD_ROOT/%{ruby_ridir}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc doc/*
46 %{ruby_rubylibdir}/*
47 %{_datadir}/ri/%{ruby_version}/ActiveRecord
This page took 1.130905 seconds and 4 git commands to generate.