SPECS: ruby-OrderedHash.spec (NEW) - added

aredridel aredridel at pld-linux.org
Thu Nov 10 04:10:39 CET 2005


Author: aredridel                    Date: Thu Nov 10 03:10:39 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

---- Files affected:
SPECS:
   ruby-OrderedHash.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ruby-OrderedHash.spec
diff -u /dev/null SPECS/ruby-OrderedHash.spec:1.1
--- /dev/null	Thu Nov 10 04:10:39 2005
+++ SPECS/ruby-OrderedHash.spec	Thu Nov 10 04:10:34 2005
@@ -0,0 +1,54 @@
+# $Revision$, $Date$
+%define	ruby_archdir	%(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
+%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+%define	ruby_ridir	%(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")')
+Summary:	Ordered Hash for Ruby
+Name:		ruby-OrderedHash
+Version:	1.2005.8.16
+Release:	1
+License:	GPL
+Group:		Development/Languages
+Source0:	http://simplypowerful.1984.cz/orderedhash/%{version}/orderedhash.tgz
+# Source0-md5:	eac01684b6fb3c4c56a69e8acfebb704
+URL:	http://simplypowerful.1984.cz/orderedhash/1.2005.8.16/doc/
+BuildRequires:	ruby
+BuildRequires:	ruby-devel
+Requires:	ruby
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hash with preserved order (like Array in php)
+
+%prep
+%setup -q -c
+
+%build
+rdoc -o rdoc *.rb
+rdoc --ri -o ri *.rb
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
+
+cp -a *.rb $RPM_BUILD_ROOT/%{ruby_rubylibdir}
+cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc/*
+%{ruby_rubylibdir}/*.rb
+%{ruby_ridir}/*
+
+%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  2005/11/10 03:10:34  aredridel
+- added
+
================================================================



More information about the pld-cvs-commit mailing list