[rubygem-sprite-factory] Initial commit

Josef Stribny jstribny at fedoraproject.org
Wed Aug 27 06:21:12 UTC 2014


commit 2b1f7feaa2dd06d4ccef3905ac53831736f0cb3f
Author: Josef Stribny <jstribny at redhat.com>
Date:   Wed Aug 27 08:15:41 2014 +0200

    Initial commit

 .gitignore                  |    1 +
 rubygem-sprite-factory.spec |  109 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 111 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5b6344c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sprite-factory-1.6.1.gem
diff --git a/rubygem-sprite-factory.spec b/rubygem-sprite-factory.spec
new file mode 100644
index 0000000..258b9ac
--- /dev/null
+++ b/rubygem-sprite-factory.spec
@@ -0,0 +1,109 @@
+# Generated from sprite-factory-1.6.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name sprite-factory
+
+Name: rubygem-%{gem_name}
+Version: 1.6.1
+Release: 1%{?dist}
+Summary: Automatic CSS sprite generator
+Group: Development/Languages
+License: MIT
+URL: https://github.com/jakesgordon/sprite-factory
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: ruby-RMagick
+BuildRequires: rubygem(chunky_png)
+BuildRequires: rubygem(minitest)
+BuildRequires: pngcrush
+BuildArch: noarch
+
+%description
+Combines individual images from a directory into a single sprite image file and creates an appropriate CSS stylesheet.
+
+
+%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 -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+
+mkdir -p %{buildroot}%{_bindir}
+cp -a .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+%check
+pushd .%{gem_instdir}
+# To run the test suite against minitest 5
+# 2-3 failures, pretty unstable test suite
+# https://github.com/jakesgordon/sprite-factory/issues/37
+ruby -rminitest/autorun -rrubygems -Ilib:test - <<EOF | grep -E '43 runs, 21. assertions, (2|3) failures, 0 errors, 0 skips.*'
+  module Kernel
+    alias orig_require require
+    remove_method :require
+
+    def require path
+      orig_require path unless path == 'test/unit'
+    end
+  end
+  module MiniTest::Assertions
+    def assert_raise(*exp)
+      assert_raises(*exp)
+    end
+  end
+  Test = Minitest
+  Dir.glob("./test/*_test.rb").sort.each { |t| require t }
+EOF
+popd
+
+%files
+%dir %{gem_instdir}
+%{_bindir}/sf
+%{gem_instdir}/bin
+%{gem_libdir}
+%exclude %{gem_cache}
+%exclude %{gem_instdir}/.gitignore
+%{gem_spec}
+%doc %{gem_instdir}/LICENSE
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.md
+%doc %{gem_instdir}/RELEASE_NOTES.md
+%{gem_instdir}/test
+%{gem_instdir}/Rakefile
+%{gem_instdir}/Gemfile
+%{gem_instdir}/sprite_factory.gemspec
+
+%changelog
+* Wed Aug 27 2014 Josef Stribny <jstribny at redhat.com> - 1.6.1-1
+- Update to sprite-factory 1.6.1
+
+* Fri Aug 22 2014 Josef Stribny <jstribny at redhat.com> - 1.6.0-2
+- Allow 2 or 3 failures due to the unstability of the test suite
+
+* Tue Jul 15 2014 Josef Stribny <jstribny at redhat.com> - 1.6.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..8501b43 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ef5b8733a2480febf71769083a7a6192  sprite-factory-1.6.1.gem


More information about the scm-commits mailing list