]>
Commit | Line | Data |
---|---|---|
aa85ce87 | 1 | # |
2 | %define _pnam wxruby2 | |
3 | %define _rel 0.1 | |
4 | %define _cvs 20051218 | |
5 | # | |
6 | Summary: Ruby bindings for wxWidgets | |
7 | Name: ruby-%{_pnam} | |
8 | Version: 0.3.0 | |
9 | Release: 0.%{_cvs}.%{_rel} | |
10 | License: distributable | |
11 | Group: X11/Libraries | |
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/ | |
18 | BuildRequires: rake | |
19 | BuildRequires: ruby | |
20 | BuildRequires: wxWidgets-devel >= 2.6.2 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Ruby bindings for wxWidgets. | |
25 | ||
26 | %package examples | |
27 | Summary: Ruby bindings for wxWidgets examples | |
28 | Group: X11/Libraries | |
29 | ||
30 | %description examples | |
31 | Ruby bindings for wxWidgets examples. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{_pnam} | |
35 | #patch0 -p1 | |
36 | %patch1 -p1 | |
37 | %patch2 -p1 | |
38 | ||
39 | %build | |
40 | CXXFLAGS="%{rpmcxxflags}" rake | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
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}} | |
48 | ||
49 | install lib/wx.rb $RPM_BUILD_ROOT%{ruby_sitelibdir} | |
50 | install lib/wxruby2.so $RPM_BUILD_ROOT%{ruby_sitearchdir} | |
51 | ||
52 | cp -R samples/* $RPM_BUILD_ROOT/%{_examplesdir}/%{name}-%{version} | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changelog LICENSE README TODO | |
60 | %{ruby_sitelibdir}/* | |
61 | %{ruby_sitearchdir}/* | |
62 | ||
63 | %files examples | |
64 | %defattr(644,root,root,755) | |
65 | %{_examplesdir}/%{name}-%{version} |