Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (45 sloc) 1.58 KB
# norootforbuild
%define mod_name dbi
%define rb_ver 1.8
Name: ruby-dbi
Version: 0.1.1
Release: 3
License: BSD
Group: Development/Languages/Ruby
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ruby ruby-devel
URL: http://rubyforge.org/projects/ruby-dbi
Source: http://rubyforge.org/frs/download.php/12368/dbi-0.1.1.tar.gz
Patch: dbi-0.1.0_install.patch
Summary: Ruby/DBI develops a database independent interface for accessing databases - similar to Perl's DBI
%description
Ruby/DBI develops a database independent interface for accessing databases - similar to Perl's DBI
%prep
%setup -n ruby-dbi
%patch
%build
ruby setup.rb config \
--rb-dir=%{_libdir}/ruby/%{rb_ver} \
--without="dbd_sybase,dbd_sqlite" \
--with="dbi,dbd_proxy,dbd_mysql,dbd_pg,dbd_frontbase,dbd_db2,dbd_oracle,dbd_odbc,dbd_ado,dbd_msql,dbd_interbase,dbd_sqlrelay"
ruby setup.rb setup
%install
DESTDIR="%{buildroot}" ruby setup.rb install
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/proxyserver.rb
%{_bindir}/sqlsh.rb
%{_libdir}/ruby/%{rb_ver}/DBD/
%{_libdir}/ruby/%{rb_ver}/dbi/
%{_libdir}/ruby/%{rb_ver}/dbi.rb
%doc README LICENSE ChangeLog doc/*
%doc examples/ test/
%changelog
* Mon Jul 18 2011 Douglas Hubler <dhubler@ezuce.com> - dbi-3
- Make arch dependent as %{libdir} varies from by arch and that is where files get installed, correctly or not.
* Tue Nov 15 2006 Damian Krzeminski <damian@pingtel.com> - dbi-2
- Install in ruby lib directory and not in site_ruby directory.
* Tue Nov 14 2006 Douglas Hubler <dhubler@penguin.pingtel.com> - dbi-1
- Initial build.
Jump to Line
Something went wrong with that request. Please try again.