keybinder-vl.spec 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: keybinder
  3. Version: 0.2.2
  4. Release: 1%{?_dist_release}
  5. Summary: library for registering global keyboard shortcuts
  6. Group: System Environment/Libraries
  7. License: GPLv2
  8. URL: http://kaizer.se/wiki/keybinder/
  9. Source0: http://kaizer.se/publicfiles/keybinder/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. #BuildArch:
  12. BuildRequires: gtk2-devel >= 2.20
  13. BuildRequires: lua-devel
  14. BuildRequires: pygtk2-devel >= 2.12
  15. BuildRequires: pygobject-devel >= 2.15.3
  16. BuildRequires: python-devel
  17. Requires: lua python
  18. %description
  19. keybinder is a library for registering global keyboard shortcuts.
  20. Keybinder works with GTK-based applications using the X Window System.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Summary(ja): %{name} の開発ファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. The %{name}-devel package contains libraries and header files for
  28. developing extensions for %{name}.
  29. %prep
  30. %setup -q
  31. %build
  32. %configure
  33. make %{?_smp_mflags}
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. make install DESTDIR=$RPM_BUILD_ROOT
  37. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %files
  41. %defattr(-,root,root,-)
  42. %{_libdir}/libkey*
  43. %{_libdir}/lua/5.1/%{name}.*
  44. %{python_sitearch}/%{name}
  45. %files devel
  46. %defattr(-,root,root,-)
  47. %{_includedir}/*
  48. %{_libdir}/pkgconfig/*
  49. %changelog
  50. * Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2
  51. - initial build for Vine Linux
  52. * Thu Nov 6 2010 Radek Ryckowski <radek@ebi.ac.uk> - 0.2.2
  53. - Initial RPM release