%define rname libxml %define name ruby-%{rname} %define version 0.3.4 %define release 2mdk 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 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} 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 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