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: https://sourceforge.net/projects/ncurses-ruby.berlios/files/%{pkgname}-ruby-%{version}.tar.bz2
10 # Source0-md5: 63fd3d09a51cdd745e1ed37f85621ea2
11 Patch0: %{name}-utf8.patch
12 Patch1: format-security.patch
13 Patch2: ruby-ncurses-fix-missing-tz-prototypes.patch
14 URL: https://sourceforge.net/projects/ncurses-ruby.berlios/
15 BuildRequires: ncurses-devel
16 BuildRequires: rpm-rubyprov
17 BuildRequires: rpmbuild(macros) >= 1.665
18 BuildRequires: ruby-devel
19 Provides: ruby-Ncurses
20 Obsoletes: ruby-Ncurses
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This ruby extension makes most functions, constants, and external
25 variables of the C library ncurses accessible from the Ruby
28 All C functions are wrapped by module functions of a the module
29 "Ncurses", with exactly the same name. Additionally, C functions
30 expecting a WINDOW* as their first argument can also be called as
31 methods of the "Ncurses::WINDOW" class.
33 %description -l pl.UTF-8
34 Rozszerzenie do ruby, które umożliwia dostęp do większość funkcji,
35 stałych i zewnętrznych zmiennych biblioteki ncurses z poziomu języka
38 Wszystkie funkcje C są dostępne poprzez funkcje modułu "Ncurses" pod
39 dokładnie tymi samymi nazwami. Dodatkowo funkcje, które spodziewają
40 się mieć WINDOW* jako ich pierwszy argument mogą być także wywoływane
41 jako metody klasy "Ncurses::WINDOW".
44 Summary: HTML documentation for %{pkgname}
45 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
47 Requires: ruby >= 1:1.8.7-4
50 HTML documentation for %{pkgname}.
52 %description rdoc -l pl.UTF-8
53 Dokumentacja w formacie HTML dla %{pkgname}.
56 Summary: ri documentation for %{pkgname}
57 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
62 ri documentation for %{pkgname}.
64 %description ri -l pl.UTF-8
65 Dokumentacji w formacie ri dla %{pkgname}.
68 %setup -q -n %{pkgname}-ruby-%{version}
79 CFLAGS="%{rpmcflags} -I/usr/include/ncursesw -fPIC"
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_rdocdir}}
90 %{__make} -j1 install \
91 DESTDIR=$RPM_BUILD_ROOT
93 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
94 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
97 rm -rf $RPM_BUILD_ROOT
100 %defattr(644,root,root,755)
102 %{ruby_vendorlibdir}/ncurses.rb
103 %{ruby_vendorlibdir}/ncurses_sugar.rb
104 %attr(755,root,root) %{ruby_vendorarchdir}/ncurses_bin.so
107 %defattr(644,root,root,755)
108 %{ruby_rdocdir}/%{name}-%{version}
111 %defattr(644,root,root,755)
112 %{ruby_ridir}/Ncurses