blob: b35434363e8852c5112dd7a384a231dba4d5eb6b (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
Name: ruby-postgres
Version: 0.7.9
Release: 2010.01.28.2%{?dist}
Summary: A Ruby interface for the PostgreSQL database engine
Group: Development/Languages
# Source says that ruby-gems-postgres is distributable under the same
# terms as ruby.
License: Ruby
URL: http://bitbucket.org/ged/ruby-pg/
Source: http://bitbucket.org/ged/ruby-pg/downloads/%{name}-%{version}.2008.01.28.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
Patch1: 0001-Implement-trace.patch
Patch2: 0002-Implement-notifies.patch
Patch3: 0003-Implement-print.patch
Requires: ruby >= 1.3
Requires: ruby(abi) = 1.8
BuildRequires: ruby >= 1.3
BuildRequires: postgresql-devel >= 6.5
BuildRequires: ruby-devel
Provides: ruby(postgres) = %{version}
%description
Database driver to access PostgreSQL databases from Ruby.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
chmod a-x sample/psql.rb
%build
cd ext
ruby extconf.rb --with-cflags="$RPM_OPT_FLAGS"
make
%install
cd ext
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot} install
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc ChangeLog README README.ja doc sample
%{ruby_sitearch}/postgres.so
%changelog
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2010.01.28.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.9-2009.01.28.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Sep 08 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.2
- Add patch to implement trace support (from upstream ruby-pg project)
- Add patch to implement print support (from older 0.7.1 sources)
- Add patch to implement notifies call (from older 0.7.1 sources)
* Fri Aug 13 2010 Chris Lalancette <clalance@redhat.com> - 0.7.9.2008.01.28.1
- Update to ruby-postgres .7.9.2008.01.28
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-10
- apply patch properly
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.7.1-9
- fix license tag
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.7.1-8
- Autorebuild for GCC 4.3
* Wed Aug 22 2007 David Lutterkort <dlutter@redhat.com> - 0.7.1-7
- Rebuild for F8 buildid
* Fri Dec 8 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-6
- Rebuild against PostgreSQL 8.2.0
* Wed Sep 13 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-5
- Rebuilt for FC6
- Remove _smp_mflags from make install
* Wed Aug 2 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-4
- Fix CFLAGS
- Add id to buildroot path
* Tue Jul 11 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-3
- Bring in accordance with packaging guidelines
- Changed license from 'Distributable' to 'Ruby License'
* Mon Jun 5 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-2
- Clean build root for install
* Wed May 24 2006 David Lutterkort <dlutter@redhat.com> - 0.7.1-1
- Initial build
|