From a30f8a0205f5c571a9aec2146084b6c56c3a0608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 19 Jan 2015 12:57:54 +0100 Subject: [PATCH] Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2 --- libsolv-ruby22-rbconfig.patch | 20 ++++++++++++++++++++ libsolv-rubyinclude.patch | 2 +- libsolv.spec | 7 ++++++- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 libsolv-ruby22-rbconfig.patch diff --git a/libsolv-ruby22-rbconfig.patch b/libsolv-ruby22-rbconfig.patch new file mode 100644 index 0000000..0cc8e10 --- /dev/null +++ b/libsolv-ruby22-rbconfig.patch @@ -0,0 +1,20 @@ +--- a/cmake/modules/FindRuby.cmake ++++ b/cmake/modules/FindRuby.cmake +@@ -86,7 +86,7 @@ + OUTPUT_VARIABLE _RUBY_OUTPUT + ERROR_QUIET) + IF(_RUBY_SUCCESS OR NOT _RUBY_OUTPUT) +- EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['${RBVAR}']" ++ EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['${RBVAR}']" + RESULT_VARIABLE _RUBY_SUCCESS + OUTPUT_VARIABLE _RUBY_OUTPUT + ERROR_QUIET) +@@ -112,7 +112,7 @@ + _RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR) + + # vendor_ruby available ? +- EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print 'true' unless Config::CONFIG['vendorarchdir'].nil?" ++ EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print 'true' unless RbConfig::CONFIG['vendorarchdir'].nil?" + OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY ERROR_QUIET) + + IF(RUBY_HAS_VENDOR_RUBY) diff --git a/libsolv-rubyinclude.patch b/libsolv-rubyinclude.patch index 13a0b36..45982c9 100644 --- a/libsolv-rubyinclude.patch +++ b/libsolv-rubyinclude.patch @@ -5,7 +5,7 @@ diff -up libsolv/bindings/ruby/CMakeLists.txt.rubyinclude libsolv/bindings/ruby/ SET (RUBY_INSTALL_DIR ${RUBY_SITEARCH_DIR}) ENDIF (USE_VENDORDIRS AND RUBY_VENDORARCH_DIR) -+EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['arch']" ++EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['arch']" + OUTPUT_VARIABLE RUBY_ARCH) + +EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir']" diff --git a/libsolv.spec b/libsolv.spec index 7a73910..923be27 100644 --- a/libsolv.spec +++ b/libsolv.spec @@ -6,11 +6,12 @@ Name: libsolv Version: 0.6.8 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Url: https://github.com/openSUSE/libsolv Source: https://github.com/openSUSE/libsolv/archive/%{version}.tar.gz Patch0: libsolv-rubyinclude.patch +Patch1: libsolv-ruby22-rbconfig.patch Group: Development/Libraries Summary: Package dependency solver BuildRequires: cmake libdb-devel expat-devel rpm-devel zlib-devel @@ -80,6 +81,7 @@ Perl bindings for sat solver. %prep %setup -q -n libsolv-%{version} %patch0 -p1 -b .rubyinclude +%patch1 -p1 -b .ruby-rbconfig %check make ARGS="-V" test @@ -150,6 +152,9 @@ rm $RPM_BUILD_ROOT/usr/bin/testsolv %{python_sitearch}/* %changelog +* Mon Jan 19 2015 Vít Ondruch - 0.6.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2 + * Fri Jan 16 2015 Richard Hughes - 0.6.8-2 - Update to latest upstream release to fix a crash in PackageKit.