%global gem_name loofah Name: rubygem-%{gem_name} Version: 2.22.0 Release: 3%{?dist} Summary: Manipulate and transform HTML/XML documents and fragments License: MIT URL: https://github.com/flavorjones/loofah Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # git clone https://github.com/flavorjones/loofah.git && cd loofah # git archive -v -o loofah-2.22.0-test.tar.gz v2.22.0 test/ Source1: %{gem_name}-%{version}-test.tar.gz BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(nokogiri) >= 1.6.6.2 BuildRequires: rubygem(minitest) BuildRequires: rubygem(crass) BuildArch: noarch %description Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah also includes some HTML sanitizers based on `html5lib`'s safelist, which are a specific application of the general transformation functionality. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -b1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} cp -a %{_builddir}/test . ruby -Ilib:test -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/MIT-LICENSE.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.md %doc %{gem_instdir}/SECURITY.md %changelog * Fri Jan 26 2024 Fedora Release Engineering - 2.22.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.22.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 23 2023 Vít Ondruch - 2.22.0-1 - Update to Loofah 2.22.0. Resolves: rhbz#2126896 Resolves: rhbz#2153235 Resolves: rhbz#2153242 Resolves: rhbz#2153263 * Fri Jul 21 2023 Fedora Release Engineering - 2.18.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue May 16 2023 Mamoru TASAKA - 2.18.0-3 - Backport upstream patch to support libxml2 2.10.4 * Fri Jan 20 2023 Fedora Release Engineering - 2.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Aug 09 2022 Vít Ondruch - 2.18.0-1 - Update to Loofah 2.18.0. Resolves: rhbz#1988763 Resolves: rhbz#2113692 * Sat Jul 23 2022 Fedora Release Engineering - 2.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 09 2021 Vít Ondruch - 2.10.0-1 - Update to Loofah 2.10.0. Resolves: rhbz#1821070 * Wed Jan 27 2021 Fedora Release Engineering - 2.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Feb 21 2020 Vít Ondruch - 2.4.0-1 - Update to Loofah 2.4.0. * Thu Jan 30 2020 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Nov 07 2019 Pavel Valena - 2.3.1-1 - Update to loofah 2.3.1. * Fri Jul 26 2019 Fedora Release Engineering - 2.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Nov 13 2018 Vít Ondruch - 2.2.3-1 - Update to Loofah 2.2.3. * Sat Jul 14 2018 Fedora Release Engineering - 2.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Mar 21 2018 Pavel Valena - 2.2.2-1 - Update to loofah 2.2.2. Resolves: CVE-2018-8048 * Fri Feb 09 2018 Fedora Release Engineering - 2.0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jan 11 2016 Ken Dreyer - 2.0.3-1 - Update to loofah 2.0.3 (rhbz#1256165) - Use %%autosetup macro - Drop macros for Fedora 20 (it is now EOL) - Drop unneeded %%license definition * Thu Jun 18 2015 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 25 2015 Ken Dreyer - 2.0.2-1 - Update to loofah 2.0.2 (rhbz#1218819) - Drop patch to skip failing test (it works now, with Nokogiri 1.6.6.2) - Drop Fedora 19 support - Use %%license macro * Thu Sep 11 2014 Ken Dreyer - 2.0.1-1 - Update to loofah 2.0.1 (RHBZ #1132898) - Drop upstreamed RR patch * Sun Jun 08 2014 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 12 2014 Ken Dreyer - 2.0.0-1 - Update to loofah 2.0.0 (RHBZ #1096760) - Adjustments for https://fedoraproject.org/wiki/Changes/Ruby_2.1 * Sat Dec 28 2013 Ken Dreyer - 1.2.1-1 - Initial package