summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Gómez <gomix@fedoraproject.org>2013-03-23 23:50:29 -0430
committerGuillermo Gómez <gomix@fedoraproject.org>2013-03-23 23:50:29 -0430
commit6d2401b92e91097ff5d0ccba55a1c3ddd9224151 (patch)
treefdbdc92bb8fdbc6ce6aa1541f8ce772dc2a667d1
parente8387f524dfd4c9b239beb838d698c56b1c79367 (diff)
downloadrubygem-kgio-6d2401b92e91097ff5d0ccba55a1c3ddd9224151.tar.gz
rubygem-kgio-6d2401b92e91097ff5d0ccba55a1c3ddd9224151.tar.xz
rubygem-kgio-6d2401b92e91097ff5d0ccba55a1c3ddd9224151.zip
fixes for ruby 2.0.0
-rw-r--r--rubygem-kgio.spec24
1 files changed, 21 insertions, 3 deletions
diff --git a/rubygem-kgio.spec b/rubygem-kgio.spec
index 9474069..64d335d 100644
--- a/rubygem-kgio.spec
+++ b/rubygem-kgio.spec
@@ -57,8 +57,8 @@ Documentation for %{name}
mkdir -p .%{gem_dir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
gem install \
- -V \
- --local \
+ -V \
+ --local \
--install-dir .%{gem_dir} \
--force \
--rdoc \
@@ -90,8 +90,17 @@ rm -f %{buildroot}/%{gem_instdir}/GIT-VERSION-GEN
rm -rf %{buildroot}%{gem_instdir}/.yardoc
rm -rf %{buildroot}%{gem_instdir}/ext
+# If there are C extensions, mv them to the extdir.
+# You must replace REQUIRE_PATHS according to your gem specifics.
+%if 0%{?fedora} >= 17 && 0%{?fedora} < 19
install -d -m0755 %{buildroot}%{gem_extdir}
mv %{buildroot}%{gem_instdir}/lib/kgio_ext.so %{buildroot}%{gem_extdir}/lib/
+%endif
+
+%if 0%{?fedora} >= 19
+install -d m0755 %{buildroot}%{gem_extdir_mri}/lib
+mv %{buildroot}%{gem_instdir}/lib/kgio_ext.so %{buildroot}%{gem_extdir_mri}/lib/
+%endif
%check
cd %{buildroot}%{gem_instdir}
@@ -110,7 +119,16 @@ rm -rf %{buildroot}
%doc %{gem_instdir}/test
%files
+%if 0%{?fedora} >= 19
+%{gem_extdir_mri}
+#%%{gem_extdir_mri} %%{_libdir}/gems/ruby/%%{gem_name}-%%{version}
+%endif
+
+%if 0%{?fedora} >= 17 && 0%{?fedora} < 19
%{gem_extdir}
+#%%{gem_extdir} %%{_libdir}/gems/exts/%%{gem_name}-%%{version}
+%endif
+
%dir %{gem_instdir}/lib
%doc %{gem_instdir}/LICENSE
%doc %{gem_instdir}/COPYING
@@ -138,7 +156,7 @@ rm -rf %{buildroot}
- Proper use of new macros for Ruby 1.9 packaging
- irb added as build require
-* Tue Jan 07 2012 Guillermo Gómez <guillermo.gomez@gmail.com> - 2.7.0-4
+* Sat Jan 07 2012 Guillermo Gómez <guillermo.gomez@gmail.com> - 2.7.0-4
- Requires fixed for Ruby 1.9
* Sun Jan 01 2012 Guillermo Gómez <guillermo.gomez@gmail.com> - 2.7.0-3