[clipit] Fix MATE autostart. Add appdata.
Nikos Roussos
comzeradd at fedoraproject.org
Thu Sep 12 11:24:01 UTC 2013
commit 19b83f6639e6ad0a4da696e03c0af14f2348d30c
Author: Nikos Roussos <nikos at roussos.cc>
Date: Thu Sep 12 14:23:35 2013 +0300
Fix MATE autostart. Add appdata.
clipit-1.4.1-de.po.patch | 11 -----------
clipit-1.4.1-glib.patch | 11 -----------
clipit-1.4.2-mate.patch | 9 +++++++++
clipit.appdata.xml | 27 +++++++++++++++++++++++++++
clipit.spec | 14 ++++++++++++--
5 files changed, 48 insertions(+), 24 deletions(-)
---
diff --git a/clipit-1.4.2-mate.patch b/clipit-1.4.2-mate.patch
new file mode 100644
index 0000000..5c63eb1
--- /dev/null
+++ b/clipit-1.4.2-mate.patch
@@ -0,0 +1,9 @@
+--- clipit-1.4.2/data/clipit-startup.desktop.in.orig 2013-09-12 10:49:12.700691560 +0300
++++ clipit-1.4.2/data/clipit-startup.desktop.in 2013-09-12 10:49:23.615723278 +0300
+@@ -5,5 +5,5 @@
+ Exec=clipit
+ Terminal=false
+ Type=Application
+-OnlyShowIn=GNOME;XFCE;LXDE;Unity;
++OnlyShowIn=GNOME;XFCE;LXDE;Unity;MATE;
+ X-GNOME-Autostart-enabled=true
diff --git a/clipit.appdata.xml b/clipit.appdata.xml
new file mode 100644
index 0000000..7bff058
--- /dev/null
+++ b/clipit.appdata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">clipit.desktop</id>
+ <licence>CC0</licence>
+ <name>ClipIt</name>
+ <summary>A lightweight, fully featured clipboard manager</summary>
+ <description>
+ <p>
+ ClipIt is a lightweight, fully featured GTK+ clipboard manager.
+ It was forked from Parcellite, adding additional features and bug-fixes to the project.
+ </p>
+ <p>ClipIts main features are:</p>
+ <ul>
+ <li>Save a history of your last copied items</li>
+ <li>Search through the history</li>
+ <li>Global hot-keys for most used functions</li>
+ <li>Execute actions with clipboard items</li>
+ <li>Exclude specific items from history</li>
+ </ul>
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default" width="300" height="294">http://clipit.rspwn.com/files/2011/01/screenshot-300x294.jpg</screenshot>
+ <screenshot width="300" height="291">http://clipit.rspwn.com/files/2011/01/screenshot4-300x291.jpg</screenshot>
+ </screenshots>
+ <url type="homepage">http://clipit.rspwn.com/</url>
+</application>
diff --git a/clipit.spec b/clipit.spec
index 2e40ea3..0d172a5 100644
--- a/clipit.spec
+++ b/clipit.spec
@@ -1,12 +1,16 @@
Name: clipit
Version: 1.4.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: A lightweight, fully featured GTK+ clipboard manager
Group: User Interface/Desktops
License: GPLv3+
URL: http://clipit.rspwn.com/
Source0: http://downloads.sourceforge.net/gtk%{name}/%{name}-%{version}.tar.gz
+# clipit doesn't autostart in MATE
+# Fixed upstream but not yet merged
+Source1: %{name}.appdata.xml
+Patch0: %{name}-%{version}-mate.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel
@@ -28,7 +32,7 @@ ClipIts main features are:
%prep
%setup -q
-
+%patch0 -p1 -b .orig
%build
%configure
@@ -46,6 +50,8 @@ desktop-file-install --delete-original \
desktop-file-install --delete-original \
--dir %{buildroot}%{_sysconfdir}/xdg/autostart \
%{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
+mkdir -p %{buildroot}%{_datarootdir}/appdata/
+install -m 644 %{SOURCE1} %{buildroot}%{_datarootdir}/appdata/%{name}.appdata.xml
%clean
@@ -73,9 +79,13 @@ fi
%{_datadir}/icons/hicolor/scalable/apps/%{name}-trayicon.svg
%{_datadir}/applications/%{name}.desktop
%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
+%{_datarootdir}/appdata/%{name}.appdata.xml
%changelog
+* Thu Sep 12 2013 Nikos Roussos <nikos at autoverse.net> 1.4.2-5
+- Fix MATE autostart. Add appdata
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list