Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 4911cd09dc5c9e240452e9a32d385d67 > files > 3

ruby-libxml-0.3.4-4mdv2008.1.src.rpm

%define rname libxml
%define name ruby-%{rname}
%define version 0.3.4
%define release %mkrel 4

Summary:	Ruby boindings for libxml2
Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://raa.ruby-lang.org/project/libxml/
Source0:	http://www.rubynet.org/modules/xml/libxml/%{rname}-%{version}.tar.bz2
Patch0:		ruby-libxml-gcc4.patch
License:	BSD-like
Group:		Development/Ruby
BuildRoot:	%{_tmppath}/%{name}-buildroot
Requires:	ruby >= 1.8
BuildRequires:	ruby-devel libxml2-devel

%description
ruby-libxml provies a clean and fast Ruby interface into the libxml2
library. Can write XML documents and has a friendly interface for
performing XPath queries.

%prep
%setup -q -n %{rname}-%{version}
%patch0 -p0
perl -pi -e "s/, 'atan'//" extconf.rb

%build
ruby extconf.rb
make
# Some tests are failing
# In tests/tc_xml_parser_context.rb :
# The answer is 42 not 17 (I have to understand the question)
#for i in tests/*.rb ; do
#	ruby -rlibxml -rtest/unit $i 
#done

%install
rm -rf %buildroot
%makeinstall

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%{ruby_sitearchdir}/xml
%doc LICENSE README TODO tests



%changelog
* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 0.3.4-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> 0.3.4-4mdv2008.0
+ Revision: 16811
- Use mkrel
- Use Development/Ruby group
- Use std macros


* Thu Dec 22 2005 Pascal Terjan <pterjan@mandrake.org> 0.3.4-3mdk
- fix compilation with gcc4

* Thu Mar 31 2005 Pascal Terjan <pterjan@mandrake.org> 0.3.4-2mdk
- lib64 fix

* Fri Feb 04 2005 Pascal Terjan <pterjan@mandrake.org> 0.3.4-1mdk
- First package