[packages/ruby-rbtree] Up to 0.4.6

arekm arekm at pld-linux.org
Sat Mar 21 00:43:48 CET 2026


commit 0a4ba3c2ba94dda78d7d6cc529967e7ab3dc13c9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 21 00:43:35 2026 +0100

    Up to 0.4.6

 ruby-rbtree.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 55 insertions(+), 15 deletions(-)
---
diff --git a/ruby-rbtree.spec b/ruby-rbtree.spec
index 30117c2..7416449 100644
--- a/ruby-rbtree.spec
+++ b/ruby-rbtree.spec
@@ -1,22 +1,47 @@
 %define pkgname rbtree
-Summary:	Ruby/RBTree
+Summary:	A sorted associative collection for Ruby
 Name:		ruby-%{pkgname}
-Version:	0.4.2
-Release:	4
-License:	BSD
+Version:	0.4.6
+Release:	1
+License:	Multi-license
 Group:		Development/Languages
-Source0:	https://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	096e8561315e2c382405369391510b93
-URL:		http://rbtree.rubyforge.org/
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	0990fd3e720d3beeaaa871fcde8e75da
+URL:		http://www.geocities.co.jp/SiliconValley-PaloAlto/3358/ruby/rbtree/index.html
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
+BuildRequires:	ruby-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-RBTree is a sorted associative collection that is implemented with
-Red-Black Tree. The elements of RBTree are ordered and its interface
-is the almost same as Hash, so simply you can consider RBTree sorted
-Hash.
+RBTree is a sorted associative collection that is implemented with a
+red-black tree.
+
+%package rdoc
+Summary:	HTML documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description rdoc
+HTML documentation for %{name}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{name}.
+
+%package ri
+Summary:	ri documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{name}
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description ri
+ri documentation for %{name}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{name}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
@@ -27,18 +52,33 @@ Hash.
 
 %{__make} \
 	CC="%{__cc}" \
-	LDFLAGS="%{rpmldflags}" \
 	CFLAGS="%{rpmcflags} -fPIC"
 
+rdoc --ri --op ri rbtree.c
+rdoc --op rdoc rbtree.c
+rm ri/created.rid
+rm ri/cache.ri
+
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorarchdir},%{ruby_ridir},%{ruby_rdocdir}}
+install -p %{pkgname}.so $RPM_BUILD_ROOT%{ruby_vendorarchdir}
+
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE README test.rb
+%doc README
 %attr(755,root,root) %{ruby_vendorarchdir}/rbtree.so
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/RBTree
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-rbtree.git/commitdiff/0a4ba3c2ba94dda78d7d6cc529967e7ab3dc13c9



More information about the pld-cvs-commit mailing list