6 Summary: Ruby bindings for wxWidgets
9 Release: 0.%{_cvs}.%{_rel}
10 License: distributable
12 Source0: http://twittner.host.sk/files/wxruby2/%{_pnam}-%{version}-cvs-%{_cvs}.tar.gz
13 # Source0-md5: a994011d0da5c684891c61664068df56
14 #Patch0: %{name}-DESTDIR.patch # not used for now
15 Patch1: %{name}-wx-config.patch
16 Patch2: %{name}-FLAGS.patch
17 URL: http://wxruby.rubyforge.org/
20 BuildRequires: wxWidgets-devel >= 2.6.2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Ruby bindings for wxWidgets.
27 Summary: Ruby bindings for wxWidgets examples
31 Ruby bindings for wxWidgets examples.
40 CXXFLAGS="%{rpmcxxflags}" rake
43 rm -rf $RPM_BUILD_ROOT
45 # `rake install' is broken - puts both wx.rb and wxruby2.so in ruby_sitearchdir
46 install -d $RPM_BUILD_ROOT/%{_examplesdir}/%{name}-%{version}
47 install -d $RPM_BUILD_ROOT{%{ruby_sitelibdir},%{ruby_sitearchdir}}
49 install lib/wx.rb $RPM_BUILD_ROOT%{ruby_sitelibdir}
50 install lib/wxruby2.so $RPM_BUILD_ROOT%{ruby_sitearchdir}
52 cp -R samples/* $RPM_BUILD_ROOT/%{_examplesdir}/%{name}-%{version}
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc Changelog LICENSE README TODO
64 %defattr(644,root,root,755)
65 %{_examplesdir}/%{name}-%{version}