- Patch for GLib 2.27.1 API
This commit is contained in:
parent
0726e53153
commit
449bba15a2
2 changed files with 39 additions and 2 deletions
12
ruby-gio2-0.90.5-gio-api-22701.patch
Normal file
12
ruby-gio2-0.90.5-gio-api-22701.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- gio2-0.90.5/ext/gio2/gdesktopappinfo.c.debug 2010-11-07 02:55:47.000000000 +0900
|
||||
+++ gio2-0.90.5/ext/gio2/gdesktopappinfo.c 2010-11-07 03:11:40.000000000 +0900
|
||||
@@ -77,7 +77,9 @@
|
||||
#ifdef HAVE_GIO_UNIX
|
||||
VALUE desktopappinfo = G_DEF_CLASS(G_TYPE_DESKTOP_APP_INFO, "DesktopAppInfo", glib);
|
||||
|
||||
+#if !GLIB_CHECK_VERSION(2, 27, 1)
|
||||
rb_define_const(desktopappinfo, "LOOKUP_EXTENSION_POINT_NAME", CSTR2RVAL(G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME));
|
||||
+#endif
|
||||
|
||||
rb_define_singleton_method(desktopappinfo, "new_from_filename", desktopappinfo_new_from_filename, 1);
|
||||
rb_define_singleton_method(desktopappinfo, "new_from_keyfile", desktopappinfo_new_from_keyfile, 1);
|
||||
|
|
@ -13,17 +13,20 @@
|
|||
Summary: Ruby binding of gio-2.0.x
|
||||
Name: rubygem-%{gemname}
|
||||
Version: 0.90.5
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Group: Development/Languages
|
||||
# from README
|
||||
License: LGPLv2
|
||||
URL: http://ruby-gnome2.sourceforge.jp/
|
||||
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
||||
Patch0: ruby-gio2-0.90.5-gio-api-22701.patch
|
||||
|
||||
BuildRequires: ruby(abi) = %{rubyabi}
|
||||
BuildRequires: rubygems
|
||||
BuildRequires: rubygem-glib2-devel >= %{glibminver}
|
||||
BuildRequires: ruby-devel
|
||||
# For Patch0:
|
||||
BuildRequires: rubygem(rake-compiler)
|
||||
Requires: ruby(abi) = %{rubyabi}
|
||||
Requires: rubygems
|
||||
Requires: rubygem(glib2) >= %{glibminver}
|
||||
|
|
@ -66,6 +69,21 @@ rubygem-%{gemname}
|
|||
|
||||
%prep
|
||||
%setup -q -c -T
|
||||
|
||||
# For Patch0
|
||||
TOPDIR=$(pwd)
|
||||
mkdir tmp_unpack_dir
|
||||
pushd tmp_unpack_dir
|
||||
|
||||
tar xf %SOURCE0
|
||||
mkdir data ; cd data
|
||||
tar xf ../data.tar.gz
|
||||
%patch0 -p1
|
||||
|
||||
VERSION=%{version} rake gem
|
||||
mv pkg/*gem $TOPDIR
|
||||
popd
|
||||
|
||||
mkdir -p .%{gemdir}
|
||||
|
||||
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
|
||||
|
|
@ -76,7 +94,11 @@ gem install \
|
|||
--install-dir .%{gemdir} \
|
||||
--force \
|
||||
--rdoc \
|
||||
%if 0
|
||||
%{SOURCE0}
|
||||
%else
|
||||
./%{gemname}-%{version}.gem
|
||||
%endif
|
||||
|
||||
find . -name \*.gem | xargs chmod 0644
|
||||
|
||||
|
|
@ -213,7 +235,10 @@ rm -rf %{buildroot}
|
|||
%{geminstdir}/Rakefile
|
||||
|
||||
%changelog
|
||||
* Sun Oct 31 2010 Mamoru Taska <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.90.5-3
|
||||
* Sun Nov 7 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.90.5-4
|
||||
- Patch for GLib 2.27.1 API
|
||||
|
||||
* Sun Oct 31 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.90.5-3
|
||||
- 0.90.5
|
||||
- Move C extension so that "require %%gemname" works correctly
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue