[sparkleshare] Add appdata file

Nikos Roussos comzeradd at fedoraproject.org
Fri Sep 27 12:05:12 UTC 2013


commit 73c7bb1551b5fa5bce4c72f9301bd19b6baa27f3
Author: Nikos Roussos <nikos at roussos.cc>
Date:   Fri Sep 27 15:04:33 2013 +0300

    Add appdata file

 sparkleshare.appdata.xml |   17 +++++++++++++++++
 sparkleshare.spec        |   16 ++++++++++++++--
 2 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/sparkleshare.appdata.xml b/sparkleshare.appdata.xml
new file mode 100644
index 0000000..62a7a4a
--- /dev/null
+++ b/sparkleshare.appdata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">sparkleshare.desktop</id>
+ <licence>CC0</licence>
+ <name>SparkleShare</name>
+ <summary>Easy file sharing based on git repositories</summary>
+ <description>
+  <p>
+  Easy file sharing based on git repositories. A special folder is setup and directories/files placed within are placed in a git-based version control system and synchronized elsewhere.
+  </p>
+  <p>SparkleShare creates a special folder on your computer. You can add remotely hosted folders (or "projects") to this folder. These projects will be automatically kept in sync with both the host and all of your peers when someone adds, removes or edits a file.</p>
+ </description>
+ <screenshots>
+  <screenshot type="default" width="682" height="433">http://share.roussos.cc/sparkleshare1.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://sparkleshare.org</url>
+</application>
diff --git a/sparkleshare.spec b/sparkleshare.spec
index 0fbc7e7..f0b8692 100644
--- a/sparkleshare.spec
+++ b/sparkleshare.spec
@@ -1,11 +1,15 @@
 Name:           sparkleshare
 Version:        1.1.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Easy file sharing based on git repositories
 
 License:        GPLv3
 URL:            http://www.sparkleshare.org/
-Source0:        https://github.com/downloads/hbons/SparkleShare/%{name}-linux-%{version}-tar.gz
+Source0:        https://bitbucket.org/hbons/sparkleshare/downloads/%{name}-linux-%{version}-tar.gz
+Source1:        %{name}.appdata.xml
+# Temporary fix on .desktop for Software Center
+# https://github.com/hbons/SparkleShare/pull/1393
+Patch0:         %{name}-%{version}-desktop.patch
 
 BuildRequires:  mono-devel
 BuildRequires:  ndesk-dbus-devel
@@ -21,6 +25,7 @@ Requires:       git >= 1.7.12
 Requires:       yelp
 
 ExclusiveArch:  %{mono_arches}
+ExcludeArch:    armv7hl
 
 
 #https://fedoraproject.org/wiki/Packaging:Mono#Empty_debuginfo
@@ -35,6 +40,7 @@ system and synchronized elsewhere.
 
 %prep
 %setup -q
+%patch0 -p1 -b .orig
 
 
 %build
@@ -46,6 +52,8 @@ GMCS_FLAGS=-codepage:utf8 make
 make install DESTDIR=%{buildroot}
 desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
 desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-invite-opener.desktop
+mkdir -p %{buildroot}%{_datarootdir}/appdata/
+install -m 644 %{SOURCE1} %{buildroot}%{_datarootdir}/appdata/%{name}.appdata.xml
 
 
 %post
@@ -81,9 +89,13 @@ fi
 %{_datadir}/icons/ubuntu-mono-dark/status/24/*
 %{_datadir}/icons/ubuntu-mono-light/status/24/*
 %doc legal/Authors.txt legal/License.txt legal/Trademark.txt News.txt README.md
+%{_datarootdir}/appdata/%{name}.appdata.xml
 
 
 %changelog
+* Thu Sep 19 2013 Nikos Roussos <comzeradd at fedoraproject.org> 1.1.0-3
+- Add appdata file.
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list