]> git.pld-linux.org Git - packages/ruby-activerecord.git/blame - ruby-activerecord.spec
- 3.0.3
[packages/ruby-activerecord.git] / ruby-activerecord.spec
CommitLineData
4350546d 1%define pkgname activerecord
9cc5ce19 2Summary: Object-Relational mapping library for Ruby
648ca55e 3Summary(pl.UTF-8): Biblioteka odwzorowań obiektowo-relacyjnych dla Ruby
4350546d 4Name: ruby-%{pkgname}
b8c6ebed 5Version: 3.0.3
f9c7d49b 6Release: 1
9cc5ce19 7License: Ruby-alike
8Group: Development/Languages
85e61527 9Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
b8c6ebed 10# Source0-md5: 4dfaec6d511ad50ede13092f1abadff0
91c754f7 11URL: http://rubyforge.org/projects/activerecord/
d5da541b 12BuildRequires: rpmbuild(macros) >= 1.277
91c754f7 13BuildRequires: ruby >= 1:1.8.6
b2b378b1 14BuildRequires: ruby-modules
faf62e79 15%{?ruby_mod_ver_requires_eq}
b8c6ebed 16Requires: ruby-activesupport >= 3.0.3
17Requires: ruby-activemodel >= 3.0.3
4350546d 18Obsoletes: ruby-ActiveRecord
51bb654d 19Provides: ruby-ActiveRecord
85e03286 20#BuildArch: noarch
9cc5ce19 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
91c754f7
ER
23# nothing to be placed there. we're not noarch only because of ruby packaging
24%define _enable_debug_packages 0
25
9cc5ce19 26%description
3e494742 27This package contains Object-Relational mapping library for Ruby.
f70f969e 28
a7e6429f
JR
29%description -l pl.UTF-8
30Ten pakiet zawiera bibliotekę odwzorowań obiektowo-relacyjnych dla
f70f969e 31Ruby.
9cc5ce19 32
91c754f7
ER
33%package rdoc
34Summary: Documentation files for ActiveRecord
35Summary(pl.UTF-8): Dokumentacja do biblioteki ActiveRecord
36Group: Documentation
37Requires: ruby >= 1:1.8.7-4
38
39%description rdoc
40Documentation files for ActiveRecord.
41
42%description rdoc -l pl.UTF-8
43Dokumentacja do biblioteki ActiveRecord.
44
755c57ab
JR
45%package ri
46Summary: ri documentation for %{pkgname}
47Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
48Group: Documentation
49Requires: ruby
50
51%description ri
52ri documentation for %{pkgname}.
53
54%description ri -l pl.UTF-8
55Dokumentacji w formacie ri dla %{pkgname}.
56
9cc5ce19 57%prep
85e61527
JR
58%setup -q -c
59%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
9cc5ce19 60
91c754f7
ER
61# cleanup backups after patching
62find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
63
9cc5ce19 64%build
cb0db288 65rdoc --ri --op ri lib
a2c18a31 66rdoc --op rdoc lib
755c57ab
JR
67rm -rf ri/{Fixture*,I18n,MysqlCompat,PGresult,Test,YAML}
68rm ri/created.rid
9cc5ce19 69
70%install
71rm -rf $RPM_BUILD_ROOT
91c754f7 72install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
755c57ab 73
859119fa 74cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
0f6c7cb9 75cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
4350546d 76cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{pkgname}-%{version}-%{release}
91c754f7 77
9cc5ce19 78%clean
f6c92d3c 79rm -rf $RPM_BUILD_ROOT
9cc5ce19 80
81%files
82%defattr(644,root,root,755)
b8c6ebed 83%doc CHANGELOG examples
91c754f7
ER
84%{ruby_rubylibdir}/active_record
85%{ruby_rubylibdir}/active_record.rb
91c754f7
ER
86
87%files rdoc
88%defattr(644,root,root,755)
4350546d 89%{ruby_rdocdir}/%{pkgname}-%{version}-%{release}
755c57ab
JR
90
91%files ri
92%defattr(644,root,root,755)
859119fa 93%{ruby_ridir}/ActiveRecord
This page took 0.08933 seconds and 4 git commands to generate.