[easystroke] add appdata
Tom Callaway
spot at fedoraproject.org
Tue Dec 9 18:07:14 UTC 2014
commit ca1e7f25631eb9e7087a4604aa0839221fb29138
Author: Tom Callaway <spot at fedoraproject.org>
Date: Tue Dec 9 13:07:21 2014 -0500
add appdata
easystroke.appdata.xml | 43 +++++++++++++++++++++++++++++++++++++++++++
easystroke.spec | 14 +++++++++++++-
2 files changed, 56 insertions(+), 1 deletions(-)
---
diff --git a/easystroke.appdata.xml b/easystroke.appdata.xml
new file mode 100644
index 0000000..8de32c3
--- /dev/null
+++ b/easystroke.appdata.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Thomas Jaeger <ThJaeger at gmail.com> -->
+<component type="desktop">
+ <id>easystroke.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>ISC</project_license>
+ <name>Easystroke</name>
+ <summary>Gesture-recognition application for X11</summary>
+ <description>
+ <p>
+ Easystroke is a gesture-recognition application for X11. Gestures or strokes
+ are movements that you make with you mouse (or your pen, finger etc.) while
+ holding down a specific mouse button. Easystroke will execute certain actions
+ if it recognizes the stroke; currently easystroke can emulate key presses,
+ execute shell commands, hold down modifiers and emulate a scroll wheel.
+ </p>
+ <p>
+ The program was designed with Tablet PCs in mind and can be used effectively
+ even without access to a keyboard. Easystroke tries to provide an intuitive
+ and efficient user interface, while at the same time being highly configurable
+ and offering many advanced features.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image width="1024" height="576">
+ https://alexpl.fedorapeople.org/AppData/easystroke/screens/easystroke_01.png
+ </image>
+ </screenshot>
+ <screenshot>
+ <image width="1024" height="576">
+ https://alexpl.fedorapeople.org/AppData/easystroke/screens/easystroke_02.png
+ </image>
+ </screenshot>
+ <screenshot>
+ <image width="1024" height="576">
+ https://alexpl.fedorapeople.org/AppData/easystroke/screens/easystroke_03.png
+ </image>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">https://github.com/thjaeger/easystroke/wiki</url>
+ <updatecontact>ThJaeger at gmail.com</updatecontact>
+</component>
diff --git a/easystroke.spec b/easystroke.spec
index 925603f..2a122cc 100644
--- a/easystroke.spec
+++ b/easystroke.spec
@@ -1,11 +1,12 @@
Name: easystroke
Version: 0.6.0
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Gesture-recognition application for X11
Group: User Interface/X Hardware Support
License: ISC
URL: http://easystroke.sourceforge.net/
Source0: http://downloads.sourceforge.net/easystroke/%{name}-%{version}.tar.gz
+Source1: https://raw.githubusercontent.com/thjaeger/easystroke/master/easystroke.appdata.xml
Patch0: easystroke-0.6.0-fix-desktop-file.patch
# https://github.com/thjaeger/easystroke/commit/d14b2740bf3b0ec867d7a0abe4e1f64fb6687aba
Patch1: easystroke-0.6.0-gnome3-fix.patch
@@ -17,6 +18,7 @@ BuildRequires: gettext
BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: xorg-x11-server-devel
+BuildRequires: libappstream-glib
ExcludeArch: s390 s390x
%description
@@ -30,22 +32,28 @@ execute shell commands, hold down modifiers and emulate a scroll wheel.
%setup -q
%patch0 -p1 -b .fixme
%patch1 -p1 -b .gnome3fix
+cp -a %{SOURCE1} .
# Resolve debuginfo
sed -i 's|install -Ds|install -D|' Makefile
# Preserve timestamps:
sed -i 's|install |install -p |' Makefile
+# Use true system path
+sed -i 's|/usr/local|/usr|g' Makefile
%build
make %{?_smp_mflags} CXX="g++ %{optflags}" CC="gcc -std=c99 %{optflags}"
%install
make install PREFIX="%{_prefix}" DESTDIR=$RPM_BUILD_ROOT
+mkdir -p %{buildroot}/%{_datadir}/appdata
+cp -a %{name}.appdata.xml %{buildroot}/%{_datadir}/appdata/
%find_lang %{name}
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -64,8 +72,12 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
+%{_datadir}/appdata/%{name}.appdata.xml
%changelog
+* Tue Dec 9 2014 Tom Callaway <spot at fedoraproject.org> - 0.6.0-7
+- add appdata
+
* Tue Dec 2 2014 Tom Callaway <spot at fedoraproject.org> - 0.6.0-6
- fix black squares issue on gnome 3 (bz1084308)
More information about the scm-commits
mailing list