Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: autokey
- Version: 0.81.2
- Release: %mkrel 1
- Summary: Desktop automation utility
- Group: Accessibility
- License: GPLv3
- URL: http://%{name}.googlecode.com
- Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.xz
- BuildRequires: python-xlib
- BuildRequires: python-notify
- BuildRequires: python-inotify
- BuildRequires: pygtk2
- BuildRequires: pygtk2-libglade
- BuildRequires: desktop-file-utils
- Requires: %{name}-common
- Requires: %{name}-gtk = %{version}-%{release}
- %description
- AutoKey is a desktop automation utility for Linux and X11. It allows
- the automation of virtually any task by responding to typed abbreviations
- and hot keys. It offers a full-featured GUI that makes it highly
- accessible for novices, as well as a scripting interface offering
- the full flexibility and power of the Python language.
- %package common
- Summary: Desktop automation utility - common data
- Group: Accessibility
- Requires: python >= 2.6
- Provides: %{name} = %{version}-%{release}
- %description common
- This package contains the common data shared between the various front ends.
- %package gtk
- Summary: AutoKey GTK+ version
- Group: Accessibility
- Requires: pygtksourceview
- Requires: %{name}-common = %{version}-%{release}
- Provides: %{name} = %{version}-%{release}
- %description gtk
- This package contains the GTK+ front end for %{name}
- %prep
- %setup -q
- %build
- %{__python} setup.py build
- %install
- rm -rf %{buildroot}
- %{__python} setup.py install -O1 --skip-build --root %{buildroot}
- desktop-file-install --vendor="" \
- --add-category="Accessibility" \
- --add-category="X-MandrivaLinux-MoreApplications-Accessibility" \
- --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gtk.desktop
- # remove shebang from python libraries
- for lib in $(find %{buildroot}%{python_sitelib}/%{name}/ -name "*.py"); do
- sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
- touch -r $lib $lib.new &&
- mv $lib.new $lib
- done
- %post gtk
- update-desktop-database > /dev/null 2>&1 || :
- %postun gtk
- update-desktop-database > /dev/null 2>&1 || :
- %files
- %files common
- %doc doc/scripting ACKNOWLEDGMENTS COPYING
- %{python_sitelib}/%{name}/common.py
- %{python_sitelib}/%{name}/configmanager.py
- %{python_sitelib}/%{name}/daemon.py
- %{python_sitelib}/%{name}/evdev.py
- %{python_sitelib}/%{name}/__init__.py
- %{python_sitelib}/%{name}/interface.py
- %{python_sitelib}/%{name}/iomediator.py
- %{python_sitelib}/%{name}/model.py
- %{python_sitelib}/%{name}/scripting.py
- %{python_sitelib}/%{name}/service.py
- %{python_sitelib}/%{name}/macro.py
- %{python_sitelib}/%{name}/monitor.py
- %{python_sitelib}/%{name}-%{version}-py2.6.egg-info
- %{_datadir}/pixmaps/*
- %files gtk
- %{python_sitelib}/%{name}/gtkui/abbrselector.py
- %{python_sitelib}/%{name}/gtkui/__init__.py
- %{python_sitelib}/%{name}/gtkui/configwindow.py
- %{python_sitelib}/%{name}/gtkui/notifier.py
- %{python_sitelib}/%{name}/gtkui/dialogs.py
- %{python_sitelib}/%{name}/gtkui/settingsdialog.py
- %{python_sitelib}/%{name}/gtkui/popupmenu.py
- %{python_sitelib}/%{name}/gtkui/data/*
- %{python_sitelib}/%{name}/gtkapp.py
- %{_bindir}/%{name}-run
- %{_bindir}/%{name}-gtk
- %{_datadir}/applications/%{name}-gtk.desktop
- %{_mandir}/man1/%{name}-gtk.1.bz2
- %{_mandir}/man1/%{name}-run.1.bz2
- %changelog
Advertisement
Add Comment
Please, Sign In to add comment