zarko pintar ccbaf82
Name:           easystroke
2f24ecf
Version:        0.5.4
2f24ecf
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
2f24ecf
# Patch0:         easystroke-0.5.3-fix-indirect-link.patch
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 3f82cfa
BuildRequires:  xorg-x11-server-devel >= 1.0.1
zarko pintar 3f82cfa
BuildRequires:  xorg-x11-server-sdk >= 1.4.99.1
zarko pintar ccbaf82
cb0e47e
ExcludeArch: s390 s390x
cb0e47e
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
70f6680
# Fix indirect linking issue
2f24ecf
# %patch0 -p1 -b .DSO
70f6680
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
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
%post
zarko pintar ccbaf82
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
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
%changelog
2f24ecf
* Thu Apr 21 2011 Tom Callaway <spot@fedoraproject.org> - 0.5.4-1
2f24ecf
- update to 0.5.4
2f24ecf
Kalev Lember bb2019e
* Sun Apr 17 2011 Kalev Lember <kalev@smartlink.ee> - 0.5.3-5
Kalev Lember bb2019e
- Rebuilt for boost 1.46.1 soname bump
Kalev Lember bb2019e
2631fc2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
2631fc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2631fc2
cb0e47e
* Thu Sep 02 2010 Dan HorĂ¡k <dan[at]danny.cz> - 0.5.3-3
cb0e47e
- no graphics on s390(x)
cb0e47e
cd66dc4
* Wed Aug 04 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.5.3-2
cd66dc4
- Rebuild for Boost soname bump
cd66dc4
- Update spec to match current guidelines
cd66dc4
70f6680
* Wed Mar 17 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5.3-1
70f6680
- update to 0.5.3
70f6680
- drop timing patch (upstreamed)
70f6680
- add patch to fix indirect linking issue
70f6680
544a00d
* Fri Jan 22 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.5.2-2
544a00d
- Rebuild for Boost soname bump
544a00d
zarko pintar 3f82cfa
* Wed Jan 13 2010 Zarko Pintar <zarko.pintar@gmail.com> - 0.5.2-1
zarko pintar 3f82cfa
- new version for XServer 1.7 and up
zarko pintar 3f82cfa
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