From 7bf5be75ae8e3c2d4e8c06bba8b44f4fd495349b Mon Sep 17 00:00:00 2001
From: Austin Clements <amdragon@MIT.EDU>
Date: Sat, 28 Apr 2012 18:25:36 -0400
Subject: [PATCH] lib: Bump SO version from 2.0.0 to 3.0.0

We've changed the APIs of notmuch_database_open,
notmuch_database_create, and notmuch_database_close.

Amended by db: also bump string in bindings/python/notmuch/globals.py
---
 NEWS                               | 3 +++
 bindings/python/notmuch/globals.py | 2 +-
 lib/Makefile.local                 | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index c0cb3a28..9e32d56c 100644
--- a/NEWS
+++ b/NEWS
@@ -81,6 +81,9 @@ contrib/ from now on.
 Library changes
 ---------------
 
+The API changes detailed below break binary and source compatibility,
+so libnotmuch has been bumped to version 3.0.0.
+
 The function notmuch_database_close has been split into
 notmuch_database_close and notmuch_database_destroy
 
diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py
index 823c3e23..f5fad72a 100644
--- a/bindings/python/notmuch/globals.py
+++ b/bindings/python/notmuch/globals.py
@@ -22,7 +22,7 @@ from ctypes import CDLL, Structure, POINTER
 #-----------------------------------------------------------------------------
 #package-global instance of the notmuch library
 try:
-    nmlib = CDLL("libnotmuch.so.2")
+    nmlib = CDLL("libnotmuch.so.3")
 except:
     raise ImportError("Could not find shared 'notmuch' library.")
 
diff --git a/lib/Makefile.local b/lib/Makefile.local
index 54c4dea4..8a9aa28a 100644
--- a/lib/Makefile.local
+++ b/lib/Makefile.local
@@ -5,7 +5,7 @@
 # the library interface, (such as the deletion of an API or a major
 # semantic change that breaks formerly functioning code).
 #
-LIBNOTMUCH_VERSION_MAJOR = 2
+LIBNOTMUCH_VERSION_MAJOR = 3
 
 # The minor version of the library interface. This should be incremented at
 # the time of release for any additions to the library interface,
-- 
2.45.2