1 | %define ruby_archdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["archdir"]') |
---|
2 | |
---|
3 | Summary: An interpreter of embedded Ruby language |
---|
4 | Summary(ja): テキスト埋め込みの Ruby 言語インタプリタ |
---|
5 | Name: eruby |
---|
6 | Version: 1.0.5 |
---|
7 | Release: 5%{?_dist_release} |
---|
8 | # eruby is GPLv2+ |
---|
9 | # liberuby is LGPLv2+ |
---|
10 | License: GPLv2+ and LGPLv2+ |
---|
11 | Group: Development/Languages |
---|
12 | Source0: http://www.modruby.net/archive/%{name}-%{version}.tar.gz |
---|
13 | Patch0: patch-aa-git |
---|
14 | Patch1: eruby-fix-build.patch |
---|
15 | Patch2: eruby-1.0.5-ruby19.patch |
---|
16 | URL: http://www.modruby.net/ |
---|
17 | Prefix: /usr |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | BuildRequires: ruby, ruby-devel >= 1.9 |
---|
20 | |
---|
21 | |
---|
22 | %description |
---|
23 | eRuby interprets a Ruby code embedded text file. For example, eRuby |
---|
24 | enables you to embed a Ruby code to a HTML file. |
---|
25 | |
---|
26 | %description -l ja |
---|
27 | eRubyはRubyのコードが埋めこまれたテキストファイルを解釈実行します.た |
---|
28 | とえば,eRubyを使えば,HTMLにRubyのコードをHTMLファイルに埋めこむこと |
---|
29 | ができます. |
---|
30 | |
---|
31 | |
---|
32 | %package -n liberuby |
---|
33 | Summary: Library for eruby |
---|
34 | Summary(ja): eruby 用ライブラリ |
---|
35 | Group: System Environment/Libraries |
---|
36 | Requires: libruby >= 1.8.0 |
---|
37 | |
---|
38 | %description -n liberuby |
---|
39 | This package includes library for eruby. |
---|
40 | |
---|
41 | %description -n liberuby -l ja |
---|
42 | eruby に必要なライブラリです。 |
---|
43 | |
---|
44 | |
---|
45 | %package -n liberuby-devel |
---|
46 | Summary: A eRuby development environment. |
---|
47 | Summary(ja): eRuby 開発環境 |
---|
48 | Group: Development/Libraries |
---|
49 | Requires: liberuby = %{version} |
---|
50 | Obsoletes: eruby-devel |
---|
51 | |
---|
52 | %description -n liberuby-devel |
---|
53 | Header files and libraries for an application embedded ERuby. |
---|
54 | |
---|
55 | %description -n liberuby-devel -l ja |
---|
56 | ERubyを組み込んだアプリケーションを作るために必要となるへッダファイルや |
---|
57 | ライブラリです. |
---|
58 | |
---|
59 | |
---|
60 | %prep |
---|
61 | %setup -q |
---|
62 | %patch0 -p1 -b .git |
---|
63 | %patch1 -p1 -b .0-build |
---|
64 | %patch2 -p1 -b .ruby19 |
---|
65 | |
---|
66 | %build |
---|
67 | ruby configure.rb --enable-shared |
---|
68 | make |
---|
69 | |
---|
70 | %install |
---|
71 | rm -rf %{buildroot} |
---|
72 | mkdir -p %{buildroot}%{_bindir} |
---|
73 | mkdir -p %{buildroot}%{_libdir} |
---|
74 | mkdir -p %{buildroot}%{_datadir} |
---|
75 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
76 | mkdir -p %{buildroot}%{_includedir} |
---|
77 | mkdir -p %{buildroot}%{ruby_vendorarchdir} |
---|
78 | |
---|
79 | # installing binaries ... |
---|
80 | make install DESTDIR=$RPM_BUILD_ROOT RUBY=ruby rubyarchdir=$RPM_BUILD_ROOT%{ruby_archdir} |
---|
81 | |
---|
82 | # remove the unnecessary files |
---|
83 | rm %{buildroot}%{_libdir}/*.a |
---|
84 | |
---|
85 | # change permissions |
---|
86 | find %{buildroot}%{_libdir} -name '*.so*' | xargs chmod 0755 |
---|
87 | |
---|
88 | # workaround for not working site-install properly |
---|
89 | mv $RPM_BUILD_ROOT%{ruby_archdir}/eruby.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}/ |
---|
90 | |
---|
91 | %clean |
---|
92 | rm -rf %{buildroot} |
---|
93 | |
---|
94 | |
---|
95 | %post -p /sbin/ldconfig -n liberuby |
---|
96 | |
---|
97 | |
---|
98 | %postun -p /sbin/ldconfig -n liberuby |
---|
99 | |
---|
100 | |
---|
101 | %files -n eruby |
---|
102 | %defattr(-, root, root) |
---|
103 | %{rbindir}/%{name} |
---|
104 | %{_mandir}/man1/%{name}.1* |
---|
105 | %doc COPYING GPL LGPL |
---|
106 | %doc README* ChangeLog examples |
---|
107 | |
---|
108 | |
---|
109 | %files -n liberuby |
---|
110 | %defattr(-, root, root) |
---|
111 | %{_libdir}/lib%{name}.so.* |
---|
112 | %{ruby_vendorarchdir}/%{name}* |
---|
113 | |
---|
114 | |
---|
115 | %files -n liberuby-devel |
---|
116 | %defattr(-, root, root) |
---|
117 | %{_libdir}/lib%{name}.so |
---|
118 | %{_includedir}/%{name}*.h |
---|
119 | |
---|
120 | |
---|
121 | %changelog |
---|
122 | * Fri Sep 11 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 2.0.5-5 |
---|
123 | - rebuild with ruby-2.2.3 |
---|
124 | |
---|
125 | * Sat Jul 12 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.0.5-4 |
---|
126 | - rebuild with ruby-2.1.2 |
---|
127 | |
---|
128 | * Fri Oct 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-3 |
---|
129 | - rebuild with ruby-1.9.3 |
---|
130 | - add patches from FreeBSD/fedora |
---|
131 | |
---|
132 | * Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.5-2 |
---|
133 | - rebuild; spec revamp; remove *.a file |
---|
134 | |
---|
135 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1vl5 |
---|
136 | - applied new versioning policy, spec in utf-8 |
---|
137 | |
---|
138 | * Mon Sep 18 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-0vl3 |
---|
139 | - changed liberuby Group to System Environment/Libraries |
---|
140 | - changed liberuby-devel Group to Development/Libraries |
---|
141 | |
---|
142 | * Sat Jul 29 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.5-0vl2 |
---|
143 | - s/Copyright/License/ |
---|
144 | - added "libdir=${RPM_BUILD_ROOT}%{_libdir}" to make install option |
---|
145 | |
---|
146 | * Tue Dec 30 2003 akira yamada <akira@vinelinux.org> 1.0.5-0vl1 |
---|
147 | - new upstream version. |
---|
148 | |
---|
149 | * Mon Oct 06 2003 akira yamada <akira@vinelinux.org> 1.0.4-0vl1 |
---|
150 | - new upstream version. |
---|
151 | - build with ruby-1.8.0. |
---|
152 | |
---|
153 | * Mon Jul 21 2003 IWAI Masaharu <iwai@alib.jp> 1.0.3-0vl1 |
---|
154 | - new upstream version. |
---|
155 | |
---|
156 | * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl2 |
---|
157 | - updated URL of upstream sources. |
---|
158 | |
---|
159 | * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl1 |
---|
160 | - new upstream version. |
---|
161 | |
---|
162 | * Wed Aug 08 2001 akira yamada <akira@vinelinux.org> 0.9.7-0vl1 |
---|
163 | - new upstream version. |
---|
164 | |
---|
165 | * Wed Aug 08 2001 akira yamada <akira@vinelinux.org> |
---|
166 | - 0.9.6-0vl1 |
---|
167 | - new upstream version 0.9.6. |
---|
168 | |
---|
169 | * Thu Jul 26 2001 akira yamada <akira@vinelinux.org> |
---|
170 | - rebuild with ruby-devel-1.6.4-0vl3. |
---|
171 | |
---|
172 | * Mon Jun 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
173 | - 0.9.5-0vl2 |
---|
174 | - added "Obsoletes: eruby-devel" for liberuby-devel |
---|
175 | |
---|
176 | * Thu Jun 21 2001 akira yamada <akira@vinelinux.org> |
---|
177 | - Updated to upstream version 0.9.5. |
---|
178 | - eruby -> eruby + liberuby |
---|
179 | - eruby-devel -> liberuby-devel |
---|
180 | |
---|
181 | * Mon Jun 07 2001 akira yamada <akira@vinelinux.org> |
---|
182 | - Updated to upstream version 0.9.4. |
---|
183 | |
---|
184 | * Mon Jun 04 2001 akira yamada <akira@vinelinux.org> |
---|
185 | - Updated to upstream version 0.9.3. |
---|
186 | |
---|
187 | * Thu Oct 19 2000 akira yamada <akira@vinelinux.org> |
---|
188 | - Updated to upstream version 0.1.2. |
---|
189 | |
---|
190 | * Thu Sep 27 2000 akira yamada <akira@vinelinux.org> |
---|
191 | - Updated to upstream version 0.1.1 |
---|
192 | - New binary package: eruby-devel |
---|
193 | - Removed eruby.c.O_EXCL.patch (fixed at 0.1.1) |
---|
194 | |
---|
195 | * Tue Aug 29 2000 akira yamada <akira@vinelinux.org> |
---|
196 | - Updated to upstream version 0.0.9 |
---|
197 | - Added eruby.c.O_EXCL.patch |
---|
198 | |
---|
199 | * Tue Jun 22 2000 akira yamada <akira@redhat.com> |
---|
200 | - Initial packaging. |
---|