packages: ruby-rubytree/ruby-rubytree.spec (NEW) - initial revision

baggins baggins at pld-linux.org
Tue Mar 2 23:56:24 CET 2010


Author: baggins                      Date: Tue Mar  2 22:56:24 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/ruby-rubytree:
   ruby-rubytree.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ruby-rubytree/ruby-rubytree.spec
diff -u /dev/null packages/ruby-rubytree/ruby-rubytree.spec:1.1
--- /dev/null	Tue Mar  2 23:56:24 2010
+++ packages/ruby-rubytree/ruby-rubytree.spec	Tue Mar  2 23:56:19 2010
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+%define pkgname rubytree
+Summary:	Ruby implementation of the generic tree data structure
+Name:		ruby-%{pkgname}
+Version:	0.6.2
+Release:	1
+License:	MIT/Ruby License
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	04acabb6a1da7271a1505cecbea507cf
+Group:		Development/Languages
+URL:		http://rubytree.rubyforge.org/
+BuildRequires:	rpmbuild(macros) >= 1.484
+BuildRequires:	ruby >= 1:1.8.6
+BuildRequires:	ruby-modules
+%{?ruby_mod_ver_requires_eq}
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# nothing to be placed there. we're not noarch only because of ruby packaging
+%define		_enable_debug_packages	0
+
+%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.
+
+%package rdoc
+Summary:	HTML documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+HTML documentation for %{pkgname}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{pkgname}.
+
+%package ri
+Summary:	ri documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{pkgname}
+Group:		Documentation
+Requires:	ruby
+
+%description ri
+ri documentation for %{pkgname}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{pkgname}.
+
+%prep
+%setup -q -c
+%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+find -newer README -o -print | xargs touch --reference %{SOURCE0}
+
+%build
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+# rm -r ri/NOT_THIS_MODULE_RELATED_DIRS
+rm ri/created.rid
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
+
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+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 ChangeLog History.txt README TODO
+%{ruby_rubylibdir}/tree.rb
+%{ruby_rubylibdir}/tree
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/Tree
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/03/02 22:56:19  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list