Package ruby-nokogiri: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | %define Name Nokogiri %define bname nokogiri Name: ruby-%bname Version: 1.8.0 Release: alt0.M80C.2 Summary: Ruby libraries for %Name (HTML, XML, SAX, and Reader parser) Group: Development/Ruby License: MIT/Ruby URL: http://%bname.org Source: %bname-%version.tar Patch1: ignore-gems.patch BuildPreReq: rpm-build-ruby BuildRequires: ruby ruby-stdlibs libruby-devel ruby-racc ruby-tool-setup %_bindir/rexical BuildRequires: libxml2-devel libxslt-devel java-devel ruby-pkg-config #BuildRequires: db2latex-xsl xhtml1-dtds %filter_from_requires /^ruby(.*\.jar)/d %description %Name parses and searches XML/HTML very quickly, and also has correctly implemented CSS3 selector support as well as XPath support. This package contanis Ruby libraries for Nokogiri. %package -n %bname Summary: HTML, XML, SAX, and Reader parser Group: Development/Other BuildArch: noarch Requires: ruby >= 1.8 Requires: %name = %version-%release %description -n %bname %Name parses and searches XML/HTML very quickly, and also has correctly implemented CSS3 selector support as well as XPath support. This package contanis Ruby libraries for Nokogiri. %package doc Summary: Documentation for %Name Group: Development/Documentation BuildArch: noarch %description doc Documentation for %Name. %prep %setup -q -n %bname-%version %patch1 -p1 DisableTest() { local f="$1" shift while [ -n "$1" ]; do sed -i -r \ -e "/^[[:blank:]]*def[[:blank:]]+test_$1[[:blank:]]*$/iif false" \ -e "/^[[:blank:]]*def[[:blank:]]+test_$1[[:blank:]]*$/,/^[[:blank:]]*$/s/^[[:blank:]]*$/end\n&/" \ "test/$f.rb" shift done } DisableTest test_convert_xpath multiple_filters DisableTest css/test_nthiness last_of_type nth_last_of_type nth_of_type %update_setup_rb %build %ruby_config -- --use-system-libraries %ruby_build %install %ruby_install %rdoc lib/ ls -d %buildroot%ruby_ri_sitedir/* | grep -v '/%Name$' | xargs rm -rf %check %ruby_test_unit -Ilib:ext:test test %files %ruby_sitelibdir/%bname %ruby_sitelibdir/xsd %ruby_sitelibdir/*.jar %ruby_sitelibdir/*.rb %ruby_sitearchdir/* %files -n %bname %_bindir/* %files doc %ruby_ri_sitedir/* %changelog * Sun May 13 2018 Andrey Cherepanov <cas@altlinux.org> 1.8.0-alt0.M80C.2 - Rebuild with Ruby 2.4.4 * Sun Nov 05 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.0-alt0.M80C.1 - Backport new version for Ruby 2.4.2 in c8 branch * Mon Jun 05 2017 Andrey Cherepanov <cas@altlinux.org> 1.8.0-alt1 - New version * Wed May 10 2017 Andrey Cherepanov <cas@altlinux.org> 1.7.2-alt1 - New version * Mon Mar 20 2017 Andrey Cherepanov <cas@altlinux.org> 1.7.1-alt1 - Nrw version * Sat Mar 11 2017 Andrey Cherepanov <cas@altlinux.org> 1.7.0.1-alt1 - New version - Rebuild with new %%ruby_sitearchdir location * Mon Sep 12 2016 Andrey Cherepanov <cas@altlinux.org> 1.6.8-alt1 - New version * Fri May 22 2015 Andrey Cherepanov <cas@altlinux.org> 1.6.6.2-alt1 - 1.6.6.2 - Rebuild with new version of libxml2 * Wed Mar 19 2014 Led <led@altlinux.ru> 1.6.1-alt2 - Rebuilt with ruby-2.0.0-alt1 * Sat Mar 15 2014 Led <led@altlinux.ru> 1.6.1-alt1 - 1.6.1 * Fri Apr 12 2013 Led <led@altlinux.ru> 1.5.9-alt1 - 1.5.9 - updated URL - updated BuildRequires - fixed Group for %%name-doc subpackage - moved %%_bindir/nokogiri to separate subpackage * Sat Dec 15 2012 Led <led@altlinux.ru> 1.5.5-alt2 - fixed for renamed %_bindir/rex -> %_bindir/rexical - %%files: fixed "File listed twice" * Fri Dec 07 2012 Led <led@altlinux.ru> 1.5.5-alt1.1 - Rebuilt with ruby-1.9.3-alt1 * Wed Mar 24 2012 Andriy Stepanov <stanv@altlinux.ru> 1.5.5-alt1 - New version * Wed Mar 23 2011 Andriy Stepanov <stanv@altlinux.ru> 1.4.4.2-alt2 - Fix build * Wed Mar 23 2011 Andriy Stepanov <stanv@altlinux.ru> 1.4.4.2-alt1 - [1.4.4.2] * Wed Mar 17 2010 Timur Batyrshin <erthad@altlinux.org> 1.4.0-alt1 - [1.4.0] * Sun Jun 28 2009 Alexey I. Froloff <raorn@altlinux.org> 1.3.2-alt1 - [1.3.2] * Thu Sep 25 2008 Grigory Batalov <bga@altlinux.ru> 1.1.0-alt1 - Initial build for ALT Linux. |