1 | %define ruby /usr/bin/ruby |
---|
2 | %define rbindir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["bindir"]') |
---|
3 | %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') |
---|
4 | %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]') |
---|
5 | |
---|
6 | Summary: A Textile library for Ruby |
---|
7 | Summary(ja): RubyのためのTextileライブラリ |
---|
8 | Name: RedCloth |
---|
9 | Version: 3.0.4 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | License: BSD |
---|
12 | Group: System Environment/Libraries |
---|
13 | Source: http://rubyforge.org/frs/download.php/6064/RedCloth-3.0.4.tar.gz |
---|
14 | Patch1: RedCloth-3.0.4-ri-data-install.patch |
---|
15 | Patch2: RedCloth-3.0.4-fix-shebang.patch |
---|
16 | URL: http://rubyforge.org/projects/redcloth/ |
---|
17 | BuildArch: noarch |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | BuildPreReq: ruby ruby-devel rdoc |
---|
20 | Requires: ruby |
---|
21 | |
---|
22 | %description |
---|
23 | RedCloth is a library for using Textile in Ruby. Textile is a text |
---|
24 | format. A very simple text format. Another stab at making readable |
---|
25 | text that can be converted to HTML. |
---|
26 | |
---|
27 | %description -l ja |
---|
28 | RedClothはRubyでテキストフォーマットの一種であるTextileを使うためのラ |
---|
29 | イブラリです。これはとてもシンプルなフォーマットであり、HTML形式に変換 |
---|
30 | することができます。 |
---|
31 | |
---|
32 | %prep |
---|
33 | |
---|
34 | %setup -q |
---|
35 | |
---|
36 | %patch1 -p1 |
---|
37 | %patch2 -p1 |
---|
38 | |
---|
39 | %build |
---|
40 | %{ruby} setup.rb config --rbdir=\$stdruby |
---|
41 | %{ruby} setup.rb setup |
---|
42 | |
---|
43 | cd doc |
---|
44 | %{ruby} make.rb README > ../README.html |
---|
45 | %{ruby} make.rb QUICK-REFERENCE > ../QUICK-REFERENCE.html |
---|
46 | %{ruby} make.rb REFERENCE > ../REFERENCE.html |
---|
47 | |
---|
48 | cd .. |
---|
49 | |
---|
50 | %install |
---|
51 | rm -rf ${RPM_BUILD_ROOT} |
---|
52 | mkdir -p ${RPM_BUILD_ROOT}%{rbindir} |
---|
53 | mkdir -p ${RPM_BUILD_ROOT}%{rlibdir} |
---|
54 | |
---|
55 | %{ruby} setup.rb install --prefix=${RPM_BUILD_ROOT} |
---|
56 | |
---|
57 | %clean |
---|
58 | rm -rf ${RPM_BUILD_ROOT} |
---|
59 | rm README.html QUICK-REFERENCE.html REFERENCE.html |
---|
60 | |
---|
61 | %files |
---|
62 | %defattr(-, root, root) |
---|
63 | %doc doc/CHANGELOG |
---|
64 | %doc doc/README |
---|
65 | %doc doc/REFERENCE |
---|
66 | %{_bindir}/* |
---|
67 | %{rlibdir}/* |
---|
68 | %{_datadir}/ri/*/*/RedCloth/* |
---|
69 | |
---|
70 | %changelog |
---|
71 | * Sun Oct 05 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.4-1vl5 |
---|
72 | - applied new versioning policy, spec in utf-8 |
---|
73 | |
---|
74 | * Mon Mar 19 2007 akira yamada <akira@vinelinux.org> 3.0.4-0vl1 |
---|
75 | - initial packaging. |
---|
76 | |
---|