6 Group: Development/Languages
7 Source0: http://rubyforge.org/frs/download.php/67118/rbtree-%{version}.tar.gz
8 # Source0-md5: 1bb99fba5b15bcfeaae75271c3c60043
9 URL: http://raa.ruby-lang.org/project/ruby-rbtree/
10 BuildRequires: rpm-rubyprov
11 BuildRequires: rpmbuild(macros) >= 1.665
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 RBTree is a sorted associative collection that is implemented with
16 Red-Black Tree. The elements of RBTree are ordered and its interface
17 is the almost same as Hash, so simply you can consider RBTree sorted
21 %setup -qn rbtree-%{version}
24 %{__ruby} extconf.rb \
29 LDFLAGS="%{rpmldflags}" \
30 CFLAGS="%{rpmcflags} -fPIC"
33 rm -rf $RPM_BUILD_ROOT
34 %{__make} -j1 install \
35 DESTDIR=$RPM_BUILD_ROOT
38 rm -rf $RPM_BUILD_ROOT
41 %defattr(644,root,root,755)
42 %doc ChangeLog LICENSE README test.rb
43 %attr(755,root,root) %{ruby_vendorarchdir}/rbtree.so