packages: ruby-pg/ruby-pg.spec - Package missing pg.rb - use setup.rb

aredridel aredridel at pld-linux.org
Mon Dec 13 01:06:06 CET 2010


Author: aredridel                    Date: Mon Dec 13 00:06:06 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- Package missing pg.rb
- use setup.rb

---- Files affected:
packages/ruby-pg:
   ruby-pg.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/ruby-pg/ruby-pg.spec
diff -u packages/ruby-pg/ruby-pg.spec:1.2 packages/ruby-pg/ruby-pg.spec:1.3
--- packages/ruby-pg/ruby-pg.spec:1.2	Sat Aug  7 23:48:07 2010
+++ packages/ruby-pg/ruby-pg.spec	Mon Dec 13 01:06:01 2010
@@ -6,12 +6,13 @@
 Release:	1
 License:	Ruby License
 Group:		Development/Languages
-Source0:	http://bitbucket.org/ged/%{name}/downloads/pg-%{version}.tar.gz
+Source0:	http://bitbucket.org/ged/ruby-pg/downloads/pg-%{version}.tar.gz
 # Source0-md5:	327d951a0dbc5c4d08873ff065269fa6
 URL:		http://rubyforge.org/projects/ruby-pg/
 BuildRequires:	postgresql-devel
 BuildRequires:	rpmbuild(macros) >= 1.277
 BuildRequires:	ruby-devel >= 1:1.8.4-5
+BuildRequires:	setup.rb
 %{?ruby_mod_ver_requires_eq}
 Obsoletes:	ruby-postgres
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -24,22 +25,21 @@
 
 %prep
 %setup -q -n pg-%{version}
+cp %{_datadir}/setup.rb .
 
 %build
-cd ext
-ruby extconf.rb
-%{__make} \
-	CC="%{__cc}" \
-	CFLAGS="%{rpmcflags} -fPIC"
+ruby setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{ruby_archdir}
 
-cd ext
-%{__make} install \
-	archdir=$RPM_BUILD_ROOT%{ruby_archdir} \
-	sitearchdir=$RPM_BUILD_ROOT%{ruby_archdir}
+ruby setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -47,6 +47,7 @@
 %files
 %defattr(644,root,root,755)
 %doc README*
+%{ruby_rubylibdir}/pg.rb
 %attr(755,root,root) %{ruby_archdir}/pg_ext.so
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -55,6 +56,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2010/12/13 00:06:01  aredridel
+- Package missing pg.rb
+- use setup.rb
+
 Revision 1.2  2010/08/07 21:48:07  zawadaa
 - up to 0.9.0
 - works with redmine so... STBR
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ruby-pg/ruby-pg.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list