SPECS: ruby-DBD-SQLite3.spec (NEW) - added

aredridel aredridel at pld-linux.org
Sat Sep 9 03:26:21 CEST 2006


Author: aredridel                    Date: Sat Sep  9 01:26:21 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

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

---- Diffs:

================================================================
Index: SPECS/ruby-DBD-SQLite3.spec
diff -u /dev/null SPECS/ruby-DBD-SQLite3.spec:1.1
--- /dev/null	Sat Sep  9 03:26:21 2006
+++ SPECS/ruby-DBD-SQLite3.spec	Sat Sep  9 03:26:15 2006
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	rdoc		# build with rdoc
+%bcond_with	ri		# build with ri
+#
+Summary:	SQLite3 Database Driver for Ruby.
+Name:		ruby-DBD-SQLite3
+Version:	0.1.1
+Release:	1
+License:	GPL
+Group:		Development/Languages
+Source0:	http://www.jmuk.org/prog/dbd_sqlite3.tar.gz
+# Source0-md5:	875c25ea58acf7630d4c22e3f14bb242
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	ruby-devel >= 1:1.8.4-5
+BuildRequires:	sqlite3-devel
+bUILDrEQuires:	setup.rb = 3.3.1
+Requires:	ruby-sqlite3
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SQLite3 Database Driver for Ruby.
+
+%prep
+%setup -q -n ruby-dbi-all
+cp %{_datadir}/setup.rb .
+mkdir lib/DBD
+mv lib/dbd_sqlite3 lib/DBD/SQLite3
+
+%build
+ruby setup.rb config \
+	--prefix=$RPM_BUILD_ROOT \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+%if %{with rdoc}
+rdoc -o rdoc lib 
+%endif
+%if %{with ri}
+rdoc --ri --op ri lib 
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+ruby setup.rb install --prefix=$RPM_BUILD_ROOT
+
+%if %{with ri}
+cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc 
+%if %{with rdoc}
+%doc rdoc
+%endif
+%{ruby_rubylibdir}/DBD/*
+%if %{with ri}
+%{ruby_ridir}/DBD/*
+%endif
+
+%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  2006/09/09 01:26:15  aredridel
+- added
+
================================================================


More information about the pld-cvs-commit mailing list