[packages/ruby-logger] new, version 1.2.8
glen
glen at pld-linux.org
Thu Apr 25 22:02:13 CEST 2013
commit 5066a3bb253a29604da7c3ca3b4da195d4da6d9b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Apr 25 23:01:33 2013 +0300
new, version 1.2.8
created with gem2rpm
ruby-logger.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
---
diff --git a/ruby-logger.spec b/ruby-logger.spec
new file mode 100644
index 0000000..2d4ba6a
--- /dev/null
+++ b/ruby-logger.spec
@@ -0,0 +1,42 @@
+# TODO
+# - how to make the gem note appear correct here?
+%define pkgname logger
+Summary: Simple logging utility
+Name: ruby-%{pkgname}
+Version: 1.2.8
+Release: 1
+License: Ruby's
+Group: Development/Languages
+Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 3ad9ecc459edd25d972a0a3b52110f79
+URL: http://github.com/nahi/logger
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Logger class provides a simple but sophisticated logging utility
+that anyone can use because it's included in the Ruby 1.8.x standard
+library.
+
+CAUTION: logger is bundled with ruby/1.8 and 1.9 so when you simply do
+'require "logger"' in your lib/app, stock logger.rb is used. You need
+to declare to use the gem version of logger by 'gem "logger"; require
+"logger"' instead.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{ruby_vendorlibdir}/%{pkgname}.rb
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-logger.git/commitdiff/5066a3bb253a29604da7c3ca3b4da195d4da6d9b
More information about the pld-cvs-commit
mailing list