rhughes pushed to librecad (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:48:29 UTC 2015
>From 82f1c75fa9ddf31a0f48c832816cbbfef0675674 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:37:13 +0000
Subject: Add an AppData file for the software center
diff --git a/librecad.spec b/librecad.spec
index 497ffb2..bb8c057 100644
--- a/librecad.spec
+++ b/librecad.spec
@@ -10,7 +10,7 @@
Name: librecad
Version: 2.0.7
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Computer Assisted Design (CAD) Application
License: GPLv2 and GPLv2+
URL: http://librecad.org/
@@ -117,6 +117,40 @@ mv unix/resources/plugins/* %{buildroot}%{_libdir}/%{name}/plugins/
%{__install} -Dpm 644 librecad/src/plugins/document_interface.h %{buildroot}%{_includedir}/%{name}/document_interface.h
%{__install} -Dpm 644 librecad/src/plugins/qc_plugininterface.h %{buildroot}%{_includedir}/%{name}/qc_plugininterface.h
+# 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/%{name}.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Ryan Lerch <rlerch at redhat.com> -->
+<!--
+BugReportURL: https://sourceforge.net/p/librecad/feature-requests/158/
+SentUpstream: 2014-09-18
+-->
+<application>
+ <id type="desktop">librecad.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>2D Computer Aided Design (CAD)</summary>
+ <description>
+ <p>
+ LibreCAD is an 2D Computer Aided Design (CAD) application for creating plans
+ and designs on your computer.
+ It can be used to make accurate 2D representations of floorplans, part designs,
+ and just about anything that can be represented as a flat 2D plan.
+ </p>
+ </description>
+ <url type="homepage">http://librecad.org/</url>
+ <screenshots>
+ <screenshot type="default">http://wiki.librecad.org/images/f/f8/Lcnotclosed.png</screenshot>
+ </screenshots>
+</application>
+EOF
+
mkdir -p %{buildroot}%{_datadir}/%{name}/library/architecture
cp -a Architect8-LCAD %{buildroot}%{_datadir}/%{name}/library/architecture
@@ -149,7 +183,7 @@ fi
%{_bindir}/%{name}
%{_bindir}/ttf2lff
%{_datadir}/applications/%{name}.desktop
-#%{_datadir}/appdata/%{name}.appdata.xml
+%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
%dir %{_datadir}/%{name}
@@ -180,6 +214,9 @@ fi
%{_datadir}/%{name}/patterns/
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 2.0.7-3
+- Add an AppData file for the software center
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 2.0.7-2
- Rebuild for boost 1.57.0
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/librecad.git/commit/?h=master&id=82f1c75fa9ddf31a0f48c832816cbbfef0675674
More information about the scm-commits
mailing list