zarko pintar ccbaf82
Name:           easystroke
zarko pintar 54c7def
Version:        0.5.2
zarko pintar 2f1ad24
Release:        1%{?dist}
zarko pintar ccbaf82
Summary:        Gesture-recognition application for X11
zarko pintar ccbaf82
zarko pintar ccbaf82
Group:          User Interface/X Hardware Support
zarko pintar ccbaf82
License:        ISC
zarko pintar ccbaf82
URL:            http://easystroke.sourceforge.net/
zarko pintar ccbaf82
Source0:        http://downloads.sourceforge.net/easystroke/%{name}-%{version}.tar.gz
zarko pintar 54c7def
# Don't try to record timeouts if timeout gestures are disabled
zarko pintar 54c7def
Patch0:         easystroke-0.5.2-timeout.patch 
zarko pintar ccbaf82
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
zarko pintar ccbaf82
zarko pintar ccbaf82
BuildRequires:  gtkmm24-devel
zarko pintar ccbaf82
BuildRequires:  dbus-glib-devel
zarko pintar ccbaf82
BuildRequires:  boost-devel
zarko pintar ccbaf82
BuildRequires:  libXtst-devel
zarko pintar ccbaf82
BuildRequires:  gettext
zarko pintar ccbaf82
BuildRequires:  desktop-file-utils
zarko pintar ccbaf82
BuildRequires:  intltool
zarko pintar 54c7def
BuildRequires:  xorg-x11-server-devel >= 1.0.1
zarko pintar 54c7def
BuildRequires:  xorg-x11-server-sdk >= 1.4.99.1
zarko pintar ccbaf82
zarko pintar ccbaf82
%description
zarko pintar ccbaf82
Easystroke is a gesture-recognition application for X11. Gestures or strokes 
zarko pintar ccbaf82
are movements that you make with you mouse (or your pen, finger etc.) while 
zarko pintar ccbaf82
holding down a specific mouse button. Easystroke will execute certain actions 
zarko pintar ccbaf82
if it recognizes the stroke; currently easystroke can emulate key presses, 
zarko pintar ccbaf82
execute shell commands, hold down modifiers and emulate a scroll wheel. 
zarko pintar ccbaf82
zarko pintar ccbaf82
%prep
zarko pintar ccbaf82
%setup -q
zarko pintar 54c7def
%patch0 -p1 -b .timeout
zarko pintar ccbaf82
# Resolve debuginfo
zarko pintar ccbaf82
sed -i 's|install -Ds|install -D|' Makefile
zarko pintar ccbaf82
# Preserve timestamps:
zarko pintar ccbaf82
sed -i 's|install |install -p |' Makefile
zarko pintar ccbaf82
zarko pintar ccbaf82
%build
zarko pintar 43eb012
make  %{?_smp_mflags} CXX="g++ %{optflags}" CC="gcc -std=c99 %{optflags}"
zarko pintar ccbaf82
zarko pintar ccbaf82
zarko pintar ccbaf82
%install
zarko pintar ccbaf82
rm -rf $RPM_BUILD_ROOT
zarko pintar ccbaf82
make install PREFIX="%{_prefix}" DESTDIR=$RPM_BUILD_ROOT
zarko pintar ccbaf82
zarko pintar ccbaf82
%find_lang %{name}
zarko pintar ccbaf82
zarko pintar ccbaf82
%check
zarko pintar ccbaf82
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
zarko pintar ccbaf82
zarko pintar ccbaf82
%clean
zarko pintar ccbaf82
rm -rf $RPM_BUILD_ROOT
zarko pintar ccbaf82
zarko pintar ccbaf82
zarko pintar ccbaf82
%post
zarko pintar ccbaf82
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
zarko pintar ccbaf82
zarko pintar ccbaf82
zarko pintar ccbaf82
%postun
zarko pintar ccbaf82
if [ $1 -eq 0 ] ; then
zarko pintar ccbaf82
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
zarko pintar ccbaf82
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
zarko pintar ccbaf82
fi
zarko pintar ccbaf82
zarko pintar ccbaf82
%posttrans
zarko pintar ccbaf82
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
zarko pintar ccbaf82
zarko pintar ccbaf82
zarko pintar ccbaf82
%files -f %{name}.lang
zarko pintar ccbaf82
%defattr(-,root,root,-)
zarko pintar ccbaf82
%doc changelog LICENSE 
zarko pintar ccbaf82
%{_bindir}/%{name}
zarko pintar ccbaf82
%{_datadir}/applications/%{name}.desktop
zarko pintar ccbaf82
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
zarko pintar ccbaf82
zarko pintar ccbaf82
zarko pintar ccbaf82
zarko pintar ccbaf82
%changelog
zarko pintar 54c7def
* Wed Jan 13 2010 Zarko Pintar <zarko.pintar@gmail.com> - 0.5.2-1
zarko pintar 54c7def
- new version for XServer 1.7 and up
zarko pintar 54c7def
zarko pintar 2f1ad24
* Wed Sep 09 2009 Zarko Pintar <zarko.pintar@gmail.com> - 0.4.9-1
zarko pintar 2f1ad24
- new version
1224421
zarko pintar c304e53
* Wed Jun 29 2009 Zarko Pintar <zarko.pintar@gmail.com> - 0.4.6-1
zarko pintar c304e53
- new version
zarko pintar c304e53
zarko pintar 43eb012
* Wed Jun 03 2009 Zarko Pintar <zarko.pintar@gmail.com> - 0.4.5-1
zarko pintar 43eb012
- new version
zarko pintar 43eb012
- added gcc4.3.0 patch and resolve optflags 
zarko pintar 43eb012
zarko pintar 43eb012
* Mon Jun 01 2009 Zarko Pintar <zarko.pintar@gmail.com> - 0.4.4-3
zarko pintar ccbaf82
- spec cleaning
zarko pintar ccbaf82
zarko pintar ccbaf82
* Fri May 29 2009 Zarko Pintar <zarko.pintar@gmail.com> - 0.4.4-2
zarko pintar ccbaf82
- resolved debuginfo
zarko pintar ccbaf82
zarko pintar ccbaf82
* Wed May 27 2009 Zarko Pintar <zarko.pintar@gmail.com> - 0.4.4-1
zarko pintar ccbaf82
- initial release