]> git.pld-linux.org Git - SPECS.git/blob - ruby-wxruby2.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / ruby-wxruby2.spec
1 #
2 %define _pnam   wxruby2
3 %define _rel    0.2
4 %define _cvs    20051218
5 #
6 Summary:        Ruby bindings for wxWidgets
7 Summary(pl.UTF-8):      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:  rpmbuild(macros) >= 1.277
21 BuildRequires:  ruby-devel
22 BuildRequires:  wxWidgets-devel >= 2.6.2
23 %{?ruby_mod_ver_requires_eq}
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Ruby bindings for wxWidgets.
28
29 %description -l pl.UTF-8
30 Wiązania Ruby dla wxWidgets.
31
32 %package examples
33 Summary:        Ruby bindings for wxWidgets examples
34 Summary(pl.UTF-8):      Przykłady do wiązań języka Ruby do wxWidgets
35 Group:          X11/Libraries
36
37 %description examples
38 Ruby bindings for wxWidgets examples.
39
40 %description examples -l pl.UTF-8
41 Wiązania Ruby dla wxWidgets - przykłady.
42
43 %prep
44 %setup -q -n %{_pnam}
45 #patch0 -p1
46 %patch1 -p1
47 %patch2 -p1
48
49 %build
50 CXXFLAGS="%{rpmcxxflags}" rake
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 # `rake install' is broken - puts both wx.rb and wxruby2.so in ruby_sitearchdir
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install -d $RPM_BUILD_ROOT{%{ruby_sitelibdir},%{ruby_sitearchdir}}
58
59 install lib/wx.rb $RPM_BUILD_ROOT%{ruby_sitelibdir}
60 install lib/wxruby2.so $RPM_BUILD_ROOT%{ruby_sitearchdir}
61
62 cp -R samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc Changelog LICENSE README TODO
70 %{ruby_sitelibdir}/*.rb
71 %attr(755,root,root) %{ruby_sitearchdir}/*.so
72
73 %files examples
74 %defattr(644,root,root,755)
75 %{_examplesdir}/%{name}-%{version}
This page took 2.40439 seconds and 3 git commands to generate.