File: rules

package info (click to toggle)
spglib 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,392 kB
  • sloc: ansic: 126,620; python: 7,933; cpp: 1,098; f90: 888; ruby: 792; makefile: 109; sh: 41
file content (44 lines) | stat: -rwxr-xr-x 1,227 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
#!/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,ruby

override_dh_auto_configure:
	dh_auto_configure -- -DWITH_Fortran=ON
	dh_auto_configure --buildsystem=ruby

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

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --buildsystem=pybuild -- --dir python
	ln -s $(DEB_HOST_MULTIARCH)/libsymspg.so debian/tmp/usr/lib
	ABS_TOP_DESTDIR=$(CURDIR)/debian/tmp/usr dh_auto_install --buildsystem=ruby
	rm debian/tmp/usr/lib/libsymspg.so debian/tmp/usr/bin/spglib_example_fortran.X

override_dh_auto_test:
# Tests on mips take too long, and are killed due to inactivity
ifneq ($(DEB_BUILD_ARCH), mips)
	dh_auto_test --buildsystem=pybuild -- --dir python --test-pytest
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 --buildsystem=pybuild -- --dir python
	dh_auto_clean --buildsystem=ruby
	rm -rf python/spglib.egg-info