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