zarko pintar ccbaf82
Name:           easystroke
9ab39ee
Version:        0.6.0
128605f
Release:        32%{?dist}
zarko pintar ccbaf82
Summary:        Gesture-recognition application for X11
zarko pintar ccbaf82
License:        ISC
c47e4ce
URL:            https://github.com/thjaeger/easystroke
zarko pintar ccbaf82
Source0:        http://downloads.sourceforge.net/easystroke/%{name}-%{version}.tar.gz
ca1e7f2
Source1:	https://raw.githubusercontent.com/thjaeger/easystroke/master/easystroke.appdata.xml
9ab39ee
Patch0:		easystroke-0.6.0-fix-desktop-file.patch
9d86693
# https://github.com/thjaeger/easystroke/commit/d14b2740bf3b0ec867d7a0abe4e1f64fb6687aba
9d86693
Patch1:		easystroke-0.6.0-gnome3-fix.patch
e40c1c2
# Fix build with lambda (now that sigc++ dropped sigc::group)
e40c1c2
Patch2:		easystroke-0.6.0-lambda.patch
618a158
# https://github.com/thjaeger/easystroke/pull/8
618a158
Patch3:		easystroke-0.6.0-abs.patch
722da57
# https://github.com/thjaeger/easystroke/pull/10/commits/140b9cae66ba874bf0994eea71210baf417a136e
722da57
Patch4:		easystroke-0.6.0-iconfix.patch
722da57
# https://github.com/thjaeger/easystroke/commit/5388934e722308cd314d65e362ddfaf6e5ab6c94
722da57
Patch5:		easystroke-0.6.0-sendfix.patch
722da57
# https://github.com/thjaeger/easystroke/commit/7bda4bd9c705413598ee9b534884bc7f23704932
722da57
Patch6:		easystroke-0.6.0-signal-handler-fix.patch
722da57
# https://github.com/thjaeger/easystroke/commit/040ba64e8c7dbf5b270aa3e7145e625ccb8d49c8
722da57
Patch7:		easystroke-0.6.0-unused.patch
722da57
# https://github.com/thjaeger/easystroke/commit/30a879fc81c4093c0a0c66116042079f11d246ab
722da57
Patch8:		easystroke-0.6.0-c11.patch
722da57
# https://github.com/thjaeger/easystroke/commit/cdf1d1a73c255c198ff0356472bb0ea76937ae76
722da57
Patch9:		easystroke-0.6.0-fix-no-select-crash.patch
722da57
# https://github.com/thjaeger/easystroke/pull/6
722da57
Patch10:	easystroke-0.6.0-g_spawn_async.patch
722da57
# https://github.com/thjaeger/easystroke/pull/9/commits/5f6885c59d1366e28317c9553c2e406fbd6569f9
722da57
Patch11:	easystroke-0.6.0-no-absolutes.patch
722da57
# https://github.com/thjaeger/easystroke/pull/9/commits/c328ef36d7d85e899fa1ccbc9f11aa1b2317f7bc
722da57
Patch12:	easystroke-0.6.0-scorefix.patch
722da57
# https://aur.archlinux.org/cgit/aur.git/tree/add-toggle-option.patch?h=easystroke-git
722da57
Patch13:	easystroke-0.6.0-toggle.patch
722da57
# https://aur.archlinux.org/cgit/aur.git/tree/dont-ignore-xshape-when-saving.patch?h=easystroke-git
722da57
Patch14:	easystroke-0.6.0-dont-ignore-xshape-when-saving.patch
722da57
# https://github.com/debuggerx01/easystroke/commit/31023e7a253bde9fabb273a294fc3d0837dcaf96
722da57
Patch15:	easystroke-0.6.0-missingcase.patch
722da57
# https://github.com/tzraeq/easystroke/commit/1c0a0609489035805fedfe88fe97542d2aa37bf5
722da57
Patch16:	easystroke-0.6.0-duplicate-actions.patch
722da57
# Replace gdk_screen_width/gdk_screen_height
722da57
Patch17:	easystroke-0.6.0-workarea.patch
722da57
# fix private handling
722da57
# Work in progress
722da57
Patch18:	easystroke-0.6.0-privatefix.patch
722da57
03f374d
BuildRequires:  gcc-c++
9ab39ee
BuildRequires:  gtkmm30-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
d2a2fa3
BuildRequires:  xorg-x11-server-devel
ca1e7f2
BuildRequires:	libappstream-glib
da3caf9
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
9ab39ee
%patch0 -p1 -b .fixme
9d86693
%patch1 -p1 -b .gnome3fix
e40c1c2
%patch2 -p1 -b .lambda
618a158
%patch3 -p1 -b .abs
722da57
%patch4 -p1 -b .iconfix
722da57
%patch5 -p1 -b .sendfix
722da57
%patch6 -p1 -b .signal-handler-fix
722da57
%patch7 -p1 -b .unused
722da57
%patch8 -p1 -b .c11
722da57
%patch9 -p1 -b .fix-no-select-crash
722da57
%patch10 -p1 -b .g_spawn_async
722da57
%patch11 -p1 -b .no-absolutes
722da57
%patch12 -p1 -b .scorefix
722da57
%patch13 -p1 -b .toggle
722da57
%patch14 -p1 -b .dont-ignore-xshape-when-saving
722da57
%patch15 -p1 -b .missingcase
722da57
%patch16 -p1 -b .duplicate
722da57
%patch17 -p1 -b .workarea
722da57
# %%patch18 -p1 -b .privatefix
ca1e7f2
cp -a %{SOURCE1} .
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
ca1e7f2
# Use true system path
ca1e7f2
sed -i 's|/usr/local|/usr|g' 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
%install
zarko pintar ccbaf82
make install PREFIX="%{_prefix}" DESTDIR=$RPM_BUILD_ROOT
ca1e7f2
mkdir -p %{buildroot}/%{_datadir}/appdata
ca1e7f2
cp -a %{name}.appdata.xml %{buildroot}/%{_datadir}/appdata/
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
ca1e7f2
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
zarko pintar ccbaf82
zarko pintar ccbaf82
%files -f %{name}.lang
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
ca1e7f2
%{_datadir}/appdata/%{name}.appdata.xml
zarko pintar ccbaf82
zarko pintar ccbaf82
%changelog
128605f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-32
128605f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
128605f
9ce8a17
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-31
9ce8a17
- Rebuilt for Boost 1.73
9ce8a17
e9f11af
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-30
e9f11af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e9f11af
722da57
* Fri Oct 18 2019 Tom Callaway <spot@fedoraproject.org> - 0.6.0-29
722da57
- merge a big old pile of patches from various places, thanks to revast on github
722da57
7f70f2c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-28
7f70f2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7f70f2c
4145c13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-27
4145c13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4145c13
b1586e8
* Thu Jan 24 2019 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-26
b1586e8
- Rebuilt for Boost 1.69
b1586e8
58aa03d
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-25
58aa03d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
58aa03d
679b659
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-24
679b659
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
679b659
ebbc4b4
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-23
ebbc4b4
- Rebuilt for Boost 1.66
ebbc4b4
87dfa85
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-22
87dfa85
- Remove obsolete scriptlets
87dfa85
66fb97a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-21
66fb97a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
66fb97a
13dd7f4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-20
13dd7f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
13dd7f4
545d2dd
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-19
545d2dd
- Rebuilt for s390x binutils bug
545d2dd
87de6cb
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-18
87de6cb
- Rebuilt for Boost 1.64
87de6cb
e9d3d00
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-17
e9d3d00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e9d3d00
618a158
* Sat Jan 28 2017 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-16
618a158
- Rebuilt for Boost 1.63 and patched for GCC 7.
618a158
14e593d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-15
14e593d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
14e593d
c47e4ce
* Mon Feb 1 2016 Tom Callaway <spot@fedoraproject.org> - 0.6.0-14
c47e4ce
- rebuild for boost
e40c1c2
- fix build against sigc++ with lambda (and no sigc::group)
c47e4ce
- update URL
c47e4ce
fd4bdf7
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.6.0-13
fd4bdf7
- Rebuilt for Boost 1.59
fd4bdf7
b888ab4
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-12
b888ab4
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
b888ab4
f9576ca
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.6.0-11
f9576ca
- rebuild for Boost 1.58
f9576ca
d93a827
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-10
d93a827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d93a827
747a274
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.6.0-9
747a274
- Rebuilt for GCC 5 C++11 ABI change
747a274
Petr Machata 00aad7d
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.6.0-8
Petr Machata 00aad7d
- Rebuild for boost 1.57.0
Petr Machata 00aad7d
ca1e7f2
* Tue Dec  9 2014 Tom Callaway <spot@fedoraproject.org> - 0.6.0-7
ca1e7f2
- add appdata
ca1e7f2
9d86693
* Tue Dec  2 2014 Tom Callaway <spot@fedoraproject.org> - 0.6.0-6
9d86693
- fix black squares issue on gnome 3 (bz1084308)
9d86693
6d66140
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5
6d66140
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6d66140
5ea701f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
5ea701f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5ea701f
Petr Machata 32f6333
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.6.0-3
Petr Machata 32f6333
- Rebuild for boost 1.55.0
Petr Machata 32f6333
fa48088
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.6.0-2
fa48088
- rebuild for boost 1.55.0
fa48088
9ab39ee
* Tue Nov 19 2013 Tom Callaway <spot@fedoraproject.org> - 0.6.0-1
9ab39ee
- update to 0.6.0
9ab39ee
5329475
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5.1-8
5329475
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5329475
Petr Machata 857a2df
* Sat Jul 27 2013 pmachata@redhat.com - 0.5.5.1-7
Petr Machata 857a2df
- Rebuild for boost 1.54.0
Petr Machata 857a2df
d2a2fa3
* Mon Mar 25 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.5.5.1-6
d2a2fa3
- Drop xorg sdk dependency as it's been provided by devel since F-9
d2a2fa3
d4e13cd
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.5.5.1-5
d4e13cd
- Rebuild for Boost-1.53.0
d4e13cd
4ad800d
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.5.5.1-4
4ad800d
- Rebuild for Boost-1.53.0
4ad800d
d6f9696
* Sun Aug 12 2012 Kevin Fenzi <kevin@scrye.com> - 0.5.5.1-3
d6f9696
- Rebuilt for new boost
d6f9696
853f008
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5.1-2
853f008
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
853f008
8a0f5d6
* Mon May 14 2012 Tom Callaway <spot@fedoraproject.org> - 0.5.5.1-1
8a0f5d6
- update to 0.5.5.1
8a0f5d6
659f672
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
659f672
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
659f672
53e23e3
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.5.4-3
53e23e3
- Rebuild for new libpng
53e23e3
da3caf9
* Mon Aug  8 2011 Tom Callaway <spot@fedoraproject.org> - 0.5.4-2
da3caf9
- rebuild against new boost
da3caf9
- cleanup spec file
da3caf9
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
9ab39ee
* Wed Jun 24 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