keybinder-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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.3.1
  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. %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. %{_libdir}/girepository-1.0/Keybinder-0.0.typelib
  64. %doc COPYING NEWS AUTHORS README
  65. %files devel
  66. %defattr(-,root,root)
  67. %{_datadir}/gtk-doc/html/%{name}/*
  68. %{_datadir}/gir-1.0/Keybinder-0.0.gir
  69. %{_includedir}/keybinder.h
  70. %{_libdir}/pkgconfig/keybinder.pc
  71. %{_libdir}/libkeybinder.so
  72. %files -n python-%{name}
  73. %defattr(-,root,root)
  74. %{python_sitearch}/%{name}
  75. %doc COPYING
  76. %files -n lua-%{name}
  77. %defattr(-,root,root)
  78. %{_libdir}/lua/5.?/keybinder.so
  79. %changelog
  80. * Sun Apr 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.1-1
  81. - new upstream release
  82. * Sun Jul 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.0-1
  83. - new upstream release
  84. * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-3
  85. - rebuilt with python-2.7
  86. * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-2
  87. - splitted python-keybinder, lua-keybinder
  88. - added configure option
  89. - --enable-static=no --enable-python
  90. * Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2
  91. - initial build for Vine Linux
  92. * Thu Nov 6 2010 Radek Ryckowski <radek@ebi.ac.uk> - 0.2.2
  93. - Initial RPM release