[rubygem-gio2] 2.1.0
Mamoru TASAKA
mtasaka at fedoraproject.org
Thu Jan 16 14:02:32 UTC 2014
commit f20b2c83b0d1c1c396d5f48aced83625061a2760
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Thu Jan 16 23:02:44 2014 +0900
2.1.0
.gitignore | 1 +
rubygem-gio2.spec | 42 +++++++++++++++++++++++-------------------
sources | 2 +-
3 files changed, 25 insertions(+), 20 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 82d2233..e132e75 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,4 @@
/gio2-1.2.5.gem
/gio2-1.2.6.gem
/gio2-2.0.2.gem
+/gio2-2.1.0.gem
diff --git a/rubygem-gio2.spec b/rubygem-gio2.spec
index af57fbd..299bbb2 100644
--- a/rubygem-gio2.spec
+++ b/rubygem-gio2.spec
@@ -1,13 +1,13 @@
%global header_dir %{ruby_vendorarchdir}
-%global glibminver 2.0.0
+%global glibminver 2.1.0
%global obsoleteevr 0.90.7-1.999
%global gem_name gio2
Summary: Ruby binding of gio-2.0.x
Name: rubygem-%{gem_name}
-Version: 2.0.2
+Version: 2.1.0
Release: 1%{?dist}
Group: Development/Languages
# from README
@@ -56,19 +56,12 @@ Header files and libraries for building a extension library for the
rubygem-%{gem_name}
%prep
-%setup -q -c -T
+gem unpack %{SOURCE0}
+%setup -q -D -T -n %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
-mkdir -p .%{gem_dir}
-
-export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
-%gem_install -n %{SOURCE0}
-
-find . -name \*.gem | xargs chmod 0644
-
-%build
-# Move C extension library to some private directory
-pushd .%{gem_instdir}
+# Allow ruby-gnome2 no less than ones
+sed -i -e 's|= 2\.1\.0|>= 2.1.0|' %{gem_name}.gemspec
# 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|" \
@@ -76,7 +69,15 @@ sed -i -e "/require.*gnome2-raketask/s|^\(.*\)|begin\n \1\nrescue LoadError\n
# Fix up test/load-test.rb
sed -i -e "/glib-test-init/s|^.*$|require 'glib-test-init'|" \
- test/load-test.rb
+ test/run-test.rb
+
+%build
+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
+
+find . -name \*.gem | xargs chmod 0644
%install
# Once copy all
@@ -108,7 +109,7 @@ popd
%check
pushd .%{gem_instdir}
-ruby -rubygems -Ilib test/load-test.rb
+ruby -rubygems -Ilib test/run-test.rb
%files
%defattr(-,root,root,-)
@@ -125,7 +126,7 @@ ruby -rubygems -Ilib test/load-test.rb
%dir %{gem_extdir_mri}/lib
%{gem_extdir_mri}/lib/%{gem_name}.so
-%{gem_cache}
+%exclude %{gem_cache}
%{gem_spec}
%files devel
@@ -137,10 +138,13 @@ ruby -rubygems -Ilib test/load-test.rb
%files doc
%defattr(-,root,root,-)
%{gem_docdir}
-%{gem_instdir}/Rakefile
-%{gem_instdir}/test/
+%exclude %{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/test/
%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 bcc0908..69198f6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-31afc7d8950f6470a1e1b31f12e62eb8 gio2-2.0.2.gem
+80b2786a45ded09d3c60816180eccd60 gio2-2.1.0.gem
More information about the scm-commits
mailing list