File: rules

package info (click to toggle)
spglib 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,712 kB
  • sloc: ansic: 27,746; python: 5,784; ruby: 792; f90: 716; makefile: 97; sh: 69
file content (46 lines) | stat: -rwxr-xr-x 1,075 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME = spglib
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

override_dh_autoreconf:

override_dh_auto_configure:
	dh_auto_configure
	for TPL in debian/templates/*; \
	do sed -e "s@##DEB_HOST_MULTIARCH##@$(DEB_HOST_MULTIARCH)@g" \
		$${TPL} > debian/$$(basename $${TPL}); \
	done

override_dh_auto_build:
	dh_auto_build
	dh_auto_build -O--buildsystem=pybuild -- --dir python

override_dh_auto_install:
	dh_auto_install
	dh_auto_install -O--buildsystem=pybuild -- --dir python

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	dh_auto_test -O--buildsystem=pybuild -- --dir python
endif

override_dh_makeshlibs:
	dh_makeshlibs
	sed -i 's/-[0-9]*$$//' debian/libsymspg1/DEBIAN/symbols

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_auto_clean:
	dh_auto_clean
	dh_auto_clean -O--buildsystem=pybuild -- --dir python
	rm -rf python/spglib.egg-info
	for TPL in debian/templates/*; \
	do rm -f debian/$$(basename $${TPL}); \
	done