SPECS: ruby-DBI.spec - up to 0.1.0

aredridel aredridel at pld-linux.org
Wed Mar 15 02:02:16 CET 2006


Author: aredridel                    Date: Wed Mar 15 01:02:16 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.1.0

---- Files affected:
SPECS:
   ruby-DBI.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/ruby-DBI.spec
diff -u SPECS/ruby-DBI.spec:1.16 SPECS/ruby-DBI.spec:1.17
--- SPECS/ruby-DBI.spec:1.16	Fri Mar  3 00:55:41 2006
+++ SPECS/ruby-DBI.spec	Wed Mar 15 02:02:10 2006
@@ -1,14 +1,19 @@
 # $Revision$, $Date$
-%define tarname ruby-dbi
+#
+# Conditional build:
+%bcond_without	rdoc		# build with rdoc
+%bcond_with	ri		# build with ri
+#
+%define tarname dbi
 Summary:	Database Interface for Ruby
 Summary(pl):	Interfejs do baz danych dla języka Ruby
 Name:		ruby-DBI
-Version:	0.0.23
+Version:	0.1.0
 Release:	1
 License:	GPL
 Group:		Development/Languages
-Source0:	http://rubyforge.org/frs/download.php/655/%{tarname}-all-%{version}.tar.gz
-# Source0-md5:	7a713494d84bd4f5b877496970bcf13c
+Source0:	http://rubyforge.org/frs/download.php/8655/%{tarname}-%{version}.tar.gz
+# Source0-md5:	3622f0f0f7eb10ff863ee020083176a2
 Patch0:		%{name}-prefix.patch
 BuildRequires:	mysql-ruby
 BuildRequires:	rpmbuild(macros) >= 1.277
@@ -78,10 +83,10 @@
 Sterownik bazy danych SQLite dla języka Ruby.
 
 %prep
-%setup -q -n %{tarname}-all
+%setup -q -n %{tarname}-%{version}
 %patch0 -p1
 
-find lib -type d -name 'test*' | xargs rm -r -v
+#find lib -type d -name 'test*' | xargs rm -r -v
 
 %build
 # dbd_sybase requires TDS API update
@@ -93,22 +98,32 @@
 
 ruby setup.rb setup
 
+%if %{with rdoc}
 rdoc -o rdoc lib ext
-rdoc --ri --op ri lib lib/dbd_*/*
+%endif
+%if %{with ri}
+rdoc --ri --op ri lib ext
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir},%{_examplesdir}/%{name}-%{version}}
 ruby setup.rb install
 
+%if %{with ri}
 cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+%endif
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README* rdoc
+%doc README* 
+%if %{with rdoc}
+%doc rdoc
+%endif
 %attr(755,root,root) %{_bindir}/proxyserver.rb
 %attr(755,root,root) %{_bindir}/sqlsh.rb
 %dir %{ruby_rubylibdir}/DBD
@@ -117,9 +132,12 @@
 %{ruby_rubylibdir}/DBD/SQLRelay
 %{ruby_rubylibdir}/dbi.rb
 %{ruby_rubylibdir}/dbi
+%if %{with ri}
 %{ruby_ridir}/DBI
 %{ruby_ridir}/ColumnInfo
 #%{ruby_ridir}/OCIError/cdesc-OCIError.yaml
+%endif
+%{_examplesdir}/%{name}-%{version}
 
 %files -n ruby-DBD-Mysql
 %defattr(644,root,root,755)
@@ -144,6 +162,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2006/03/15 01:02:10  aredridel
+- up to 0.1.0
+
 Revision 1.16  2006/03/02 23:55:41  aredridel
 - up to 0.0.23
 - s/DataBase/Database/
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ruby-DBI.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list