From 0e5d37d211af0f462d35ab97629801e155e28e38 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mar 26 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 < + + + + phatch.desktop + CC0-1.0 + Process many images in one step + +

+ 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. +

+
+ http://photobatch.stani.be/ + + http://photobatch.wdfiles.com/local--files/start/Screenshot-Phatch3d.jpg + +
+EOF +cat > $RPM_BUILD_ROOT%{_datadir}/appdata/phatch-inspector.appdata.xml < + + + CC0-1.0 + phatch-inspector.desktop + + phatch.desktop + + +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 - 0.2.7-18 +- Add an AppData file for the software center + * Thu Oct 02 2014 Rex Dieter 0.2.7-17 - update icon/mime scriptlets