[rubygem-sanitize] Initial import (#989132)

Axilleas Pipinellis axilleas at fedoraproject.org
Mon Jul 29 17:09:44 UTC 2013


commit ab1552c7261839342f226b5e9fb1a93a12366cbd
Author: Axilleas Pipinellis <axilleas at archlinux.gr>
Date:   Mon Jul 29 20:07:31 2013 +0300

    Initial import (#989132)

 .gitignore            |    1 +
 rubygem-sanitize.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2932549 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sanitize-2.0.6.gem
diff --git a/rubygem-sanitize.spec b/rubygem-sanitize.spec
new file mode 100644
index 0000000..d8dd1c5
--- /dev/null
+++ b/rubygem-sanitize.spec
@@ -0,0 +1,81 @@
+# Generated from sanitize-2.0.6.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name sanitize
+
+Name: rubygem-%{gem_name}
+Version: 2.0.6
+Release: 2%{?dist}
+Summary: Whitelist-based HTML sanitizer
+Group: Development/Languages
+License: MIT
+URL: https://github.com/rgrove/sanitize/
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems) >= 1.2.0
+Requires: rubygem(nokogiri) >= 1.4.4
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel >= 1.2.0
+BuildRequires: ruby >= 1.9.2
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(nokogiri)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%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}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n  %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+testrb -Ilib test/test_sanitize.rb
+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.rdoc
+%doc %{gem_instdir}/HISTORY.md
+%{gem_instdir}/test/
+
+%changelog
+* Sat Jul 27 2013 Axilleas Pipinellis <axilleaspi at ymail.com> - 2.0.6-2
+- Tests don't need to be removed
+- Fix BR nokogiri to match upstream gemspec
+
+* Sat Jul 27 2013 Axilleas Pipinellis <axilleaspi at ymail.com> - 2.0.6-1
+- Initial package
diff --git a/sources b/sources
index e69de29..6e3f440 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d02f5dbe116f39875e549fc37565d53f  sanitize-2.0.6.gem


More information about the scm-commits mailing list