keybinder-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: 3%{?_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. %package -n python-%{name}
  30. Group: Development/Libraries
  31. License: GPLv2+
  32. Summary: Keybinder python bindings
  33. Summary(ja): Keybinder の python バインディング
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: pygtk2 pygobject
  36. %description -n python-%{name}
  37. This package contains python bindings for keybinder.
  38. %package -n lua-%{name}
  39. Group: Development/Libraries
  40. Summary: Keybinder lua bindings
  41. Summary(ja): Keybinder の lua バインディング
  42. Requires: %{name} = %{version}-%{release}
  43. Requires: lua
  44. %description -n lua-%{name}
  45. This package contains lua bindings for keybinder.
  46. %prep
  47. %setup -q
  48. %build
  49. %configure --enable-static=no --enable-python
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make install DESTDIR=$RPM_BUILD_ROOT
  54. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la
  55. rm -rf $RPM_BUILD_ROOT%{_libdir}/lua/5.?/%{name}.la
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %post -p /sbin/ldconfig
  59. %postun -p /sbin/ldconfig
  60. %files
  61. %defattr(-,root,root)
  62. %{_libdir}/libkeybinder.so.*
  63. %doc NEWS AUTHORS README
  64. %files devel
  65. %defattr(-,root,root)
  66. %{_includedir}/keybinder.h
  67. %{_libdir}/pkgconfig/keybinder.pc
  68. %{_libdir}/libkeybinder.so
  69. %files -n python-%{name}
  70. %defattr(-,root,root)
  71. %{python_sitearch}/%{name}
  72. %doc COPYING
  73. %files -n lua-%{name}
  74. %defattr(-,root,root)
  75. %{_libdir}/lua/5.?/keybinder.so
  76. %changelog
  77. * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-3
  78. - rebuilt with python-2.7
  79. * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-2
  80. - splitted python-keybinder, lua-keybinder
  81. - added configure option
  82. - --enable-static=no --enable-python
  83. * Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2
  84. - initial build for Vine Linux
  85. * Thu Nov 6 2010 Radek Ryckowski <radek@ebi.ac.uk> - 0.2.2
  86. - Initial RPM release