Projects
openEuler:22.03:LTS:LoongArch
rubygem-hpricot
_service:tar_scm_kernel_repo:rubygem-hpricot.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:rubygem-hpricot.spec of Package rubygem-hpricot
%define gem_name hpricot Summary: A swift, liberal HTML parser with a fantastic library Name: rubygem-hpricot Version: 0.8.6 Release: 24 # ext/fast_xs/FastXsService.java is licensed under ASL 2.0 License: MIT and ASL 2.0 URL: http://github.com/hpricot/hpricot # File "boingboing.html" is under CC-BY-NC license, not for commercial, removing it from source package. # See Source1 for details. # Source0: https://rubygems.org/downloads/hpricot-0.8.6.gem Source0: hpricot-0.8.6-modified.gem Source1: rubygem-hpricot-create-free-gem.sh Requires: ruby(release) ruby(rubygems) BuildRequires: ruby(release) gcc rubygems-devel rubygem(rake-compiler) rubygem(rdoc) ruby-devel rubygem(test-unit) rubygem(rake) Provides: rubygem(hpricot) = %{version}-%{release} %description Hpricot is a fast, flexible HTML parser written in C. It's designed to be very accommodating(like Tanaka Akira's HTree) and to have a very helpful library. %package help Summary: Helpful information for hpricot # Directory ownership issue Requires: rubygem-hpricot = %{version}-%{release} ruby(rubygems) Requires: ruby(rubygems) Provides: rubygem-hpricot-doc = %{version}-%{release} Obsoletes: rubygem-hpricot-doc < %{version}-%{release} %description help Documents and helpful information for hpricot. %prep %autosetup -T -c TOPDIR=$(pwd) mkdir tmpunpackdir cd tmpunpackdir gem unpack %{SOURCE0} cd hpricot-0.8.6* find . -type f | xargs chmod ugo+r sed -i Rakefile -e '\@require.*bundler/setup@d' mkdir tmpbin ln -sf /bin/true tmpbin/git export PATH=$(pwd)/tmpbin:$PATH gem specification -l --ruby %{SOURCE0} > hpricot.gemspec gem build hpricot.gemspec mv hpricot-0.8.6.gem $TOPDIR cd $TOPDIR %gem_install cd .%{gem_instdir}/test grep -rl BOING . | \ xargs sed -i '/BOING/s|^\([ \t][ \t]*\)\(.*\)$|\1# This test is intentionally killed\n\1return true\n\1\2|' cd - %build %install mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_extdir_mri} cp -a ./%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/ cd %{buildroot} rm -f .%{gem_extdir_mri}/{gem_make.out,mkmf.log} cd - for f in $(find %{buildroot}%{gem_instdir} -name \*.rb) do sed -i -e '/^#!/d' $f chmod 0644 $f done rm -rf %{buildroot}%{gem_instdir}/tmp/ find %{buildroot}%{gem_instdir}/ext \ -type f \ -not -name \*.java \ -print0 | \ xargs -0 rm -f rm -f %{buildroot}%{gem_instdir}/.require_paths DIR=%{buildroot}%{gem_libdir}/universal-java* [ -d $DIR ] && rmdir $DIR cd %{buildroot} find . -type f '(' -name '[A-Z]*' -or -name '*.java' -or -name '*.rb' -or -name '*gem*' ')' \ -print0 | xargs -0 chmod 0644 cd - %check cd .%{gem_instdir} LANG=en_US.utf8 ruby \ -Ilib:.:ext/hpricot_scan:ext/fast_xs:test \ -e "gem 'test-unit' ; Dir.glob('test/test_*.rb').each { |f| require f }" cd - %files %{gem_extdir_mri} %dir %{gem_instdir}/ %exclude %{gem_instdir}/Rakefile %{gem_instdir}/[a-l]*/ %{gem_cache} %{gem_spec} %files help %{gem_instdir}/Rakefile %{gem_instdir}/extras/ %{gem_instdir}/test/ %{gem_docdir}/ %doc %{gem_instdir}/[A-Z]* %changelog * Sat Mar 14 2020 Jiang Kai <jiangkai20@huawei.com> - 0.8.6-24 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.