From: Elan Ruusamäe Date: Sat, 17 Oct 2015 08:40:13 +0000 (+0300) Subject: add tests, trivial load test for now X-Git-Tag: auto/th/ruby-hpricot-0.8.6-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=997220a1605f45733aa0828441946446d827177c;p=packages%2Fruby-hpricot.git add tests, trivial load test for now dies with errors for now: $ ruby -Ilib -Iext/fast_xs -Iext/hpricot_scan -r hpricot -e 1 ruby-hpricot-0.8.2/lib/hpricot/builder.rb:2:in `require': ruby-hpricot-0.8.2/ext/fast_xs/fast_xs.so: undefined symbol: ruby_digitmap - ruby-hpricot-0.8.2/ext/fast_xs/fast_xs.so (LoadError) from ruby-hpricot-0.8.2/lib/hpricot/builder.rb:2:in `' from ruby-hpricot-0.8.2/lib/hpricot.rb:26:in `require' from ruby-hpricot-0.8.2/lib/hpricot.rb:26:in `' from -e:1:in `require' --- diff --git a/ruby-hpricot.spec b/ruby-hpricot.spec index 8157328..0b2cfc8 100644 --- a/ruby-hpricot.spec +++ b/ruby-hpricot.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_without tests # build without tests + Summary: A fast and easy HTML parser Summary(pl.UTF-8): Szybki i prosty analizator HTML-a Name: ruby-hpricot @@ -40,6 +44,10 @@ ls *.c *.h > MANIFEST %{__ruby} setup.rb setup +%if %{with tests} +%{__ruby} -Ilib -Iext/fast_xs -Iext/hpricot_scan -r hpricot -e 1 +%endif + # rdoc crashes on _why's craaazy code. #rdoc --op rdoc lib #rdoc --ri --op ri lib