diff options
author | Richard Hughes <richard@hughsie.com> | 2018-01-30 10:30:21 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2018-05-03 08:59:40 +0100 |
commit | 00d0d219f990f2873edce121c229e9d8acf4ddf7 (patch) | |
tree | 01596b9916c2ef22d4c34f7e307e1c11690c0a63 /data | |
parent | ca9274af691856ba0ae7b2d543dce66f0aba61d4 (diff) | |
download | appstream-glib-00d0d219f990f2873edce121c229e9d8acf4ddf7.tar.gz |
Convert local icons found in metainfo fileswip/hughsie/icons-in-metainfo
This allows us to support desktop-less components that specify a cached icon.
The icon search code has been split into a new plugin that is run after the
appdata and desktop plugins have added the AsbApp to the list of available apps.
Diffstat (limited to 'data')
-rw-r--r-- | data/tests/driver-1-1.fc27.noarch.rpm | bin | 0 -> 7404 bytes | |||
-rw-r--r-- | data/tests/driver.spec | 26 | ||||
-rwxr-xr-x | data/tests/rpmbuild/build.sh | 2 | ||||
-rw-r--r-- | data/tests/rpmbuild/driver.metainfo.xml | 10 |
4 files changed, 38 insertions, 0 deletions
diff --git a/data/tests/driver-1-1.fc27.noarch.rpm b/data/tests/driver-1-1.fc27.noarch.rpm Binary files differnew file mode 100644 index 0000000..2d3dbf6 --- /dev/null +++ b/data/tests/driver-1-1.fc27.noarch.rpm diff --git a/data/tests/driver.spec b/data/tests/driver.spec new file mode 100644 index 0000000..d024314 --- /dev/null +++ b/data/tests/driver.spec @@ -0,0 +1,26 @@ +Summary: A hardware driver +Name: driver +Version: 1 +Release: 1%{?dist} +URL: http://people.freedesktop.org/ +License: GPLv2+ +BuildArch: noarch + +Source6: driver.metainfo.xml +Source17: app.png + +%description +This is a hardware driver. + +%install +install -Dp %{SOURCE6} $RPM_BUILD_ROOT/%{_datadir}/metainfo/driver.metainfo.xml +install -Dp %{SOURCE17} $RPM_BUILD_ROOT%{_datadir}/pixmaps/driver.png + +%files +%defattr(-,root,root) +%{_datadir}/metainfo/driver.metainfo.xml +%{_datadir}/pixmaps/driver.png + +%changelog +* Tue Jan 30 2018 Richard Hughes <richard@hughsie.com> - 1-1 +- Initial version diff --git a/data/tests/rpmbuild/build.sh b/data/tests/rpmbuild/build.sh index 1b62734..6d1d4f2 100755 --- a/data/tests/rpmbuild/build.sh +++ b/data/tests/rpmbuild/build.sh @@ -3,6 +3,8 @@ msgfmt en_GB.po -o en_GB.mo gcc -o app.bin app.c `pkg-config --cflags --libs gtk+-3.0` cp * ~/rpmbuild/SOURCES/ rpmbuild -ba ../app.spec +rpmbuild -ba ../driver.spec rpmbuild -ba ../composite.spec cp ~/rpmbuild/RPMS/app*.rpm ../ +cp ~/rpmbuild/RPMS/driver*.rpm ../ cp ~/rpmbuild/RPMS/composite*.rpm ../ diff --git a/data/tests/rpmbuild/driver.metainfo.xml b/data/tests/rpmbuild/driver.metainfo.xml new file mode 100644 index 0000000..32467b0 --- /dev/null +++ b/data/tests/rpmbuild/driver.metainfo.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="driver"> + <id>driver</id> + <name>Driver</name> + <summary>A hardware driver</summary> + <metadata_license>CC0-1.0</metadata_license> + <project_license>GPL-2.0+</project_license> + <updatecontact>richard_at_hughsie.com</updatecontact> + <icon type="local">/usr/share/pixmaps/driver.png</icon> +</component> |