From b3ac9802d4a3130249d6c4c7c1aa3ccd4fc7e473 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 26 Mar 2015 16:07:07 +0000 Subject: [PATCH] Add an AppData file for the software center --- cmake.spec | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/cmake.spec b/cmake.spec index 23059cb..a627fed 100644 --- a/cmake.spec +++ b/cmake.spec @@ -13,7 +13,7 @@ Name: cmake Version: 3.2.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Cross-platform make system Group: Development/Tools @@ -160,6 +160,44 @@ done desktop-file-install --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ %{buildroot}/%{_datadir}/applications/CMake.desktop + +# Register as an application to be visible in the software center +# +# NOTE: It would be *awesome* if this file was maintained by the upstream +# project, translated and installed into the right place during `make install`. +# +# See http://www.freedesktop.org/software/appstream/docs/ for more details. +# +mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/CMake.appdata.xml < + + + + CMake.desktop + CC0-1.0 + CMake GUI + Create new CMake projects + +

+ CMake is an open source, cross platform build system that can build, test, + and package software. CMake GUI is a graphical user interface that can + create and edit CMake projects. +

+
+ http://www.cmake.org + + https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/CMake/a.png + + +
+EOF + %endif @@ -225,6 +263,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %if %{with gui} %files gui %{_bindir}/cmake-gui +%{_datadir}/appdata/*.appdata.xml %{_datadir}/applications/CMake.desktop %{_datadir}/mime/packages/cmakecache.xml %{_datadir}/icons/hicolor/*/apps/CMakeSetup.png @@ -233,6 +272,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %changelog +* Thu Mar 26 2015 Richard Hughes - 3.2.1-5 +- Add an AppData file for the software center + * Mon Mar 23 2015 Daniel Vrátil - 3.2.1-4 - cmake.prov: handle exceptions