1128268
# sitelib for noarch packages
1128268
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
1128268
1128268
Name:		autokey
742cb8a
Version:	0.90.4
6bb0aa1
Release:	5%{?dist}
1128268
Summary:	Desktop automation utility 
1128268
1128268
1128268
Group:		Applications/Productivity
1128268
License:	GPLv3
1128268
URL:		http://autokey.googlecode.com
742cb8a
Source0:	http://autokey.googlecode.com/files/%{name}-%{version}.tar.gz 
1128268
1128268
1128268
BuildArch:	noarch 
1128268
BuildRequires:	python-xlib,notify-python,pygtk2,pygtk2-libglade,desktop-file-utils
eb25806
Requires:	gtksourceview3,python-simplejson,python-inotify
1128268
Provides:	autokey = %{version}-%{release}
92fce07
Provides:	autokey-common = %{version}-%{release} 
92fce07
Provides:	autokey-gtk = %{version}-%{release} 
92fce07
Obsoletes:	autokey <= 0.71.3-4
1128268
1128268
1128268
%description
1128268
AutoKey is a desktop automation utility for Linux and X11. It allows 
1128268
the automation of virtually any task by responding to typed abbreviations 
1128268
and hot keys. It offers a full-featured GUI that makes it highly 
1128268
accessible for novices, as well as a scripting interface offering 
1128268
the full flexibility and power of the Python language.
1128268
742cb8a
%package common
742cb8a
Summary:	Desktop automation utility - common data	
742cb8a
Group:		Applications/Productivity
742cb8a
Requires:	python-simplejson
742cb8a
Requires:	python-inotify
742cb8a
Requires:	python-xlib
742cb8a
Requires:	wmctrl
742cb8a
Provides:	autokey = %{version}-%{release}
742cb8a
742cb8a
742cb8a
%description common
742cb8a
This package contains the common data shared between the various front ends.
742cb8a
742cb8a
742cb8a
%package gtk
742cb8a
Summary:	AutoKey GTK+ front end
742cb8a
Group:		Applications/Productivity
eb25806
Requires:	gtksourceview3
742cb8a
Requires:	pygtk2
742cb8a
Requires:	notify-python
742cb8a
Requires:	zenity
742cb8a
Requires:	autokey-common = %{version}-%{release}
742cb8a
Provides:	autokey = %{version}-%{release}
742cb8a
%description gtk
742cb8a
This package contains the GTK+ front end for autokey
742cb8a
742cb8a
742cb8a
%package qt
742cb8a
Summary:	AutoKey QT front end
742cb8a
Group:		Applications/Productivity
742cb8a
Requires:	qscintilla-python
742cb8a
Requires:	PyKDE4
742cb8a
Requires:	notify-python
742cb8a
Requires:	autokey-common = %{version}-%{release}
742cb8a
%{?_qt4_version:Requires: qt4 >= %{_qt4_version}}
742cb8a
Provides:	autokey = %{version}-%{release}
742cb8a
%description qt
742cb8a
This package contains the QT front end for autokey
742cb8a
1128268
1128268
%prep
1128268
%setup -q
1128268
1128268
1128268
%build
1128268
%{__python} setup.py build
1128268
92fce07
1128268
%install
1128268
rm -rf %{buildroot}
1128268
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
1128268
1128268
# remove shebang from python libraries
1128268
for lib in $(find %{buildroot}%{python_sitelib}/autokey/ -name "*.py"); do
1128268
 sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
1128268
 touch -r $lib $lib.new &&
1128268
 mv $lib.new $lib
1128268
done
1128268
742cb8a
%post gtk
742cb8a
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
742cb8a
742cb8a
%postun gtk
742cb8a
if [ $1 -eq 0 ] ; then
742cb8a
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
742cb8a
    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
742cb8a
fi
742cb8a
742cb8a
%posttrans gtk
742cb8a
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
1128268
742cb8a
%post qt
742cb8a
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
1128268
742cb8a
%postun qt
742cb8a
if [ $1 -eq 0 ] ; then
742cb8a
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
742cb8a
    /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
742cb8a
fi
1128268
742cb8a
%posttrans qt
742cb8a
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
1128268
1128268
742cb8a
%files common
742cb8a
%defattr(-,root,root)
742cb8a
%doc ACKNOWLEDGMENTS README
742cb8a
%dir %{python_sitelib}/autokey
742cb8a
%{python_sitelib}/autokey/*.py*
742cb8a
%exclude %{python_sitelib}/autokey/gtkapp.py*
1128268
%{python_sitelib}/autokey-*.egg-info
742cb8a
%{_datadir}/icons/hicolor/scalable/apps/autokey-status*.svg
742cb8a
%{_datadir}/icons/hicolor/scalable/apps/autokey.png
742cb8a
%{_datadir}/icons/ubuntu-mono-dark/apps/*
742cb8a
%{_datadir}/icons/ubuntu-mono-light/apps/*
742cb8a
%{_datadir}/icons/Humanity/scalable/apps/*.svg
6d4f51a
%{_bindir}/autokey-run
742cb8a
%{_mandir}/man1/autokey-run.1*
742cb8a
742cb8a
%files gtk
742cb8a
%defattr(-,root,root)
742cb8a
%{_bindir}/autokey-gtk
742cb8a
%{python_sitelib}/autokey/gtkapp.py*
742cb8a
%{python_sitelib}/autokey/gtkui/
1128268
%{_datadir}/applications/autokey-gtk.desktop
742cb8a
%{_datadir}/icons/hicolor/scalable/apps/autokey.svg
742cb8a
%{_mandir}/man1/autokey-gtk.1*
742cb8a
742cb8a
%files qt
742cb8a
%defattr(-,root,root)
742cb8a
%{_bindir}/autokey-qt
742cb8a
%{python_sitelib}/autokey/qtapp.py*
742cb8a
%{python_sitelib}/autokey/qtui/
742cb8a
%{_datadir}/kde4/apps/autokey/autokeyui.rc
742cb8a
%{_datadir}/applications/autokey-qt.desktop
742cb8a
%{_datadir}/icons/hicolor/scalable/apps/autokey.png
742cb8a
%{_mandir}/man1/autokey-qt.1*
1128268
1128268
1128268
%changelog
eb25806
6bb0aa1
* Mon Sep 16 2013 Raghu Udiyar <raghusiddarth@gmail.com> - 0.90.4-5
eb25806
- Updated pygtksourceview dependency to gtksourceview3
eb25806
e355444
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.90.4-4
e355444
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e355444
fce8aa5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.90.4-3
fce8aa5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fce8aa5
ad0a6c6
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.90.4-2
ad0a6c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ad0a6c6
742cb8a
* Thu May 17 2012 Raghu Udiyar <raghusiddarth@gmail.com> 0.90.4-1
742cb8a
- Update to upstream 0.90-4 release
742cb8a
- Qt interface is back with major updates to both frontends
742cb8a
- Back to the old split package structure
742cb8a
ea4f913
* Tue Jan 10 2012 Matěj Cepl <mcepl@redhat.com> 0.81.4-1
ea4f913
- Upgrade to the latest upstream package.
ea4f913
6d4f51a
* Wed Nov 22 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.81.0-2
6d4f51a
- Add autokey-run files to the package
6d4f51a
42bd88f
* Wed Nov 22 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.81.0-1
42bd88f
- Update to upstream 0.81.0 release
42bd88f
- Changelog : http://code.google.com/p/autokey/source/browse/trunk/debian/changelog?r=408
42bd88f
c7d04c5
* Wed Oct 26 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.80.3-1
c7d04c5
- Update to upstream 0.80.3 release
c7d04c5
- Changelog : http://code.google.com/p/autokey/source/browse/trunk/debian/changelog?spec=svn379&r=379
c7d04c5
92fce07
* Sat Oct 8 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.80.2-1
92fce07
- Update to upstream 0.80.2 release
92fce07
- Qt interface deprecated and removed
92fce07
- Change package structure and remove qt subpackage/files
92fce07
- Updated application icon
92fce07
- Full changelog : http://code.google.com/p/autokey/source/browse/trunk/debian/changelog?spec=svn376&r=376
1128268
1128268
* Thu Jul 21 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.3-4
1128268
- Update to upstream 0.71.3-2 release
1128268
- Source tarball now extracts to "autokey-version" instead of "build" directory
1128268
- The README file now explicitly mentions the licence
1128268
- Drop defattr from the spec since recent RPM makes it redundant
1128268
1128268
* Fri Jul 15 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.3-3
1128268
- Add build requirement for desktop-file-utils
1128268
- Require pygtksourceview for gtk frontend
1128268
- Require qscintilla-python for qt frontend
1128268
1128268
* Wed May 25 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.3-2
1128268
- Improve spec readability
1128268
1128268
* Tue Apr 19 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.3-1
1128268
- Update to upstream 0.71.3 release
1128268
1128268
* Sun Mar 13 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.2-6
1128268
- Add desktop-file-validate
1128268
1128268
* Sun Mar 06 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.2-5
1128268
- Remove Python-xlib dependency
1128268
- Add doc/scripting to docs
1128268
1128268
* Fri Mar 04 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.2-4
1128268
- Remove deprecated daemon, see : http://code.google.com/p/autokey/issues/detail?id=106
1128268
1128268
* Wed Feb 28 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.2-3
1128268
- Add script to remove shebang from python libraries
1128268
- Remove default start from initscript
1128268
- Add patch to use lockfile in initscript
1128268
1128268
* Wed Feb 02 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.2-2
1128268
- Add postun scriptlet to handle upgrades
1128268
- Set autokey service to start only in runlevel 5
1128268
1128268
* Sat Jan 30 2011 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.2-1
1128268
- Update to upstream 0.71.2 release
1128268
- Add COPYING file to docs
1128268
- Update init script to match upstream
1128268
1128268
* Sat Dec 18 2010 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.1-1
1128268
- Update to upstream 0.71.1 release
1128268
1128268
* Fri Oct 01 2010 Raghu Udiyar <raghusiddarth@gmail.com> 0.71.0-1
1128268
- Initial version of the package