Blob Blame History Raw
Name:           easystroke
Version:        0.4.6
Release:        1%{?dist}
Summary:        Gesture-recognition application for X11

Group:          User Interface/X Hardware Support
License:        ISC
#Patch to compile with gcc 4.3.0
#Patch0:         easystroke-0.4.5-gcc.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  gtkmm24-devel
BuildRequires:  dbus-glib-devel
BuildRequires:  boost-devel
BuildRequires:  libXtst-devel
BuildRequires:  gettext
BuildRequires:  desktop-file-utils
BuildRequires:  intltool

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. 

%setup -q
#%patch0 -p1 -b .gcc
# Resolve debuginfo
sed -i 's|install -Ds|install -D|' Makefile
# Preserve timestamps:
sed -i 's|install |install -p |' Makefile

make  %{?_smp_mflags} CXX="g++ %{optflags}" CC="gcc -std=c99 %{optflags}"

make install PREFIX="%{_prefix}" DESTDIR=$RPM_BUILD_ROOT

%find_lang %{name}

desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop


touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%files -f %{name}.lang
%doc changelog LICENSE 

* Wed Jun 29 2009 Zarko Pintar <> - 0.4.6-1
- new version

* Wed Jun 03 2009 Zarko Pintar <> - 0.4.5-1
- new version
- added gcc4.3.0 patch and resolve optflags 

* Mon Jun 01 2009 Zarko Pintar <> - 0.4.4-3
- spec cleaning

* Fri May 29 2009 Zarko Pintar <> - 0.4.4-2
- resolved debuginfo

* Wed May 27 2009 Zarko Pintar <> - 0.4.4-1
- initial release