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 47 48 49 50 51
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DPKG_EXPORT_BUILD_FLAGS=1
include /usr/share/dpkg/buildflags.mk
%:
dh $@
override_dh_clean:
dh_clean
rm -f changelog.txt
override_dh_auto_configure:
( cd auto; perl -I ./ mk-src.pl; perl -I ./ mk-doc.pl; touch auto ; cd .. )
dh_auto_configure -- \
--enable-pkgdatadir=/usr/lib/aspell \
--enable-pkglibdir=/usr/lib/aspell/$(DEB_HOST_MULTIARCH) \
--enable-debian-dict-dir=/usr/lib/aspell \
--enable-32-bit-hash-fun
override_dh_auto_build:
# Save a pristine copy of original changelog. Since it will be rebuilt
# again later, use -n to preserve the original file instead of
# having it overwritten with autogenerated file. Needed for multiarch
# in case rebuild happens with different makeinfo versions resulting
# in different results.
lynx -dump -nolist manual/aspell.html/ChangeLog.html > changelog.txt
dh_auto_build
make -C manual aspell.html aspell-dev.html
override_dh_install-arch:
dh_install -a
install -m644 debian/aspell.compat debian/aspell/usr/share/aspell/
# Empty the dependency_libs lines in the .la files
sed -i "s,^dependency_libs=.*,dependency_libs=''," \
debian/libaspell15/usr/lib/aspell/$(DEB_HOST_MULTIARCH)/*.la
sed -i "s,^dependency_libs=.*,dependency_libs=''," \
debian/libaspell-dev/usr/lib/$(DEB_HOST_MULTIARCH)/*.la \
debian/libpspell-dev/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
override_dh_install-indep:
dh_install --sourcedir=manual -paspell-doc aspell.html usr/share/doc/aspell-doc/
dh_install --sourcedir=manual -paspell-doc aspell-dev.html usr/share/doc/aspell-doc/
dh_install -i
override_dh_installdocs:
dh_installdocs -A changelog.txt
override_dh_makeshlibs:
dh_makeshlibs -- -V'libaspell15 (>= 0.60.7)' -Xusr/lib/aspell
|