]>
Commit | Line | Data |
---|---|---|
f637f794 | 1 | %define ruby_archdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]') |
87173cb3 | 2 | %define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') |
3 | Summary: An HTML/XHTML template library for Ruby | |
4 | Name: amrita | |
f637f794 | 5 | Version: 1.8.2 |
865e3353 | 6 | Release: 2 |
87173cb3 | 7 | License: GPL |
8 | URL: http://www.brain-tokyo.jp/research/amrita/ | |
9 | Group: Development/Libraries | |
10 | Source0: http://www.brain-tokyo.jp/research/amrita/%{name}-%{version}.tar.gz | |
f637f794 | 11 | # Source0-md5: 36dd153cef9481d853d09094b8daece7 |
effd5c6f | 12 | Patch0: %{name}-REXML.patch |
87173cb3 | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | An HTML/XHTML template library for Ruby | |
17 | ||
18 | %prep | |
19 | %setup -q | |
effd5c6f | 20 | %patch0 -p1 |
87173cb3 | 21 | |
22 | %build | |
f637f794 | 23 | ruby install.rb config --site-ruby=%{ruby_rubylibdir} --so-dir=%{ruby_archdir} |
24 | ruby install.rb setup | |
865e3353 | 25 | rdoc lib docs |
87173cb3 | 26 | |
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | ||
f637f794 | 30 | ruby install.rb install --prefix=$RPM_BUILD_ROOT |
87173cb3 | 31 | |
32 | %files | |
33 | %defattr(644,root,root,755) | |
865e3353 | 34 | %doc doc/ |
87173cb3 | 35 | %attr(755,root,root) %{_bindir}/ams |
36 | %attr(755,root,root) %{_bindir}/amx | |
37 | %attr(755,root,root) %{_bindir}/amshandler | |
f637f794 | 38 | %dir %{ruby_rubylibdir}/amrita |
39 | %{ruby_rubylibdir}/amrita/*.rb | |
40 | %attr(755,root,root) %{ruby_archdir}/amrita_accel.so | |
41 | ||
87173cb3 | 42 | |
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT |