SPECS: ruby-bdb.spec (NEW) - added

aredridel aredridel at pld-linux.org
Sun Jul 3 20:52:08 CEST 2005


Author: aredridel                    Date: Sun Jul  3 18:52:08 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

---- Files affected:
SPECS:
   ruby-bdb.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ruby-bdb.spec
diff -u /dev/null SPECS/ruby-bdb.spec:1.1
--- /dev/null	Sun Jul  3 20:52:08 2005
+++ SPECS/ruby-bdb.spec	Sun Jul  3 20:52:03 2005
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+%define		ruby_archdir	%(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
+%define		ruby_rubylibdir	%(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+%define		ruby_ridir	%(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")')
+%define		ruby_version	%(ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
+
+%define		tarname		bdb
+
+Summary:	An interface to Berkeley DB and DB/XML
+Name:		ruby-bdb
+Version:	0.5.6
+Release:	1
+License:	Ruby-alike
+Group:		Development/Languages
+Source0:	ftp://moulon.inra.fr/pub/ruby/bdb.tar.gz
+# Source0-md5:	b3b4fed73d7639f71e995e37a9f2a6bd
+URL:		http://moulon.inra.fr/ruby/bdb.html
+BuildRequires:	db-devel
+BuildRequires:	make
+BuildRequires:	ruby-devel
+Requires:	ruby
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+An interface to Berkeley DB and DB/XML.
+
+%prep
+%setup -q -n %{tarname}-%{version}
+
+%build
+ruby extconf.rb
+make
+
+rdoc --ri --op ri src 
+rdoc --op rdoc src
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{_examplesdir}/%{name}}
+
+%{__make} install \
+	archdir=$RPM_BUILD_ROOT%{ruby_archdir} \
+	sitearchdir=$RPM_BUILD_ROOT%{ruby_archdir}
+
+cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%attr(755,root,root) %{ruby_archdir}/*.so
+%{ruby_ridir}/BDB*
+%{_examplesdir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/07/03 18:52:03  aredridel
+- added
+
================================================================



More information about the pld-cvs-commit mailing list