%define rname log4r %define name ruby-%{rname} %define version 1.0.5 %define release %mkrel 7 Summary: Powerful Logging Library for Ruby Name: %{name} Version: %{version} Release: %{release} URL: http://log4r.sourceforge.net/ Source0: http://ovh.dl.sourceforge.net/sourceforge/%{rname}/%{rname}-%{version}.tar.bz2 License: GPL Group: Development/Ruby BuildRoot: %{_tmppath}/%{name}-buildroot Requires: ruby BuildRequires: ruby BuildArch: noarch %description Log4r is a comprehensive and flexible logging library written in Ruby for use in Ruby programs. It features a hierarchical logging system of any number of levels, custom level names, logger inheritance, multiple output destinations, execution tracing, custom formatting, thread safteyness, XML and YAML configuration, and more. %prep %setup -q -n %{rname}-%{version} sed -i "s|CONFIG\[\"sitelibdir\"\]|\"%{buildroot}\"+CONFIG[\"sitelibdir\"]|" install.rb %build %clean rm -rf %buildroot %install rm -rf %buildroot ruby install.rb %files %defattr(-,root,root) %{ruby_sitelibdir}/log4r* %doc INSTALL LICENSE README changelog doc examples tests %changelog * Sat Aug 02 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.5-7mdv2009.0 + Revision: 260429 - rebuild * Mon Jul 28 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.5-6mdv2009.0 + Revision: 251709 - rebuild * Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 1.0.5-4mdv2008.1 + Revision: 140755 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sun Apr 22 2007 Pascal Terjan <pterjan@mandriva.org> 1.0.5-4mdv2008.0 + Revision: 16898 - Use Development/Ruby group - Use std macros - Use mkrel * Tue May 03 2005 Pascal Terjan <pterjan@mandriva.org> 1.0.5-3mdk - fix lib64 * Mon Apr 04 2005 Pascal Terjan <pterjan@mandrake.org> 1.0.5-2mdk - BuildRequires ruby * Mon Jan 12 2004 Pascal Terjan <pterjan@mandrake.org> 1.0.5-1mdk - first mdk release