diff options
Diffstat (limited to 't/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec')
8 files changed, 67 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml new file mode 100644 index 0000000..a823b8d --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-invalid.metadata.xml @@ -0,0 +1 @@ +This is not a valid XML document. diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml new file mode 100644 index 0000000..31d281e --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata-obsolete.metadata.xml @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="UTF-8"?> +<application/> diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop new file mode 100644 index 0000000..4c91430 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=appstream-udev-data +Terminal=true +Exec=true +Categories=ConsoleOnly;Game; +Keywords=Text; diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs new file mode 100644 index 0000000..402f5d5 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.dirs @@ -0,0 +1,2 @@ +usr/share/metainfo +usr/share/appdata diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml new file mode 100644 index 0000000..82294c1 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component> + <id>appstream-udev-data</id> + <metadata_license>MIT</metadata_license> + <name>lintian appstream-udev-data</name> + <summary>Test AppStream and udev related checks in lintian</summary> + <description> + <p> + 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. + </p> + </description> + <provides> + <modalias>usb:v0000p0001d*</modalias> + <modalias>usb:v0000p0002d*</modalias> + <modalias>usb:v0000p0003d*</modalias> + <modalias>usb:v0000p0004d*</modalias> + <modalias>usb:v0000p000ad*</modalias> + </provides> +</component> diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev new file mode 100644 index 0000000..e2f2841 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/appstream-metadata.udev @@ -0,0 +1,14 @@ +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0001", \ + MODE="0666" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0002", \ + MODE="0660", GROUP="plugdev" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0003", \ + TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="0004", \ + MODE="0660", GROUP="plugdev", TAG+="uaccess" + +SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="0000", ATTR{idProduct}=="000a", \ + ID_TEST_DEVICE="1" diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules new file mode 100644 index 0000000..5fb0c35 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +DESTDIR = debian/$(shell dh_listpackages) +APPSYNC_DIR=$(DESTDIR)/usr/share/metainfo/ +OBSOLETE_APPSYNC_DIR=$(DESTDIR)/usr/share/appdata/ +UDEV_DIR=$(DESTDIR)/lib/udev/rules.d/ + +%: + dh $@ + +override_dh_install: + dh_install + install -m 0644 debian/appstream-metadata.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-invalid.metadata.xml $(APPSYNC_DIR) + install -m 0644 debian/appstream-metadata-obsolete.metadata.xml $(OBSOLETE_APPSYNC_DIR) diff --git a/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values new file mode 100644 index 0000000..cfd5595 --- /dev/null +++ b/t/recipes/checks/debian/copyright/dep5/appstream-metadata/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: appstream-metadata +Description: Test AppStream and udev metadata in binary package |