[rubygem-vte] 2.1.0

Mamoru TASAKA mtasaka at fedoraproject.org
Thu Jan 16 14:04:41 UTC 2014


commit 52408d0381d8e5cef587d05a8a8a9e39e4807a74
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Thu Jan 16 23:04:53 2014 +0900

    2.1.0

 .gitignore       |    1 +
 rubygem-vte.spec |   34 +++++++++++++++++-----------------
 sources          |    2 +-
 3 files changed, 19 insertions(+), 18 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5ae4952..45da9cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@
 /vte-1.2.5.gem
 /vte-1.2.6.gem
 /vte-2.0.2.gem
+/vte-2.1.0.gem
diff --git a/rubygem-vte.spec b/rubygem-vte.spec
index ef6d61d..5177f2a 100644
--- a/rubygem-vte.spec
+++ b/rubygem-vte.spec
@@ -2,13 +2,13 @@
 
 %global	gem_name	vte
 
-%global	glibminver	2.0.0
-%global	gtkminver	2.0.0
+%global	glibminver	2.1.0
+%global	gtkminver	2.1.0
 %global	obsoleteevr	0.90.7-1.999
 
 Summary:	Ruby binding of vte
 Name:		rubygem-%{gem_name}
-Version:	2.0.2
+Version:	2.1.0
 Release:	1%{?dist}
 Group:		Development/Languages
 # from README
@@ -58,17 +58,13 @@ 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}
 
-mkdir -p .%{gem_dir}
+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}
-
-find . -name \*.gem | xargs chmod 0644
-
-pushd .%{gem_instdir}
+# Allow ruby-gnome2 no less than ones
+sed -i -e 's|= 2\.1\.0|>= 2.1.0|' %{gem_name}.gemspec
 
 # Fix wrong shebang
 #grep -rl /usr/local/bin sample | \
@@ -78,11 +74,12 @@ 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}
+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
@@ -130,7 +127,7 @@ popd
 %dir	%{gem_extdir_mri}/lib
 %{gem_extdir_mri}/lib/%{gem_name}.so
 
-%{gem_cache}
+%exclude	%{gem_cache}
 %{gem_spec}
 
 %files	devel
@@ -140,10 +137,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 a9b942b..01f8390 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d46a0112769fbaad2e413842cbabc140  vte-2.0.2.gem
+e4ec6c39b3aae471be4eb29eef7c55f4  vte-2.1.0.gem


More information about the scm-commits mailing list