[rubygem-ensure_valid_encoding] initial commit

Mamoru TASAKA mtasaka at fedoraproject.org
Mon Dec 2 04:29:12 UTC 2013


commit 324a03d0047d39e207bbce6ba48042ab22918356
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Mon Dec 2 13:29:03 2013 +0900

    initial commit

 .gitignore                         |    1 +
 rubygem-ensure_valid_encoding.spec |   75 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ebcb506 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ensure_valid_encoding-0.5.3.gem
diff --git a/rubygem-ensure_valid_encoding.spec b/rubygem-ensure_valid_encoding.spec
new file mode 100644
index 0000000..867d58e
--- /dev/null
+++ b/rubygem-ensure_valid_encoding.spec
@@ -0,0 +1,75 @@
+%global	gem_name	ensure_valid_encoding
+
+Name:		rubygem-%{gem_name}
+Version:	0.5.3
+Release:	1%{?dist}
+
+Summary:	Replace bad bytes in given encoding with replacement strings
+License:	MIT
+URL:		https://github.com/jrochkind/ensure_valid_encoding
+Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
+
+BuildRequires:	ruby(release)
+BuildRequires:	rubygems-devel
+BuildRequires:	rubygem(minitest)
+Requires:	ruby(release)
+Requires:	ruby(rubygems)
+BuildArch:	noarch
+Provides:	rubygem(%{gem_name}) = %{version}
+
+%description
+Replace bad bytes in given encoding with replacement strings, _or_ 
+fail quickly on invalid encodings --  _without_ a transcode to 
+a different encoding.
+
+%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
+gem build %{gem_name}.gemspec
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+	%{buildroot}%{gem_dir}/
+
+# Cleanup
+pushd %{buildroot}%{gem_instdir}
+rm -rf \
+	.gitignore \
+	Gemfile Rakefile \
+	*.gemspec \
+	test
+popd
+
+%check
+pushd .%{gem_instdir}
+testrb -Ilib test/*_test.rb
+popd
+
+%files
+%dir	%{gem_instdir}
+%doc	%{gem_instdir}/[A-Z]*
+
+%{gem_libdir}
+%exclude	%{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc	%{gem_docdir}
+
+%changelog
+* Tue Nov 26 2013 TASAKA Mamoru <mtasaka at tbz.t-com.ne.jp> - 0.5.3-1
+- Initial package
diff --git a/sources b/sources
index e69de29..bb39f1c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1f452415f4ffa2a882c0e04e56715011  ensure_valid_encoding-0.5.3.gem


More information about the scm-commits mailing list