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