rhughes pushed to phatch (master). "Add an AppData file for the software center"
notifications at fedoraproject.org
notifications at fedoraproject.org
Thu Mar 26 16:54:51 UTC 2015
>From 0e5d37d211af0f462d35ab97629801e155e28e38 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Thu, 26 Mar 2015 16:40:56 +0000
Subject: Add an AppData file for the software center
diff --git a/phatch.spec b/phatch.spec
index 887fd4c..7b80593 100644
--- a/phatch.spec
+++ b/phatch.spec
@@ -3,7 +3,7 @@
Name: phatch
Version: 0.2.7
-Release: 17%{?dist}
+Release: 18%{?dist}
Summary: Photo batch processor
Group: Applications/Multimedia
License: GPLv3+
@@ -98,6 +98,53 @@ desktop-file-install --vendor="" \
# for non-executable-script
chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/{%{name}.py,lib/pyWx/dialogsInspector.py,lib/metadataTest.py,other/surd.py,other/EXIF.py,other/pep8.py}
+# 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://bugs.launchpad.net/phatch/+bug/1322916
+SentUpstream: 2014-09-17
+-->
+<application>
+ <id type="desktop">phatch.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <summary>Process many images in one step</summary>
+ <description>
+ <p>
+ Phatch (PHoto bATCH Processor) is an application to batch process images.
+ With phatch, you specify a group of images that you want to process, and then
+ specify the effects you want to apply; once you click apply the process is run
+ automatically without having to edit each image individually.
+ Phatch has many effects you can apply to your images, including resizing,
+ rotating, renaming, colour effects (like desaturation and color warmth),
+ drop shadows and adding a background.
+ </p>
+ </description>
+ <url type="homepage">http://photobatch.stani.be/</url>
+ <screenshots>
+ <screenshot type="default">http://photobatch.wdfiles.com/local--files/start/Screenshot-Phatch3d.jpg</screenshot>
+ </screenshots>
+</application>
+EOF
+cat > $RPM_BUILD_ROOT%{_datadir}/appdata/phatch-inspector.appdata.xml <<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Richard Hughes <richard at hughsie.com> -->
+<component type="desktop">
+ <metadata_license>CC0-1.0</metadata_license>
+ <id>phatch-inspector.desktop</id>
+ <metadata>
+ <value key="X-Merge-With-Parent">phatch.desktop</value>
+ </metadata>
+</component>
+EOF
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
@@ -120,6 +167,7 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%files
%doc COPYING docs/build/html/*
+%{_datadir}/appdata/%{name}*.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-inspector.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*.png
@@ -148,6 +196,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%changelog
+* Thu Mar 26 2015 Richard Hughes <rhughes at redhat.com> - 0.2.7-18
+- Add an AppData file for the software center
+
* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 0.2.7-17
- update icon/mime scriptlets
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/phatch.git/commit/?h=master&id=0e5d37d211af0f462d35ab97629801e155e28e38
More information about the scm-commits
mailing list