ArchieA

AutoKey 0.81.2 SpecFile

Dec 10th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.25 KB | None | 0 0
  1. Name:       autokey
  2. Version:        0.81.2
  3. Release:        %mkrel 1
  4. Summary:        Desktop automation utility
  5. Group:      Accessibility
  6. License:        GPLv3
  7. URL:            http://%{name}.googlecode.com
  8. Source0:        http://%{name}.googlecode.com/files/%{name}-%{version}.tar.xz
  9. BuildRequires: python-xlib
  10. BuildRequires: python-notify
  11. BuildRequires: python-inotify
  12. BuildRequires: pygtk2
  13. BuildRequires: pygtk2-libglade
  14. BuildRequires: desktop-file-utils
  15. Requires:   %{name}-common
  16. Requires:   %{name}-gtk = %{version}-%{release}
  17.  
  18. %description
  19. AutoKey is a desktop automation utility for Linux and X11. It allows
  20. the automation of virtually any task by responding to typed abbreviations
  21. and hot keys. It offers a full-featured GUI that makes it highly
  22. accessible for novices, as well as a scripting interface offering
  23. the full flexibility and power of the Python language.
  24.  
  25. %package common
  26. Summary:    Desktop automation utility - common data   
  27. Group:      Accessibility
  28. Requires:   python >= 2.6
  29. Provides:   %{name} = %{version}-%{release}
  30.  
  31. %description common
  32. This package contains the common data shared between the various front ends.
  33.  
  34. %package gtk
  35. Summary:    AutoKey GTK+ version
  36. Group:      Accessibility
  37. Requires:   pygtksourceview
  38. Requires:   %{name}-common = %{version}-%{release}
  39. Provides:   %{name} = %{version}-%{release}
  40.  
  41. %description gtk
  42. This package contains the GTK+ front end for %{name}
  43.  
  44. %prep
  45. %setup -q
  46.  
  47. %build
  48. %{__python} setup.py build
  49.  
  50. %install
  51. rm -rf %{buildroot}
  52. %{__python} setup.py install -O1 --skip-build --root %{buildroot}
  53.  
  54. desktop-file-install --vendor="" \
  55.  --add-category="Accessibility" \
  56.  --add-category="X-MandrivaLinux-MoreApplications-Accessibility" \
  57.  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-gtk.desktop
  58.  
  59. # remove shebang from python libraries
  60. for lib in $(find %{buildroot}%{python_sitelib}/%{name}/ -name "*.py"); do
  61.  sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
  62.  touch -r $lib $lib.new &&
  63.  mv $lib.new $lib
  64. done
  65.  
  66. %post gtk
  67. update-desktop-database > /dev/null 2>&1 || :
  68.  
  69. %postun gtk
  70. update-desktop-database > /dev/null 2>&1 || :
  71.  
  72. %files
  73.  
  74. %files common
  75. %doc doc/scripting ACKNOWLEDGMENTS COPYING
  76. %{python_sitelib}/%{name}/common.py
  77. %{python_sitelib}/%{name}/configmanager.py
  78. %{python_sitelib}/%{name}/daemon.py
  79. %{python_sitelib}/%{name}/evdev.py
  80. %{python_sitelib}/%{name}/__init__.py
  81. %{python_sitelib}/%{name}/interface.py
  82. %{python_sitelib}/%{name}/iomediator.py
  83. %{python_sitelib}/%{name}/model.py
  84. %{python_sitelib}/%{name}/scripting.py
  85. %{python_sitelib}/%{name}/service.py
  86. %{python_sitelib}/%{name}/macro.py
  87. %{python_sitelib}/%{name}/monitor.py
  88. %{python_sitelib}/%{name}-%{version}-py2.6.egg-info
  89. %{_datadir}/pixmaps/*
  90.  
  91. %files gtk
  92. %{python_sitelib}/%{name}/gtkui/abbrselector.py
  93. %{python_sitelib}/%{name}/gtkui/__init__.py
  94. %{python_sitelib}/%{name}/gtkui/configwindow.py
  95. %{python_sitelib}/%{name}/gtkui/notifier.py
  96. %{python_sitelib}/%{name}/gtkui/dialogs.py
  97. %{python_sitelib}/%{name}/gtkui/settingsdialog.py
  98. %{python_sitelib}/%{name}/gtkui/popupmenu.py
  99. %{python_sitelib}/%{name}/gtkui/data/*
  100. %{python_sitelib}/%{name}/gtkapp.py
  101. %{_bindir}/%{name}-run
  102. %{_bindir}/%{name}-gtk
  103. %{_datadir}/applications/%{name}-gtk.desktop
  104. %{_mandir}/man1/%{name}-gtk.1.bz2
  105. %{_mandir}/man1/%{name}-run.1.bz2
  106.  
  107. %changelog
  108.  
Advertisement
Add Comment
Please, Sign In to add comment