@ -15,30 +15,30 @@ B<dh_sip_tqt>
=head1 DESCRIPTION
=head1 DESCRIPTION
dh_sip_tqt creates the ${sip:Depends} substitution variable which must be used by
dh_sip_tqt creates the ${sip-tqt :Depends} substitution variable which must be
Python extensions built with sip in order to depend on a version of python-sip
used by Python extensions built with sip-tqt in order to depend on a version of
that exports the correct public API.
python-sip-tqt that exports the correct public API.
=cut
=cut
init();
init();
my $sip_provides = `dpkg -s python-sip-tqt`;
my $sip_tqt_ provides = `dpkg -s python-sip-tqt`;
$sip_provides =~ /^Provides:\s*(.+)$/m;
$sip_tqt_ provides =~ /^Provides:\s*(.+)$/m;
my @sip_apis = sort(grep(/sip\-api/, split(/,\s*/, $1)));
my @sip_tqt_ apis = sort(grep(/sip\-tqt \-api/, split(/,\s*/, $1)));
my $sip_api_version=$sip_apis[-1];
my $sip_tqt_ api_version=$sip_tqt _apis[-1];
foreach my $package (@{$dh{DOPACKAGES}}) {
foreach my $package (@{$dh{DOPACKAGES}}) {
addsubstvar($package, "sip:Depends", $sip_api_version);
addsubstvar($package, "sip-tqt :Depends", $sip_tqt _api_version);
}
}
=head1 SEE ALSO
=head1 SEE ALSO
L<debhelper(7)>
L<debhelper(7)>
This program is a part of python-sip-dev but is made to work with debhelper.
This program is a part of python-sip-tqt- dev but is made to work with debhelper.
=head1 AUTHORS
=head1 AUTHORS