[Git][debian-gis-team/pyepr][master] Use execute_before instead of override in rules file.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sun Aug 13 09:25:15 BST 2023
Bas Couwenberg pushed to branch master at Debian GIS Project / pyepr
Commits:
a816d03b by Bas Couwenberg at 2023-08-13T10:21:38+02:00
Use execute_before instead of override in rules file.
- - - - -
3 changed files:
- debian/changelog
- + debian/clean
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -3,6 +3,7 @@ pyepr (1.1.4-2) UNRELEASED; urgency=medium
* Team upload.
* Bump Standards-Version to 4.6.2, no changes.
* Bump debhelper compat to 13.
+ * Use execute_before instead of override in rules file.
-- Bas Couwenberg <sebastic at debian.org> Wed, 18 Jan 2023 17:09:19 +0100
=====================================
debian/clean
=====================================
@@ -0,0 +1,5 @@
+*-info/
+build/
+doc/_build/
+doc/html/
+src/epr.c
=====================================
debian/rules
=====================================
@@ -6,57 +6,39 @@ export PYBUILD_NAME=epr
export PYBUILD_DISABLE=test
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
-
include /usr/share/dpkg/pkg-info.mk
BUILD_DATE="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)"
SPHINXOPTS := -D today=\"$(BUILD_DATE)\"
SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\"
-
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
export CFLAGS ?= -O0
endif
-
%:
dh $@ --with python3,numpy3,sphinxdoc --buildsystem=pybuild
+execute_before_dh_installdocs:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
+ $(MAKE) SPHINXOPTS="$(SPHINXOPTS)" doc
+ $(RM) -r doc/_build/html/_downloads
+else
+ mkdir -p doc/_build/html
+endif
+
+override_dh_sphinxdoc:
+ifneq "$(shell dh_listpackages | grep -- -doc)" ""
+ dh_sphinxdoc
+endif
+
+override_dh_installchangelogs:
+ dh_installchangelogs -k doc/NEWS.rst
override_dh_python3:
dh_python3 -N python-epr-doc
-
override_dh_numpy3:
dh_numpy3 -N python-epr-doc
-
-override_dh_auto_clean:
- dh_auto_clean
- $(RM) src/epr.c
- $(RM) -r doc/_build doc/html
- $(RM) -r build
- $(RM) -r *.egg-info
-
-
-override_dh_installchangelogs:
- dh_installchangelogs -k doc/NEWS.rst
-
-
override_dh_compress:
dh_compress -X.txt -X.rst -X.html -X.py
-
-
-override_dh_sphinxdoc:
-ifneq "$(shell dh_listpackages | grep -- -doc)" ""
- dh_sphinxdoc
-endif
-
-
-override_dh_installdocs:
-ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
- $(MAKE) SPHINXOPTS="$(SPHINXOPTS)" doc
- $(RM) -r doc/_build/html/_downloads
-else
- mkdir -p doc/_build/html
-endif
- dh_installdocs
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyepr/-/commit/a816d03b8996a69e0bd117d38fa2b3e43b01e30f
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyepr/-/commit/a816d03b8996a69e0bd117d38fa2b3e43b01e30f
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/pkg-grass-devel/attachments/20230813/66625c3a/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list