Browse Source

* ruby-bdb: rebuild with db4-4.8.x; spec fix

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5943 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 years ago
parent
commit
ef6b1ffa17
1 changed files with 10 additions and 10 deletions
  1. 10 10
      r/ruby-bdb/ruby-bdb-vl.spec

+ 10 - 10
r/ruby-bdb/ruby-bdb-vl.spec

@@ -4,14 +4,15 @@ Summary: Ruby binding for Berkeley DB
 Summary(ja): Berkeley DB の Ruby バインディング
 Name: ruby-%{srcname}
 Version: 0.6.5
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 Source0: ftp://moulon.inra.fr/pub/ruby/%{srcname}-%{version}.tar.gz
 License: GPL
 Group: Development/Libraries
 URL: http://moulon.inra.fr/ruby/bdb.html
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: ruby ruby-devel db4-devel
+BuildRequires: ruby ruby-devel
+BuildRequires: db4-devel >= 4.8
 Requires: ruby
 
 Vendor: Project Vine
@@ -30,20 +31,16 @@ Ruby に Berkeley DB ライブラリへのインタフェースを提供する
 %setup -q -n %{srcname}-%{version}
 
 %build
-%{ruby} extconf.rb
+%{ruby} extconf.rb --with-db-version="-4.8 48"
 %{__make}
 %{__make} test
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%ifarch x86_64
-%{__make} install sitedir=$RPM_BUILD_ROOT%{_libdir}/ruby
-%else
-%{__make} install sitedir=$RPM_BUILD_ROOT/usr/lib/ruby
-%endif
+rm -rf %{buildroot}
+%makeinstall sitearchdir=%{buildroot}%{rarchdir}
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %files
@@ -53,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.5-2
+- rebuild with db4-4.8.x; spec fix
+
 * Tue Oct 14 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.5-1
 - new upstream release
 - built with db-4.6.21