]> git.pld-linux.org Git - packages/ruby-wxruby2.git/blob - ruby-wxruby2.spec
- pl, redundant slashes from paths removed
[packages/ruby-wxruby2.git] / ruby-wxruby2.spec
1 #
2 %define _pnam   wxruby2
3 %define _rel    0.1
4 %define _cvs    20051218        
5 #
6 Summary:        Ruby bindings for wxWidgets
7 Summary(pl):    Wi±zania Ruby dla wxWidgets
8 Name:           ruby-%{_pnam}
9 Version:        0.3.0
10 Release:        0.%{_cvs}.%{_rel}
11 License:        distributable
12 Group:          X11/Libraries
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/
19 BuildRequires:  rake
20 BuildRequires:  ruby
21 BuildRequires:  wxWidgets-devel >= 2.6.2
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Ruby bindings for wxWidgets.
26
27 %description -l pl
28 Wi±zania Ruby dla wxWidgets.
29
30 %package examples
31 Summary:        Ruby bindings for wxWidgets examples
32 Group:          X11/Libraries
33
34 %description examples
35 Ruby bindings for wxWidgets examples.
36
37 %description examples -l pl
38 Wi±zania Ruby dla wxWidgets - przyk³ady.
39
40 %prep
41 %setup -q -n %{_pnam}
42 #patch0 -p1
43 %patch1 -p1
44 %patch2 -p1
45
46 %build
47 CXXFLAGS="%{rpmcxxflags}" rake
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
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}}
55
56 install lib/wx.rb $RPM_BUILD_ROOT%{ruby_sitelibdir}
57 install lib/wxruby2.so $RPM_BUILD_ROOT%{ruby_sitearchdir}
58
59 cp -R samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} 
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changelog LICENSE README TODO
67 %{ruby_sitelibdir}/*
68 %{ruby_sitearchdir}/*
69
70 %files examples
71 %defattr(644,root,root,755)
72 %{_examplesdir}/%{name}-%{version}
This page took 0.066821 seconds and 3 git commands to generate.