6 Summary: Ruby bindings for wxWidgets
7 Summary(pl): Wi±zania Ruby dla wxWidgets
10 Release: 0.%{_cvs}.%{_rel}
11 License: distributable
13 Source0: http://twittner.host.sk/files/wxruby2/%{_pnam}-%{version}-cvs-%{_cvs}.tar.gz
14 # Source0-md5: a994011d0da5c684891c61664068df56
15 #Patch0: %{name}-DESTDIR.patch # not used for now
16 Patch1: %{name}-wx-config.patch
17 Patch2: %{name}-FLAGS.patch
18 URL: http://wxruby.rubyforge.org/
21 BuildRequires: wxWidgets-devel >= 2.6.2
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Ruby bindings for wxWidgets.
28 Wi±zania Ruby dla wxWidgets.
31 Summary: Ruby bindings for wxWidgets examples
35 Ruby bindings for wxWidgets examples.
37 %description examples -l pl
38 Wi±zania Ruby dla wxWidgets - przyk³ady.
47 CXXFLAGS="%{rpmcxxflags}" rake
50 rm -rf $RPM_BUILD_ROOT
52 # `rake install' is broken - puts both wx.rb and wxruby2.so in ruby_sitearchdir
53 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54 install -d $RPM_BUILD_ROOT{%{ruby_sitelibdir},%{ruby_sitearchdir}}
56 install lib/wx.rb $RPM_BUILD_ROOT%{ruby_sitelibdir}
57 install lib/wxruby2.so $RPM_BUILD_ROOT%{ruby_sitearchdir}
59 cp -R samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc Changelog LICENSE README TODO
71 %defattr(644,root,root,755)
72 %{_examplesdir}/%{name}-%{version}