File ruby-mysql.spec of Package ruby-mysql
#
# spec file for package ruby-mysql (Version 2.8.1)
#
# Copyright (c) 2010 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: ruby-mysql
Version: 2.8.1
Release: 1
#
License: Other uncritical OpenSource License
Group: Development/Languages/Ruby
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mysql-devel ruby-devel
%define rb_pkg mysql-ruby
#
Url: http://www.tmtm.org/en/mysql/ruby/
Source: http://tmtm.org/downloads/mysql/ruby/%{rb_pkg}-%{version}.tar.gz
Patch: ruby-mysql-2.8.1_gcc4.patch
Source1: ruby-mysql-2.7.3_gcc4.patch
#
Summary: MySQL bindings for Ruby
%description
This is the MySQL API module for Ruby. It provides the same functions
for Ruby programs that the MySQL C API provides for C programs.
%prep
%setup -n %{rb_pkg}-%{version}
%patch
%build
ruby -rvendor-specific extconf.rb --with-mysql-config
%{__make}
%install
%makeinstall
%clean
%{__rm} -rf %{buildroot};
%files
%defattr(-,root,root)
%doc README* COPYING* *css test.rb
%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/mysql.so
%changelog