summaryrefslogtreecommitdiff
path: root/debian/rules
blob: ccf3f54652fe728ae9c97c8617018e8a6053c293 (plain)
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
#!/usr/bin/make -f

python_mod_name := rpm_tizen

CPPFLAGS += $(shell pkg-config --cflags nss)

%:
	dh $@ --with python3,autoreconf,autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- --disable-dependency-tracking \
			--libdir=/usr/lib/librpm-tizen \
			--with-lua \
			--without-acl \
			--without-cap \
			--enable-shared \
			--enable-python \
			--with-external-db \
			--build=${DEB_BUILD_GNU_CPU}-tizen-linux \
			PYTHON_MODULENAME=$(python_mod_name) \
			LUA_PKGCONFIG_NAME=lua5.1 \
			CPPFLAGS="$(CPPFLAGS)"

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	# Install extra sources
	install -m644 packaging/rpm-tizen_macros debian/tmp/usr/lib/librpm-tizen/rpm/tizen_macros
	install -d debian/tmp/usr/lib/librpm-tizen/rpm/tizen
	ln -s ../tizen_macros debian/tmp/usr/lib/librpm-tizen/rpm/tizen/macros