]>
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 |
87173cb3 | 6 | Release: 1 |
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 | |
87173cb3 | 25 | |
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
28 | ||
f637f794 | 29 | ruby install.rb install --prefix=$RPM_BUILD_ROOT |
87173cb3 | 30 | |
31 | %files | |
32 | %defattr(644,root,root,755) | |
87173cb3 | 33 | %attr(755,root,root) %{_bindir}/ams |
34 | %attr(755,root,root) %{_bindir}/amx | |
35 | %attr(755,root,root) %{_bindir}/amshandler | |
f637f794 | 36 | %dir %{ruby_rubylibdir}/amrita |
37 | %{ruby_rubylibdir}/amrita/*.rb | |
38 | %attr(755,root,root) %{ruby_archdir}/amrita_accel.so | |
39 | ||
87173cb3 | 40 | |
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT |