[rubygem-gdk_pixbuf2] 2.1.0
Mamoru TASAKA
mtasaka at fedoraproject.org
Thu Jan 16 14:02:18 UTC 2014
commit 0bbac8b963baa62eb5208f0f43401e20434d33c8
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Thu Jan 16 23:02:30 2014 +0900
2.1.0
.gitignore | 1 +
rubygem-gdk_pixbuf2.spec | 37 +++++++++++++++++++------------------
sources | 2 +-
3 files changed, 21 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b658c0a..9b0fd5e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
/gdk_pixbuf2-1.2.5.gem
/gdk_pixbuf2-1.2.6.gem
/gdk_pixbuf2-2.0.2.gem
+/gdk_pixbuf2-2.1.0.gem
diff --git a/rubygem-gdk_pixbuf2.spec b/rubygem-gdk_pixbuf2.spec
index 75f1ee6..5ef678e 100644
--- a/rubygem-gdk_pixbuf2.spec
+++ b/rubygem-gdk_pixbuf2.spec
@@ -2,12 +2,12 @@
%global gem_name gdk_pixbuf2
-%global glibminver 2.0.0
+%global glibminver 2.1.0
%global obsoleteevr 0.90.7-1.999
Summary: Ruby binding of GdkPixbuf-2.x
Name: rubygem-%{gem_name}
-Version: 2.0.2
+Version: 2.1.0
Release: 1%{?dist}
Group: Development/Languages
# from README
@@ -57,29 +57,27 @@ Header files and libraries for building a extension library for the
rubygem-%{gem_name}
%prep
-%setup -q -c -T
-mkdir -p .%{gem_dir}
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
-%gem_install -n %{SOURCE0}
+# Allow ruby-gnome2 no less than ones
+sed -i -e 's|= 2\.1\.0|>= 2.1.0|' %{gem_name}.gemspec
-find . -name \*.gem | xargs chmod 0644
+# Fix up Rakefile for "gnome2-raketask" requirement
+sed -i -e "/require.*gnome2-raketask/s|^\(.*\)|begin\n \1\nrescue LoadError\n require 'rubygems'\n require 'gnome2-raketask'\nend\n|" \
+ Rakefile
# Kill shebang
-pushd .%{gem_instdir}
grep -rl '#!.*/usr/bin' sample | \
xargs sed -i -e '\@#![ ]*/usr/bin at d'
find sample/ -name \*.rb | xargs chmod 0644
-popd
%build
-# Move C extension library to some private directory
-pushd .%{gem_instdir}
-
-# Fix up Rakefile for "gnome2-raketask" requirement
-sed -i -e "/require.*gnome2-raketask/s|^\(.*\)|begin\n \1\nrescue LoadError\n require 'rubygems'\n require 'gnome2-raketask'\nend\n|" \
- Rakefile
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
+gem build %{gem_name}.gemspec
+%gem_install
%install
# Once copy all
@@ -125,7 +123,7 @@ popd
%dir %{gem_extdir_mri}/lib
%{gem_extdir_mri}/lib/%{gem_name}.so
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
%files devel
@@ -137,10 +135,13 @@ popd
%files doc
%defattr(-,root,root,-)
%{gem_docdir}/
-%{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/Rakefile
%{gem_instdir}/sample/
%changelog
+* Thu Jan 16 2014 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.1.0-1
+- 2.1.0
+
* Fri Aug 16 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.0.2-1
- 2.0.2
diff --git a/sources b/sources
index 85a1ba9..fb6f2a8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b84ebc46444578d2e7b384f4ea78f76f gdk_pixbuf2-2.0.2.gem
+34efd4e760788d1dc84fd1e90115debf gdk_pixbuf2-2.1.0.gem
More information about the scm-commits
mailing list