[rubygem-rsvg2] 2.1.0

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


commit 91b0c245b2271ab8ef753d3fc7986fb16ca07824
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Thu Jan 16 23:04:39 2014 +0900

    2.1.0

 .gitignore         |    1 +
 rubygem-rsvg2.spec |   34 ++++++++++++++++++----------------
 sources            |    2 +-
 3 files changed, 20 insertions(+), 17 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index eb8ba83..db4b40f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
 /rsvg2-1.2.5.gem
 /rsvg2-1.2.6.gem
 /rsvg2-2.0.2.gem
+/rsvg2-2.1.0.gem
diff --git a/rubygem-rsvg2.spec b/rubygem-rsvg2.spec
index 56449ed..f519555 100644
--- a/rubygem-rsvg2.spec
+++ b/rubygem-rsvg2.spec
@@ -2,13 +2,13 @@
 
 %global	gem_name	rsvg2
 
-%global	glibminver	2.0.0
+%global	glibminver	2.1.0
 %global	obsoleteevr	0.90.7-1.999
 
 Summary:	Ruby binding of librsvg-2.x
 Name:		rubygem-%{gem_name}
-Version:	2.0.2
-Release:	2%{?dist}
+Version:	2.1.0
+Release:	1%{?dist}
 Group:		Development/Languages
 # from README
 License:	LGPLv2
@@ -59,26 +59,25 @@ Provides:	ruby(rsvg-devel) = %{version}-%{release}
 Header files and libraries for building a extension library for the
 rubygem-%{gem_name}
 
-%prep
-%setup -q -c -T
-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}
+%prep
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
-find . -name \*.gem | xargs chmod 0644
+# Allow ruby-gnome2 no less than ones
+sed -i -e 's|= 2\.1\.0|>= 2.1.0|' %{gem_name}.gemspec
 
-pushd .%{gem_instdir}
 # Kill shebang
 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
@@ -123,7 +122,7 @@ popd
 %dir	%{gem_extdir_mri}/lib
 %{gem_extdir_mri}/lib/%{gem_name}.so
 
-%{gem_cache}
+%exclude	%{gem_cache}
 %{gem_spec}
 
 %files	devel
@@ -133,10 +132,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
+
 * Mon Oct 28 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 2.0.2-2
 - Fix Obsoletes / Provides (bug 1023341)
 
diff --git a/sources b/sources
index 5b6e1ab..0b70166 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-feb5dfec7fbe5bf03f6318377e43c892  rsvg2-2.0.2.gem
+53a6a91af42c2a1ccedb6d3924251885  rsvg2-2.1.0.gem


More information about the scm-commits mailing list