[libsolv] Rebase to the latest upstream.

Ales Kozumplik akozumpl at fedoraproject.org
Thu Jun 7 08:34:23 UTC 2012


commit 0abb4bd93a94880839b985f2f12cb46355cce248
Author: Ales Kozumplik <ales at redhat.com>
Date:   Thu Jun 7 08:50:19 2012 +0200

    Rebase to the latest upstream.
    
    Fix epoch versioning.

 .gitignore                       |    1 +
 libsolv-newruby.patch            |   15 ---------------
 libsolv-ruby-usevendordirs.patch |   15 ---------------
 libsolv-rubyinclude.patch        |    8 ++++----
 libsolv.spec                     |   25 +++++++++++++------------
 sources                          |    2 +-
 6 files changed, 19 insertions(+), 47 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a23068c..00fd1a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /libsolv-80afaf7.tar.xz
 /libsolv-af1465a2.tar.xz
 /libsolv-8cf7650.tar.xz
+/libsolv-d39a42b.tar.xz
diff --git a/libsolv-rubyinclude.patch b/libsolv-rubyinclude.patch
index bb44d76..13a0b36 100644
--- a/libsolv-rubyinclude.patch
+++ b/libsolv-rubyinclude.patch
@@ -1,9 +1,9 @@
 diff -up libsolv/bindings/ruby/CMakeLists.txt.rubyinclude libsolv/bindings/ruby/CMakeLists.txt
---- libsolv/bindings/ruby/CMakeLists.txt.rubyinclude	2012-02-07 18:49:31.075581334 +0100
-+++ libsolv/bindings/ruby/CMakeLists.txt	2012-02-07 19:55:59.627717571 +0100
-@@ -6,8 +6,17 @@ ELSE (USE_VENDORDIRS)
+--- libsolv/bindings/ruby/CMakeLists.txt.rubyinclude	2012-06-07 10:06:19.372687533 +0200
++++ libsolv/bindings/ruby/CMakeLists.txt	2012-06-07 10:09:57.313968719 +0200
+@@ -6,8 +6,17 @@ ELSE (USE_VENDORDIRS AND RUBY_VENDORARCH
      SET (RUBY_INSTALL_DIR ${RUBY_SITEARCH_DIR})
- ENDIF (USE_VENDORDIRS)
+ ENDIF (USE_VENDORDIRS AND RUBY_VENDORARCH_DIR)
  
 +EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['arch']"
 +   OUTPUT_VARIABLE RUBY_ARCH)
diff --git a/libsolv.spec b/libsolv.spec
index 86ebf01..1cff134 100644
--- a/libsolv.spec
+++ b/libsolv.spec
@@ -1,21 +1,19 @@
-%global gitrev 8cf7650
-%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
+%global gitrev d39a42b
+%{!?ruby_vendorarch: %global ruby_vendorarch %(ruby -rrbconfig -e 'puts Config::CONFIG["vendorarchdir"] ')}
 %filter_provides_in %{perl_vendorarch}/.*\.so$
 %filter_provides_in %{python_sitearch}/.*\.so$
-%filter_provides_in %{ruby_sitearch}/.*\.so$
+%filter_provides_in %{ruby_vendorarch}/.*\.so$
 %filter_setup
 
 Name:		libsolv
 Version:	0.0.0
-Release:	9.git%{gitrev}%{?dist}
+Release:	11.git%{gitrev}%{?dist}
 License:	BSD
 Url:		https://github.com/openSUSE/libsolv
 # git clone https://github.com/openSUSE/libsolv.git
 # git archive %{gitrev} --prefix=libsolv/ | xz > libsolv-%{gitrev}.tar.xz
 Source:		libsolv-%{gitrev}.tar.xz
 Patch0:		libsolv-rubyinclude.patch
-Patch1:		libsolv-newruby.patch
-Patch2:		libsolv-ruby-usevendordirs.patch
 Group:		Development/Libraries
 Summary:	Package dependency solver
 BuildRequires:	cmake libdb-devel expat-devel rpm-devel zlib-devel
@@ -33,8 +31,8 @@ library is based on two major, but independent, blocks:
 %package devel
 Summary:	A new approach to package dependency solving
 Group:		Development/Libraries
-Requires:	libsolv-tools%{?_isa} = %{epoch}:%{version}-%{release}
-Requires:	libsolv%{?_isa} = %{epoch}:%{version}-%{release}
+Requires:	libsolv-tools%{?_isa} = %{version}-%{release}
+Requires:	libsolv%{?_isa} = %{version}-%{release}
 Requires:	rpm-devel%{?_isa}
 Requires:	cmake
 
@@ -45,7 +43,7 @@ Development files for libsolv,
 Summary:	A new approach to package dependency solving
 Group:		Development/Libraries
 Requires:	gzip bzip2 coreutils
-Requires:	libsolv%{?_isa} = %{epoch}:%{version}-%{release}
+Requires:	libsolv%{?_isa} = %{version}-%{release}
 
 %description tools
 Package dependency solver tools.
@@ -84,8 +82,6 @@ Perl bindings for sat solver.
 %prep
 %setup -q -n libsolv
 %patch0 -p1 -b .rubyinclude
-%patch1 -p1 -b .newruby
-%patch2 -p1 -b .ruby-usevendordirs
 
 %build
 %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
@@ -138,13 +134,18 @@ rm $RPM_BUILD_ROOT/usr/bin/testsolv
 
 %files -n ruby-solv
 %doc examples/rbsolv
-%{ruby_sitearch}/*
+%{ruby_vendorarch}/*
 
 %files -n python-solv
 %doc examples/pysolv
 %{python_sitearch}/*
 
 %changelog
+* Thu Jun  7 2012 Aleš Kozumplik <akozumpl at redhat.com> - 0.0.0-11.gitd39a42b%{?dist}
+- Rebase to upstream d39a42b.
+- Fix the epochs.
+- Move the ruby modules into vendorarch dir, where they are expected.
+
 * Thu May  17 2012 Aleš Kozumplik <akozumpl at redhat.com> - 0.0.0-9.git8cf7650%{?dist}
 - Rebase to upstream 8cf7650.
 - ruby bindings: fix USE_VENDORDIRS for Fedora.
diff --git a/sources b/sources
index 9d928a1..e90d4ba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b788357ff68eaddd004e3e48bbd359f5  libsolv-8cf7650.tar.xz
+36208a65be0fb2f479c8818fdcffdd1e  libsolv-d39a42b.tar.xz


More information about the scm-commits mailing list