File eruby.spec of Package eruby

#
# spec file for package eruby (Version 1.0.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           eruby
BuildRequires:  ruby-devel
Version:        1.0.5
Release:        225
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Development/Languages/Ruby
License:        GPL v2 or later
Url:            http://www.modruby.net/en/index.rbx/eruby/whatis.html
Source:         http://www.modruby.net/archive/%{name}-%{version}.tar.gz
Patch:          eruby-1.0.5_configure.patch
Summary:        eruby is an implementation of eRuby by C

%description
eRuby is a language to embed Ruby codes into text files. For example,
you can embed Ruby codes into HTML files.



%package devel
License:        GPL v2 or later
Group:          Development/Languages/Ruby
Requires:       %{name} = %{version}
Summary:        eruby is an implementation of eRuby by C

%description devel
eRuby is a language to embed Ruby codes into text files. For example,
you can embed Ruby codes into HTML files.



%prep
%setup -q
%patch

%build
ruby configure.rb --enable-shared
%{__make}
export LD_LIBRARY_PATH="$PWD"
export RUBYLIB="$PWD"
pushd examples
    ruby test.rb test.rhtml
popd

%install
%makeinstall
%{__rm} -v %{buildroot}%{_libdir}/liberuby.a

%clean
%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_bindir}/eruby
%{_libdir}/liberuby.so.1.0
%{_libdir}/liberuby.so.1.0.5
%{_libdir}/ruby/%{rb_ver}/%{rb_arch}/eruby.so
%{_mandir}/man1/eruby.1.gz
%doc README* examples/ eruby_logo.png ChangeLog COPYING

%files devel
%defattr(-,root,root,-)
%{_includedir}/eruby.h
%{_libdir}/liberuby.so

%changelog
* Tue Sep 09 2008 mrueckert@suse.de
- fix build with 1.8.7
- drop static library
* Thu Dec 27 2007 crrodriguez@suse.de
- fix library-without-ldconfig-* errors
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 08 2006 mrueckert@suse.de
- Initial package of version 1.0.5
openSUSE Build Service is sponsored by