SPECS: ruby-wxruby2.spec (NEW) - added wxruby2 cvs snap - for wxWi...

twittner twittner at pld-linux.org
Sun Dec 18 22:13:29 CET 2005


Author: twittner                     Date: Sun Dec 18 21:13:29 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added wxruby2 cvs snap - for wxWidgets-2.6.x only cvs version is
  available. Some examples work, some segfault.

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

---- Diffs:

================================================================
Index: SPECS/ruby-wxruby2.spec
diff -u /dev/null SPECS/ruby-wxruby2.spec:1.1
--- /dev/null	Sun Dec 18 22:13:29 2005
+++ SPECS/ruby-wxruby2.spec	Sun Dec 18 22:13:24 2005
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+%define	_pnam	wxruby2
+%define	_rel	0.1
+%define _cvs	20051218	
+#
+Summary:	Ruby bindings for wxWidgets
+Name:		ruby-%{_pnam}
+Version:	0.3.0
+Release:	0.%{_cvs}.%{_rel}
+License:	distributable
+Group:		X11/Libraries
+Source0:	http://twittner.host.sk/files/wxruby2/%{_pnam}-%{version}-cvs-%{_cvs}.tar.gz
+# Source0-md5:	a994011d0da5c684891c61664068df56
+#Patch0:	%{name}-DESTDIR.patch # not used for now
+Patch1:		%{name}-wx-config.patch
+Patch2:		%{name}-FLAGS.patch
+URL:		http://wxruby.rubyforge.org/
+BuildRequires:	rake
+BuildRequires:	ruby
+BuildRequires:	wxWidgets-devel >= 2.6.2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Ruby bindings for wxWidgets.
+
+%package examples
+Summary:	Ruby bindings for wxWidgets examples
+Group:		X11/Libraries
+
+%description examples
+Ruby bindings for wxWidgets examples.
+
+%prep
+%setup -q -n %{_pnam}
+#patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+%build
+CXXFLAGS="%{rpmcxxflags}" rake
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# `rake install' is broken - puts both wx.rb and wxruby2.so in ruby_sitearchdir
+install -d $RPM_BUILD_ROOT/%{_examplesdir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT{%{ruby_sitelibdir},%{ruby_sitearchdir}}
+
+install lib/wx.rb $RPM_BUILD_ROOT%{ruby_sitelibdir}
+install lib/wxruby2.so $RPM_BUILD_ROOT%{ruby_sitearchdir}
+
+cp -R samples/* $RPM_BUILD_ROOT/%{_examplesdir}/%{name}-%{version} 
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changelog LICENSE README TODO
+%{ruby_sitelibdir}/*
+%{ruby_sitearchdir}/*
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%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/12/18 21:13:24  twittner
+- added wxruby2 cvs snap - for wxWidgets-2.6.x only cvs version is
+  available. Some examples work, some segfault.
+
================================================================



More information about the pld-cvs-commit mailing list