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