This one has the Breaks/Replaces and a Recommends. Please feel free to adjust the changelog entry.
Index: debian/changelog =================================================================== --- debian/changelog (revision 47253) +++ debian/changelog (working copy) @@ -1,3 +1,13 @@ +libpeas (1.16.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Split the Python 2 and 3 loaders into separate binary packages so + that we can better manage the transition to an all-Python 3 world. + Dependent packages should now add the proper Depends for the + Python loaders that they require. (Closes: #806824) + + -- Barry Warsaw <[email protected]> Fri, 15 Jan 2016 10:09:02 -0500 + libpeas (1.16.0-1) unstable; urgency=medium * New upstream release. Index: debian/control.in =================================================================== --- debian/control.in (revision 47253) +++ debian/control.in (working copy) @@ -31,9 +31,34 @@ Depends: ${misc:Depends}, ${shlibs:Depends}, libpeas-common +Recommends: libpeas-1.0-0-python3loader | libpeas-1.0-0-python2loader Description: Application plugin library libpeas is a library that allows applications to support plugins. +Package: libpeas-1.0-0-python3loader +Section: libs +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends}, + libpeas-common +Replaces: libpeas-1.0-0 (<< 1.16.0-1.1~) +Breaks: libpeas-1.0-0 (<< 1.16.0-1.1~) +Description: Application plugin library + libpeas is a library that allows applications to support plugins. + This packages contains the Python 3 loader shared library. + +Package: libpeas-1.0-0-python2loader +Section: libs +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends}, + libpeas-common +Replaces: libpeas-1.0-0 (<< 1.16.0-1.1~) +Breaks: libpeas-1.0-0 (<< 1.16.0-1.1~) +Description: Application plugin library + libpeas is a library that allows applications to support plugins. + This package contains the Python 2 loader shared library. + Package: libpeas-dev Section: libdevel Architecture: any Index: debian/libpeas-1.0-0-python2loader.install =================================================================== --- debian/libpeas-1.0-0-python2loader.install (nonexistent) +++ debian/libpeas-1.0-0-python2loader.install (working copy) @@ -0,0 +1 @@ +usr/lib/libpeas-1.0/loaders/libpythonloader.so Index: debian/libpeas-1.0-0-python3loader.install =================================================================== --- debian/libpeas-1.0-0-python3loader.install (nonexistent) +++ debian/libpeas-1.0-0-python3loader.install (working copy) @@ -0,0 +1 @@ +usr/lib/libpeas-1.0/loaders/libpython3loader.so Index: debian/libpeas-1.0-0.install =================================================================== --- debian/libpeas-1.0-0.install (revision 47253) +++ debian/libpeas-1.0-0.install (working copy) @@ -1,2 +1 @@ usr/lib/*.so.* -usr/lib/libpeas-1.0/loaders/*.so

