123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- %define rbindir %(ruby -r rbconfig -e 'print Config::CONFIG["bindir"]')
- %define rlibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
- %define rarchdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
- %define rdatadir %(ruby -r rbconfig -e 'print Config::CONFIG["datadir"]')
- %define libdir %(ruby -r rbconfig -e 'print Config::CONFIG["libdir"]')
- %define incdir %(ruby -r rbconfig -e 'print Config::CONFIG["includedir"]')
- %define mandir %(ruby -r rbconfig -e 'print Config::CONFIG["mandir"]')
- Summary: An interpreter of embedded Ruby language
- Summary(ja): テキスト埋め込みの Ruby 言語インタプリタ
- Name: eruby
- Version: 1.0.5
- Release: 1%{?_dist_release}
- License: distributable
- Group: Development/Languages
- Source0: http://www.modruby.net/archive/%{name}-%{version}.tar.gz
- URL: http://www.modruby.net/
- Prefix: /usr
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: ruby, ruby-devel >= 1.8.0
- Requires: libruby >= 1.8.0, liberuby = %{version}
- %description
- eRuby interprets a Ruby code embedded text file. For example, eRuby
- enables you to embed a Ruby code to a HTML file.
- %description -l ja
- eRubyはRubyのコードが埋めこまれたテキストファイルを解釈実行します.た
- とえば,eRubyを使えば,HTMLにRubyのコードをHTMLファイルに埋めこむこと
- ができます.
- %package -n liberuby
- Summary: Library for eruby
- Summary(ja): eruby 用ライブラリ
- Group: System Environment/Libraries
- Requires: libruby >= 1.8.0
- %description -n liberuby
- This package includes library for eruby.
- %description -n liberuby -l ja
- eruby に必要なライブラリです。
- %package -n liberuby-devel
- Summary: A eRuby development environment.
- Summary(ja): eRuby 開発環境
- Group: Development/Libraries
- Requires: liberuby = %{version}
- Obsoletes: eruby-devel
- %description -n liberuby-devel
- Header files and libraries for an application embedded ERuby.
- %description -n liberuby-devel -l ja
- ERubyを組み込んだアプリケーションを作るために必要となるへッダファイルや
- ライブラリです.
- %prep
- %setup -q -c
- %build
- cd %{name}-%{version}
- ruby configure.rb --enable-shared
- make
- cd ..
- %install
- rm -rf ${RPM_BUILD_ROOT}
- mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
- mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
- mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
- mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
- # installing binaries ...
- cd %{name}-%{version}
- make install prefix=${RPM_BUILD_ROOT}%{prefix} \
- libdir=${RPM_BUILD_ROOT}%{_libdir} \
- mandir=${RPM_BUILD_ROOT}%{_mandir}
- cd ..
- %clean
- rm -rf ${RPM_BUILD_ROOT}
- %post -p /sbin/ldconfig -n liberuby
- %postun -p /sbin/ldconfig -n liberuby
- %files -n eruby
- %defattr(-, root, root)
- %{rbindir}/%{name}
- %{mandir}/man1/%{name}.1*
- %doc %{name}-%{version}/README.en
- %doc %{name}-%{version}/README.ja
- %doc %{name}-%{version}/ChangeLog
- %doc %{name}-%{version}/examples
- %files -n liberuby
- %defattr(-, root, root)
- %{libdir}/lib%{name}.so.*
- %{rarchdir}/%{name}*
- %files -n liberuby-devel
- %defattr(-, root, root)
- %{libdir}/lib%{name}.so
- %{libdir}/lib%{name}.a
- %{incdir}/%{name}*.h
- %changelog
- * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1vl5
- - applied new versioning policy, spec in utf-8
- * Mon Sep 18 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-0vl3
- - changed liberuby Group to System Environment/Libraries
- - changed liberuby-devel Group to Development/Libraries
- * Sat Jul 29 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.5-0vl2
- - s/Copyright/License/
- - added "libdir=${RPM_BUILD_ROOT}%{_libdir}" to make install option
- * Tue Dec 30 2003 akira yamada <akira@vinelinux.org> 1.0.5-0vl1
- - new upstream version.
- * Mon Oct 06 2003 akira yamada <akira@vinelinux.org> 1.0.4-0vl1
- - new upstream version.
- - build with ruby-1.8.0.
- * Mon Jul 21 2003 IWAI Masaharu <iwai@alib.jp> 1.0.3-0vl1
- - new upstream version.
- * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl2
- - updated URL of upstream sources.
- * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl1
- - new upstream version.
- * Wed Aug 08 2001 akira yamada <akira@vinelinux.org> 0.9.7-0vl1
- - new upstream version.
- * Wed Aug 08 2001 akira yamada <akira@vinelinux.org>
- - 0.9.6-0vl1
- - new upstream version 0.9.6.
- * Thu Jul 26 2001 akira yamada <akira@vinelinux.org>
- - rebuild with ruby-devel-1.6.4-0vl3.
- * Mon Jun 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
- - 0.9.5-0vl2
- - added "Obsoletes: eruby-devel" for liberuby-devel
- * Thu Jun 21 2001 akira yamada <akira@vinelinux.org>
- - Updated to upstream version 0.9.5.
- - eruby -> eruby + liberuby
- - eruby-devel -> liberuby-devel
- * Mon Jun 07 2001 akira yamada <akira@vinelinux.org>
- - Updated to upstream version 0.9.4.
- * Mon Jun 04 2001 akira yamada <akira@vinelinux.org>
- - Updated to upstream version 0.9.3.
- * Thu Oct 19 2000 akira yamada <akira@vinelinux.org>
- - Updated to upstream version 0.1.2.
- * Thu Sep 27 2000 akira yamada <akira@vinelinux.org>
- - Updated to upstream version 0.1.1
- - New binary package: eruby-devel
- - Removed eruby.c.O_EXCL.patch (fixed at 0.1.1)
- * Tue Aug 29 2000 akira yamada <akira@vinelinux.org>
- - Updated to upstream version 0.0.9
- - Added eruby.c.O_EXCL.patch
- * Tue Jun 22 2000 akira yamada <akira@redhat.com>
- - Initial packaging.
|