Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 0a9c178b1dba122ebf9ef840aad31f9d > files > 3

ruby-libxml-0.3.4-4mdv2008.0.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
* 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

  + Mandriva <devel@mandriva.com>


* 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