1 %define tarname ncurses-ruby
2 Summary: Ruby interface to Ncurses
3 Summary(pl.UTF-8): Interfejs Ncurses dla Ruby
8 Group: Development/Languages
9 Source0: http://download.berlios.de/%{tarname}/%{tarname}-%{version}.tar.bz2
10 # Source0-md5: 8a3e0ed33ac245241b6afd911520c205
11 Patch0: %{name}-utf8.patch
12 URL: http://ncurses-ruby.berlios.de/
13 BuildRequires: rpmbuild(macros) >= 1.277
14 BuildRequires: ruby-devel >= 1:1.8.4-5
15 %{?ruby_mod_ver_requires_eq}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 This ruby extension makes most functions, constants, and external
20 variables of the C library ncurses accessible from the Ruby
23 All C functions are wrapped by module functions of a the module
24 "Ncurses", with exactly the same name. Additionally, C functions
25 expecting a WINDOW* as their first argument can also be called as
26 methods of the "Ncurses::WINDOW" class.
28 %description -l pl.UTF-8
29 Rozszerzenie do ruby, które umożliwia dostęp do większość funkcji,
30 stałych i zewnętrznych zmiennych biblioteki ncurses z poziomu języka
33 Wszystkie funkcje C są dostępne poprzez funkcje modułu "Ncurses" pod
34 dokładnie tymi samymi nazwami. Dodatkowo funkcje, które spodziewają
35 się mieć WINDOW* jako ich pierwszy argument mogą być także wywoływane
36 jako metody klasy "Ncurses::WINDOW".
39 %setup -q -n %{tarname}-%{version}
47 CFLAGS="%{rpmcflags} -I/usr/include/ncursesw -fPIC"
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{ruby_ridir}
56 %{__make} -j1 install \
57 DESTDIR=$RPM_BUILD_ROOT
59 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{ruby_sitelibdir}/*.rb
68 %attr(755,root,root) %{ruby_sitearchdir}/*.so