[med-svn] [Git][med-team/ampl-netlib-solvers][master] fixed d/.install to fit multi architectures and rules to rename amplsolver properly
Andrei Rozanski
gitlab at salsa.debian.org
Thu Sep 24 14:50:01 BST 2020
Andrei Rozanski pushed to branch master at Debian Med / ampl-netlib-solvers
Commits:
72f4e2a0 by Andrei Rozanski at 2020-09-24T15:48:02+02:00
fixed d/.install to fit multi architectures and rules to rename amplsolver properly
- - - - -
2 changed files:
- debian/ampl-netlib-solvers.install
- debian/rules
Changes:
=====================================
debian/ampl-netlib-solvers.install
=====================================
@@ -1,3 +1,3 @@
#! /usr/bin/dh-exec
-sys.x86_64.Linux/*.a usr/lib/${DEB_HOST_MULTIARCH}/
-sys.x86_64.Linux/*.h usr/include/ampl-netlib-solvers/
+sys.*/*.a usr/lib/${DEB_HOST_MULTIARCH}/
+sys.*/*.h usr/include/ampl-netlib-solvers/
=====================================
debian/rules
=====================================
@@ -3,6 +3,9 @@
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
+AMPL_FILE:=$(shell find ./ -name amplsolver.a)
+REN_AMPL_FILE:=$(addsuffix libamplsolver.a,$(dir $(AMPL_FILE)))
+
include /usr/share/dpkg/default.mk
# this provides:
# DEB_SOURCE: the source package name
@@ -27,8 +30,8 @@ include /usr/share/dpkg/default.mk
#endif
override_dh_install:
+ mv $(AMPL_FILE) $(REN_AMPL_FILE)
dh_install
- mv usr/lib/${DEB_HOST_MULTIARCH}/amplsolver.a usr/lib/${DEB_HOST_MULTIARCH}/libamplsolver.a
get-orig-source:
. debian/get-orig-source
View it on GitLab: https://salsa.debian.org/med-team/ampl-netlib-solvers/-/commit/72f4e2a0bd44309a33c37f9ab9261d22cf52979c
--
View it on GitLab: https://salsa.debian.org/med-team/ampl-netlib-solvers/-/commit/72f4e2a0bd44309a33c37f9ab9261d22cf52979c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200924/0bf769d6/attachment.html>
More information about the debian-med-commit
mailing list