# Generated from sanitize-2.0.6.gem by gem2rpm -*- rpm-spec -*- %global gem_name sanitize Name: rubygem-%{gem_name} Version: 5.1.0 Release: 13%{?dist} Summary: Whitelist-based HTML and CSS sanitizer License: MIT URL: https://github.com/rgrove/sanitize/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel >= 1.2.0 BuildRequires: ruby BuildRequires: rubygem(minitest) BuildRequires: rubygem(nokogiri) BuildRequires: rubygem(nokogumbo) BuildRequires: rubygem(crass) BuildArch: noarch %description Sanitize is a whitelist-based HTML sanitizer. Given a list of acceptable elements and attributes, Sanitize will remove all unacceptable HTML from a string. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -n %{gem_name}-%{version} %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} mv test/test_malicious_html.rb{,.disable} ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %{gem_libdir} %doc %{gem_instdir}/LICENSE %{gem_spec} %exclude %{gem_cache} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %doc %{gem_instdir}/HISTORY.md %{gem_instdir}/test/ %changelog * Thu Apr 23 2020 Pavel Valena - 5.1.0-13 - Update to 5.1.0. * Fri Jul 26 2019 Fedora Release Engineering - 2.1.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.1.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 2.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jun 22 2015 Yaakov Selkowitz - 2.1.0-5 - Fix minitest usage for F22+ * Thu Jun 18 2015 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 16 2014 Yaakov Selkowitz - 2.1.0-3 - Fix minitest BR (#1107232) * Sun Jun 08 2014 Fedora Release Engineering - 2.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Jan 25 2014 Achilleas Pipinellis - 2.1.0-1 - Update to 2.1.0 * Sat Jul 27 2013 Achilleas Pipinellis - 2.0.6-2 - Tests don't need to be removed - Fix BR nokogiri to match upstream gemspec * Sat Jul 27 2013 Achilleas Pipinellis - 2.0.6-1 - Initial package