]>
Commit | Line | Data |
---|---|---|
9af4dce7 | 1 | %define pkgname ncurses |
1b7cc4fb | 2 | Summary: Ruby interface to Ncurses |
5e811080 | 3 | Summary(pl.UTF-8): Interfejs Ncurses dla Ruby |
9af4dce7 | 4 | Name: ruby-%{pkgname} |
f2a0ac38 AF |
5 | Version: 1.2.4 |
6 | Release: 1 | |
1b7cc4fb | 7 | License: Ruby-alike |
8 | Group: Development/Languages | |
9af4dce7 | 9 | Source0: http://download.berlios.de/ncurses-ruby/%{pkgname}-ruby-%{version}.tar.bz2 |
f2a0ac38 | 10 | # Source0-md5: 8a3e0ed33ac245241b6afd911520c205 |
b9afdc5e | 11 | Patch0: %{name}-utf8.patch |
1b7cc4fb | 12 | URL: http://ncurses-ruby.berlios.de/ |
e429aa09 | 13 | BuildRequires: rpmbuild(macros) >= 1.277 |
6907a018 | 14 | BuildRequires: ruby-devel >= 1:1.8.4-5 |
2d770ed1 | 15 | %{?ruby_mod_ver_requires_eq} |
9af4dce7 | 16 | Obsoletes: ruby-Ncurses |
1b7cc4fb | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
1d713168 JB |
20 | This ruby extension makes most functions, constants, and external |
21 | variables of the C library ncurses accessible from the Ruby | |
22 | programming language. | |
1b7cc4fb | 23 | |
1d713168 JB |
24 | All C functions are wrapped by module functions of a the module |
25 | "Ncurses", with exactly the same name. Additionally, C functions | |
26 | expecting a WINDOW* as their first argument can also be called as | |
f91b6521 | 27 | methods of the "Ncurses::WINDOW" class. |
1b7cc4fb | 28 | |
dcb8124d JR |
29 | %description -l pl.UTF-8 |
30 | Rozszerzenie do ruby, które umożliwia dostęp do większość funkcji, | |
31 | stałych i zewnętrznych zmiennych biblioteki ncurses z poziomu języka | |
1d713168 | 32 | Ruby. |
ebc0dab0 | 33 | |
dcb8124d JR |
34 | Wszystkie funkcje C są dostępne poprzez funkcje modułu "Ncurses" pod |
35 | dokładnie tymi samymi nazwami. Dodatkowo funkcje, które spodziewają | |
36 | się mieć WINDOW* jako ich pierwszy argument mogą być także wywoływane | |
1d713168 | 37 | jako metody klasy "Ncurses::WINDOW". |
ebc0dab0 | 38 | |
1b7cc4fb | 39 | %prep |
9af4dce7 | 40 | %setup -q -n %{pkgname}-ruby-%{version} |
b9afdc5e | 41 | %patch0 -p1 |
1b7cc4fb | 42 | |
43 | %build | |
44 | ruby extconf.rb | |
45 | ||
46 | %{__make} \ | |
47 | CC="%{__cc}" \ | |
f2a0ac38 | 48 | CFLAGS="%{rpmcflags} -I/usr/include/ncursesw -fPIC" |
1b7cc4fb | 49 | |
50 | rdoc --ri --op ri lib | |
51 | rdoc --op rdoc lib | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
be0010d5 | 55 | install -d $RPM_BUILD_ROOT%{ruby_ridir} |
1b7cc4fb | 56 | |
be0010d5 | 57 | %{__make} -j1 install \ |
f2a0ac38 AF |
58 | DESTDIR=$RPM_BUILD_ROOT |
59 | ||
20384a89 | 60 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} |
1b7cc4fb | 61 | |
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc README rdoc | |
f2a0ac38 AF |
68 | %{ruby_sitelibdir}/*.rb |
69 | %attr(755,root,root) %{ruby_sitearchdir}/*.so | |
1b7cc4fb | 70 | %{ruby_ridir}/Ncurses |