[packages/ruby-rubytree] Up to 2.2.0

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


commit 61398dadd49d97860d5e388c22f7340f94760cd4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 21 00:46:37 2026 +0100

    Up to 2.2.0

 ruby-rubytree.spec | 57 +++++++++++++++++++++++++++++-------------------------
 1 file changed, 31 insertions(+), 26 deletions(-)
---
diff --git a/ruby-rubytree.spec b/ruby-rubytree.spec
index 9168a08..ba8a3d4 100644
--- a/ruby-rubytree.spec
+++ b/ruby-rubytree.spec
@@ -1,55 +1,53 @@
 %define pkgname rubytree
-Summary:	Ruby implementation of the generic tree data structure
+Summary:	A generic tree data structure implementation for Ruby
 Name:		ruby-%{pkgname}
-Version:	0.6.2
-Release:	4
-License:	MIT/Ruby License
-Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
-# Source0-md5:	04acabb6a1da7271a1505cecbea507cf
+Version:	2.2.0
+Release:	1
+License:	BSD
 Group:		Development/Languages
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	4446c9adcb46c73c79dbb320870210f3
 URL:		http://rubytree.rubyforge.org/
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.665
+BuildRequires:	ruby-devel
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-RubyTree is a Ruby implementation of the generic tree data structure.
-It provides a node-based model to store keyed node-elements in the
-tree and simple APIs to access, modify and traverse the structure.
-RubyTree is node-centric, where individual nodes on the tree are the
-primary compositional and structural elements. This implementation
-also mixes in the Enumerable module to allow standard access to the
-tree as a collection.
+RubyTree is a generic tree data structure implementation for the Ruby
+programming language.
 
 %package rdoc
-Summary:	HTML documentation for %{pkgname}
-Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Summary:	HTML documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{name}
 Group:		Documentation
-Requires:	ruby >= 1:1.8.7-4
+Requires:	%{name} = %{version}-%{release}
 
 %description rdoc
-HTML documentation for %{pkgname}.
+HTML documentation for %{name}.
 
 %description rdoc -l pl.UTF-8
-Dokumentacja w formacie HTML dla %{pkgname}.
+Dokumentacja w formacie HTML dla %{name}.
 
 %package ri
-Summary:	ri documentation for %{pkgname}
-Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{pkgname}
+Summary:	ri documentation for %{name}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{name}
 Group:		Documentation
-Requires:	ruby
+Requires:	%{name} = %{version}-%{release}
 
 %description ri
-ri documentation for %{pkgname}.
+ri documentation for %{name}.
 
 %description ri -l pl.UTF-8
-Dokumentacji w formacie ri dla %{pkgname}.
+Dokumentacji w formacie ri dla %{name}.
 
 %prep
-%setup -q
+%setup -q -n %{pkgname}-%{version}
 
 %build
+%__gem_helper spec
+
 rdoc --ri --op ri lib
 rdoc --op rdoc lib
 rm ri/created.rid
@@ -57,20 +55,27 @@ rm ri/cache.ri
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{ruby_ridir},%{ruby_rdocdir},%{_examplesdir}/%{name}-%{version}}
 
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+find $RPM_BUILD_ROOT%{ruby_vendorlibdir} -type f -name "*.rb" | xargs sed -i -e '1s,/usr/bin/env ruby,%{__ruby},'
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -type f -name "*.rb" | xargs sed -i -e '1s,/usr/bin/env ruby,%{__ruby},'
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog History.txt README TODO
+%doc LICENSE.md README.md History.md
+%{ruby_vendorlibdir}/rubytree.rb
 %{ruby_vendorlibdir}/tree.rb
 %{ruby_vendorlibdir}/tree
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
+%{_examplesdir}/%{name}-%{version}
 
 %files rdoc
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-rubytree.git/commitdiff/61398dadd49d97860d5e388c22f7340f94760cd4



More information about the pld-cvs-commit mailing list