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: 63fd3d09a51cdd745e1ed37f85621ea2
11 Patch0: %{name}-utf8.patch
12 Patch1: format-security.patch
13 URL: http://ncurses-ruby.berlios.de/
14 BuildRequires: ncurses-devel
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.665
17 BuildRequires: ruby-devel
18 Provides: ruby-Ncurses
19 Obsoletes: ruby-Ncurses
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This ruby extension makes most functions, constants, and external
24 variables of the C library ncurses accessible from the Ruby
27 All C functions are wrapped by module functions of a the module
28 "Ncurses", with exactly the same name. Additionally, C functions
29 expecting a WINDOW* as their first argument can also be called as
30 methods of the "Ncurses::WINDOW" class.
32 %description -l pl.UTF-8
33 Rozszerzenie do ruby, które umożliwia dostęp do większość funkcji,
34 stałych i zewnętrznych zmiennych biblioteki ncurses z poziomu języka
37 Wszystkie funkcje C są dostępne poprzez funkcje modułu "Ncurses" pod
38 dokładnie tymi samymi nazwami. Dodatkowo funkcje, które spodziewają
39 się mieć WINDOW* jako ich pierwszy argument mogą być także wywoływane
40 jako metody klasy "Ncurses::WINDOW".
43 Summary: HTML documentation for %{pkgname}
44 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
46 Requires: ruby >= 1:1.8.7-4
49 HTML documentation for %{pkgname}.
51 %description rdoc -l pl.UTF-8
52 Dokumentacja w formacie HTML dla %{pkgname}.
55 Summary: ri documentation for %{pkgname}
56 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
61 ri documentation for %{pkgname}.
63 %description ri -l pl.UTF-8
64 Dokumentacji w formacie ri dla %{pkgname}.
67 %setup -q -n %{pkgname}-ruby-%{version}
77 CFLAGS="%{rpmcflags} -I/usr/include/ncursesw -fPIC"
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_rdocdir}}
88 %{__make} -j1 install \
89 DESTDIR=$RPM_BUILD_ROOT
91 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
92 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)
100 %{ruby_vendorlibdir}/ncurses.rb
101 %{ruby_vendorlibdir}/ncurses_sugar.rb
102 %attr(755,root,root) %{ruby_vendorarchdir}/ncurses_bin.so
105 %defattr(644,root,root,755)
106 %{ruby_rdocdir}/%{name}-%{version}
109 %defattr(644,root,root,755)
110 %{ruby_ridir}/Ncurses