1 %define pkgname ncurses
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/ncurses-ruby/%{pkgname}-ruby-%{version}.tar.bz2
10 # Source0-md5: 8a3e0ed33ac245241b6afd911520c205
11 Patch0: %{name}-utf8.patch
12 URL: http://ncurses-ruby.berlios.de/
13 BuildRequires: ncurses-devel
14 BuildRequires: rpmbuild(macros) >= 1.277
15 BuildRequires: ruby-devel >= 1:1.8.4-5
16 %{?ruby_mod_ver_requires_eq}
17 Provides: ruby-Ncurses
18 Obsoletes: ruby-Ncurses
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This ruby extension makes most functions, constants, and external
23 variables of the C library ncurses accessible from the Ruby
26 All C functions are wrapped by module functions of a the module
27 "Ncurses", with exactly the same name. Additionally, C functions
28 expecting a WINDOW* as their first argument can also be called as
29 methods of the "Ncurses::WINDOW" class.
31 %description -l pl.UTF-8
32 Rozszerzenie do ruby, które umożliwia dostęp do większość funkcji,
33 stałych i zewnętrznych zmiennych biblioteki ncurses z poziomu języka
36 Wszystkie funkcje C są dostępne poprzez funkcje modułu "Ncurses" pod
37 dokładnie tymi samymi nazwami. Dodatkowo funkcje, które spodziewają
38 się mieć WINDOW* jako ich pierwszy argument mogą być także wywoływane
39 jako metody klasy "Ncurses::WINDOW".
42 Summary: HTML documentation for %{pkgname}
43 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
45 Requires: ruby >= 1:1.8.7-4
48 HTML documentation for %{pkgname}.
50 %description rdoc -l pl.UTF-8
51 Dokumentacja w formacie HTML dla %{pkgname}.
54 Summary: ri documentation for %{pkgname}
55 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
60 ri documentation for %{pkgname}.
62 %description ri -l pl.UTF-8
63 Dokumentacji w formacie ri dla %{pkgname}.
66 %setup -q -n %{pkgname}-ruby-%{version}
74 CFLAGS="%{rpmcflags} -I/usr/include/ncursesw -fPIC"
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_rdocdir}}
84 %{__make} -j1 install \
85 DESTDIR=$RPM_BUILD_ROOT
87 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
88 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
96 %{ruby_sitelibdir}/*.rb
97 %attr(755,root,root) %{ruby_sitearchdir}/*.so
100 %defattr(644,root,root,755)
101 %{ruby_rdocdir}/%{name}-%{version}
104 %defattr(644,root,root,755)
105 %{ruby_ridir}/Ncurses