Blame SPECS/rubygem-rails-html-sanitizer.spec

76cc62
%{?scl:%scl_package rubygem-%{gem_name}}
76cc62
%{!?scl:%global pkg_name %{name}}
76cc62
76cc62
# Generated from rails-html-sanitizer-1.0.1.gem by gem2rpm -*- rpm-spec -*-
76cc62
%global gem_name rails-html-sanitizer
76cc62
76cc62
Name: %{?scl_prefix}rubygem-%{gem_name}
76cc62
Version: 1.0.3
76cc62
Release: 3%{?dist}
76cc62
Summary: This gem is responsible to sanitize HTML fragments in Rails applications
76cc62
Group: Development/Languages
76cc62
License: MIT
76cc62
URL: https://github.com/rails/rails-html-sanitizer
76cc62
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
76cc62
76cc62
Requires: %{?scl_prefix_ruby}ruby(release)
76cc62
Requires: %{?scl_prefix_ruby}ruby(rubygems)
76cc62
Requires: %{?scl_prefix}rubygem(loofah) >= 2.0
76cc62
Requires: %{?scl_prefix}rubygem(loofah) < 3
76cc62
BuildRequires: %{?scl_prefix_ruby}ruby(release)
76cc62
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
76cc62
BuildRequires: %{?scl_prefix_ruby}ruby
76cc62
BuildRequires: %{?scl_prefix}rubygem(loofah)
76cc62
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
76cc62
BuildRequires: %{?scl_prefix}rubygem(rails-dom-testing)
76cc62
BuildArch: noarch
76cc62
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
76cc62
76cc62
%description
76cc62
HTML sanitization for Rails applications.
76cc62
76cc62
%package doc
76cc62
Summary: Documentation for %{pkg_name}
76cc62
Group: Documentation
76cc62
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
76cc62
BuildArch: noarch
76cc62
76cc62
%description doc
76cc62
Documentation for %{pkg_name}.
76cc62
76cc62
%prep
76cc62
%{?scl:scl enable %{scl} - << \EOF}
76cc62
gem unpack %{SOURCE0}
76cc62
%{?scl:EOF}
76cc62
76cc62
%setup -q -D -T -n  %{gem_name}-%{version}
76cc62
76cc62
%{?scl:scl enable %{scl} - << \EOF}
76cc62
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
76cc62
%{?scl:EOF}
76cc62
76cc62
%build
76cc62
# Create the gem as gem install only works on a gem file
76cc62
%{?scl:scl enable %{scl} - << \EOF}
76cc62
gem build %{gem_name}.gemspec
76cc62
%{?scl:EOF}
76cc62
76cc62
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
76cc62
# by default, so that we can move it into the buildroot in %%install
76cc62
%{?scl:scl enable %{scl} - << \EOF}
76cc62
%gem_install
76cc62
%{?scl:EOF}
76cc62
76cc62
%install
76cc62
mkdir -p %{buildroot}%{gem_dir}
76cc62
cp -a .%{gem_dir}/* \
76cc62
        %{buildroot}%{gem_dir}/
76cc62
76cc62
# Run the test suite
76cc62
%check
76cc62
pushd .%{gem_instdir}
76cc62
%{?scl:scl enable %{scl} - << \EOF}
76cc62
ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
76cc62
%{?scl:EOF}
76cc62
popd
76cc62
76cc62
%files
76cc62
#%%license %%{gem_instdir}/MIT-LICENSE
76cc62
%dir %{gem_instdir}
76cc62
%{gem_libdir}
76cc62
%exclude %{gem_cache}
76cc62
%{gem_spec}
76cc62
76cc62
%files doc
76cc62
%doc %{gem_docdir}
76cc62
%doc %{gem_instdir}/CHANGELOG.md
76cc62
%doc %{gem_instdir}/README.md
76cc62
%{gem_instdir}/test
76cc62
76cc62
%changelog
76cc62
* Mon Feb 22 2016 Pavel Valena <pvalena@redhat.com> - 1.0.3-3
76cc62
- Add scl macros
76cc62
76cc62
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
76cc62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
76cc62
76cc62
* Tue Jan 26 2016 Pavel Valena <pvalena@redhat.com> - 1.0.3-1
76cc62
- Update to 1.0.3
76cc62
- License file is missing https://github.com/rails/rails-html-sanitizer/pull/47
76cc62
- Skip failing tests due to possible incompatibility with libxml2
76cc62
76cc62
* Tue Jun 30 2015 Josef Stribny <jstribny@redhat.com> - 1.0.2-1
76cc62
- Update to 1.0.2
76cc62
76cc62
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
76cc62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
76cc62
76cc62
* Thu Jan 22 2015 Vít Ondruch <vondruch@redhat.com> - 1.0.1-1
76cc62
- Initial package