Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > db2275fa6eeb26fa06a1f2b05f25113b > files > 3

ruby-libxml-0.3.4-3mdk.src.rpm

%define rname libxml
%define name ruby-%{rname}
%define version 0.3.4
%define release 3mdk

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.bz2
License:	BSD-like
Group:		Development/Other
BuildRoot:	%{_tmppath}/%{name}-buildroot
Requires:	ruby >= 1.8
BuildRequires:	ruby-devel libxml2-devel

%define ruby_libdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
%define ruby_archdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')

%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_archdir}/xml
%doc LICENSE README TODO tests

%changelog
* 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