debian/rules: Fix links to the shared libraries for the -dev packages

This commit is contained in:
Laurent Bigonville 2022-07-10 11:46:19 +02:00
parent e4896f6084
commit e20fede4d1
3 changed files with 12 additions and 6 deletions

3
debian/changelog vendored
View File

@ -27,8 +27,9 @@ nut (2.8.0-1) UNRELEASED; urgency=medium
* debian/nut-server.lintian-overrides: Update to properly override
udev-rule-missing-subsystem
* debian/rules: Build the package in parallel
* debian/rules: Fix links to the shared libraries for the -dev packages
-- Laurent Bigonville <bigon@debian.org> Sun, 10 Jul 2022 11:28:35 +0200
-- Laurent Bigonville <bigon@debian.org> Sun, 10 Jul 2022 11:54:59 +0200
nut (2.7.4-14) unstable; urgency=medium

View File

@ -5,5 +5,5 @@ usr/lib/*/libnutclient.a
usr/lib/*/libnutclient.so
usr/lib/*/pkgconfig/libnutclient.pc
usr/lib/*/pkgconfig/libnutclientstub.pc
lib/*/libnutclientstub.a
lib/*/libnutclientstub.so
usr/lib/*/libnutclientstub.a
usr/lib/*/libnutclientstub.so

11
debian/rules vendored
View File

@ -76,16 +76,21 @@ override_dh_auto_install-arch:
mv $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libupsclient.a \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.a
rm -f $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so
ln -s /lib/$(DEB_HOST_MULTIARCH)/libupsclient.so.4 \
ln -s /lib/$(DEB_HOST_MULTIARCH)/libupsclient.so.6 \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so
mv $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libnutclient.a \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnutclient.a
rm -f $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libnutclient.so
ln -s /lib/$(DEB_HOST_MULTIARCH)/libnutclient.so.0 \
ln -s /lib/$(DEB_HOST_MULTIARCH)/libnutclient.so.2 \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnutclient.so
mv $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libnutclientstub.a \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnutclientstub.a
rm -f $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libnutclientstub.so
ln -s /lib/$(DEB_HOST_MULTIARCH)/libnutclientstub.so.1 \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnutclientstub.so
rm -f $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/libnutscan.so
ln -s /lib/$(DEB_HOST_MULTIARCH)/libnutscan.so.1 \
ln -s /lib/$(DEB_HOST_MULTIARCH)/libnutscan.so.2 \
$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libnutscan.so
# Move daemons and install wrappers