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: cb99721b492995bb3548b700b6e86fe2
11 URL: http://ncurses-ruby.berlios.de/
12 BuildRequires: rpmbuild(macros) >= 1.277
13 BuildRequires: ruby-devel >= 1:1.8.4-5
14 %{?ruby_mod_ver_requires_eq}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This ruby extension makes most functions, constants, and external
19 variables of the C library ncurses accessible from the Ruby
22 All C functions are wrapped by module functions of a the module
23 "Ncurses", with exactly the same name. Additionally, C functions
24 expecting a WINDOW* as their first argument can also be called as
25 methods of the "Ncurses::WINDOW" class.
27 %description -l pl.UTF-8
28 Rozszerzenie do ruby, które umożliwia dostęp do większość funkcji,
29 stałych i zewnętrznych zmiennych biblioteki ncurses z poziomu języka
32 Wszystkie funkcje C są dostępne poprzez funkcje modułu "Ncurses" pod
33 dokładnie tymi samymi nazwami. Dodatkowo funkcje, które spodziewają
34 się mieć WINDOW* jako ich pierwszy argument mogą być także wywoływane
35 jako metody klasy "Ncurses::WINDOW".
38 %setup -q -n %{tarname}-%{version}
45 CFLAGS="%{rpmcflags} -fPIC"
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_archdir}}
54 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
55 cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
56 install ncurses.so $RPM_BUILD_ROOT%{ruby_archdir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{ruby_rubylibdir}/*.rb
65 %attr(755,root,root) %{ruby_archdir}/*.so