File xstroke.spec of Package xstroke
#
# spec file for package xstroke (Version 0.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xstroke
BuildRequires: gtk2-devel update-desktop-files
Url: http://xstroke.org/
Version: 0.6
Release: 226
Summary: Fullscreen gesture recognition for X
License: GPL v2 or later
# PreReq: %fillup_prereq %insserv_prereq
Group: Hardware/Mobile
AutoReqProv: on
Source: xstroke-%{version}.tar.bz2
Source1: xstroke.png
Source2: xstroke.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#Requires:
%description
xstroke is a full-screen gesture recognition program for the X Window
System. It captures gestures performed with a pointer device, (such as
a mouse, a stylus, or a pen/tablet), recognizes the gestures and
performs actions based on the gestures.
Authors:
--------
Carl Worth <cworth@east.isi.edu>
%prep
%setup
%{?suse_update_config:%{suse_update_config -f . }}
libtoolize --force
autoreconf -f --install
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%{_prefix} --mandir=%{_mandir} --sysconfdir=%{_sysconfdir} --with-libdir=%{_libdir}
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} libdir=%{_libdir} install
%if %suse_version>1030
%suse_update_desktop_file -i -G "Fullscreen Gesture Recognition" xstroke Utility Accessibility
%else
%suse_update_desktop_file -i xstroke Utility Accessibility
%endif
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
cp -pr AUTHORS COPYING INSTALL ChangeLog NEWS README TODO $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/
%clean
rm -rf $RPM_BUILD_ROOT
%post
#
%postun
#
%files
%defattr(-, root, root)
%{_bindir}/xstroke
%dir %{_sysconfdir}/xstroke
%config %{_sysconfdir}/xstroke/alphabet
%doc %{_defaultdocdir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%changelog
* Sun Aug 12 2007 stbinner@suse.de
- disable start-up notification under KDE
- fix GenericName capitalization for after 10.3
* Mon Jan 08 2007 dkukawka@suse.de
- Fixed b.n.c #222484: added GenericName
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Sep 28 2005 dmueller@suse.de
- add norootforbuild
* Sat May 07 2005 dkukawka@suse.de
- added desktopfile and icon for menu entry
* Wed Jan 19 2005 behlert@suse.de
- added various files into doc-dir
* Tue Jan 18 2005 behlert@suse.de
- initial version