diff options
Diffstat (limited to 't/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec')
4 files changed, 29 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in new file mode 100644 index 0000000..163f8bc --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: python +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: dpkg-dev (>= 1.18.7), debhelper (>= 10.9) +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${misc:Depends} +Description: Test package + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules new file mode 100755 index 0000000..ec2dec6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog -SDate)" +%s) + +export SOURCE_DATE_EPOCH = $(shell date +%s) + +%: + dh $@ diff --git a/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values new file mode 100644 index 0000000..b8dc1b6 --- /dev/null +++ b/t/recipes/checks/debian/rules/rules-unnecessary-source-date-epoch/build-spec/fill-values @@ -0,0 +1,4 @@ +Skeleton: upload-native +Testname: rules-unnecessary-source-date-epoch +Dh-Compat-Level: 10 +Description: Test for unnecessary SOURCE_DATE_EPOCH assignments |