SPECS: ruby-evas.spec - vastly simplified build, the author was no...
aredridel
aredridel at pld-linux.org
Sun Jul 10 03:16:15 CEST 2005
Author: aredridel Date: Sun Jul 10 01:16:15 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- vastly simplified build, the author was not insane
---- Files affected:
SPECS:
ruby-evas.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/ruby-evas.spec
diff -u SPECS/ruby-evas.spec:1.2 SPECS/ruby-evas.spec:1.3
--- SPECS/ruby-evas.spec:1.2 Sun Jul 10 02:19:40 2005
+++ SPECS/ruby-evas.spec Sun Jul 10 03:16:09 2005
@@ -15,40 +15,31 @@
BuildRequires: ruby
BuildRequires: ruby-devel
BuildRequires: evas-devel
-#BuildRequires: setup.rb = 3.3.1
Requires: ruby
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Ruby binding to the Evas library.
+%package devel
+Summary: Header files for ruby-evas
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+Header files for ruby-evas.
+
%prep
%setup -q -n ruby-evas
-cp %{_datadir}/setup.rb .
-mkdir ext
-mv src ext/evas
-ls ext/evas/*.c > ext/evas/MANIFEST
-cat > ext/evas/extconf.rb <<EOF
-require 'mkmf'
-have_library('evas', 'evas_list_append') or exit 1
-create_makefile('evas', '.')
-EOF
%build
-ruby setup.rb config \
- --rbdir=%{ruby_rubylibdir} \
- --sodir=%{ruby_archdir}
-ruby setup.rb setup
-
-#rdoc --op rdoc ext
-#rdoc --ri --op ri ext
+rake
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
-ruby setup.rb install \
- --prefix=$RPM_BUILD_ROOT
+DESTDIR=$RPM_BUILD_ROOT RUBYARCHDIR=%{ruby_archdir} rake install
%clean
rm -rf $RPM_BUILD_ROOT
@@ -57,12 +48,18 @@
%defattr(644,root,root,755)
%{ruby_archdir}/evas.so
+%files devel
+%{ruby_archdir}/evas
+
%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.3 2005/07/10 01:16:09 aredridel
+- vastly simplified build, the author was not insane
+
Revision 1.2 2005/07/10 00:19:40 aredridel
- move hacks to %prep
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ruby-evas.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list