]>
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} |
15c1c239 | 5 | Version: 1.3.1 |
20505e95 | 6 | Release: 3 |
1b7cc4fb | 7 | License: Ruby-alike |
8 | Group: Development/Languages | |
9af4dce7 | 9 | Source0: http://download.berlios.de/ncurses-ruby/%{pkgname}-ruby-%{version}.tar.bz2 |
15c1c239 | 10 | # Source0-md5: 63fd3d09a51cdd745e1ed37f85621ea2 |
b9afdc5e | 11 | Patch0: %{name}-utf8.patch |
5c7c04b5 | 12 | Patch1: format-security.patch |
1b7cc4fb | 13 | URL: http://ncurses-ruby.berlios.de/ |
f40e049e | 14 | BuildRequires: ncurses-devel |
5c7c04b5 ER |
15 | BuildRequires: rpm-rubyprov |
16 | BuildRequires: rpmbuild(macros) >= 1.665 | |
015837af | 17 | BuildRequires: ruby-devel |
d3ce6bfc | 18 | Provides: ruby-Ncurses |
f40e049e | 19 | Obsoletes: ruby-Ncurses |
1b7cc4fb | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
1d713168 JB |
23 | This ruby extension makes most functions, constants, and external |
24 | variables of the C library ncurses accessible from the Ruby | |
25 | programming language. | |
1b7cc4fb | 26 | |
1d713168 JB |
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 | |
f91b6521 | 30 | methods of the "Ncurses::WINDOW" class. |
1b7cc4fb | 31 | |
dcb8124d JR |
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 | |
1d713168 | 35 | Ruby. |
ebc0dab0 | 36 | |
dcb8124d JR |
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 | |
1d713168 | 40 | jako metody klasy "Ncurses::WINDOW". |
ebc0dab0 | 41 | |
a1aea011 JR |
42 | %package rdoc |
43 | Summary: HTML documentation for %{pkgname} | |
44 | Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname} | |
45 | Group: Documentation | |
46 | Requires: ruby >= 1:1.8.7-4 | |
47 | ||
48 | %description rdoc | |
49 | HTML documentation for %{pkgname}. | |
50 | ||
51 | %description rdoc -l pl.UTF-8 | |
52 | Dokumentacja w formacie HTML dla %{pkgname}. | |
53 | ||
54 | %package ri | |
55 | Summary: ri documentation for %{pkgname} | |
56 | Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname} | |
57 | Group: Documentation | |
58 | Requires: ruby | |
59 | ||
60 | %description ri | |
61 | ri documentation for %{pkgname}. | |
62 | ||
63 | %description ri -l pl.UTF-8 | |
64 | Dokumentacji w formacie ri dla %{pkgname}. | |
65 | ||
1b7cc4fb | 66 | %prep |
9af4dce7 | 67 | %setup -q -n %{pkgname}-ruby-%{version} |
b9afdc5e | 68 | %patch0 -p1 |
5c7c04b5 | 69 | %patch1 -p1 |
1b7cc4fb | 70 | |
71 | %build | |
15c1c239 ER |
72 | ruby extconf.rb \ |
73 | --vendor | |
1b7cc4fb | 74 | |
75 | %{__make} \ | |
76 | CC="%{__cc}" \ | |
f2a0ac38 | 77 | CFLAGS="%{rpmcflags} -I/usr/include/ncursesw -fPIC" |
1b7cc4fb | 78 | |
79 | rdoc --ri --op ri lib | |
80 | rdoc --op rdoc lib | |
15c1c239 ER |
81 | rm ri/created.rid |
82 | rm ri/cache.ri | |
1b7cc4fb | 83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
a1aea011 | 86 | install -d $RPM_BUILD_ROOT{%{ruby_ridir},%{ruby_rdocdir}} |
1b7cc4fb | 87 | |
be0010d5 | 88 | %{__make} -j1 install \ |
f2a0ac38 AF |
89 | DESTDIR=$RPM_BUILD_ROOT |
90 | ||
20384a89 | 91 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} |
a1aea011 | 92 | cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version} |
1b7cc4fb | 93 | |
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
a1aea011 | 99 | %doc README |
15c1c239 ER |
100 | %{ruby_vendorlibdir}/ncurses.rb |
101 | %{ruby_vendorlibdir}/ncurses_sugar.rb | |
102 | %attr(755,root,root) %{ruby_vendorarchdir}/ncurses_bin.so | |
a1aea011 JR |
103 | |
104 | %files rdoc | |
105 | %defattr(644,root,root,755) | |
106 | %{ruby_rdocdir}/%{name}-%{version} | |
107 | ||
108 | %files ri | |
109 | %defattr(644,root,root,755) | |
1b7cc4fb | 110 | %{ruby_ridir}/Ncurses |