/
ruby-dbi.spec
60 lines (45 loc) · 1.58 KB
/
ruby-dbi.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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.