[4377] | 1 | %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | Name: keybinder |
---|
[6576] | 4 | Version: 0.3.0 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
[4377] | 6 | Summary: library for registering global keyboard shortcuts |
---|
| 7 | |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | License: GPLv2 |
---|
| 10 | URL: http://kaizer.se/wiki/keybinder/ |
---|
| 11 | Source0: http://kaizer.se/publicfiles/keybinder/%{name}-%{version}.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | |
---|
| 14 | #BuildArch: |
---|
| 15 | BuildRequires: gtk2-devel >= 2.20 |
---|
| 16 | BuildRequires: lua-devel |
---|
| 17 | BuildRequires: pygtk2-devel >= 2.12 |
---|
| 18 | BuildRequires: pygobject-devel >= 2.15.3 |
---|
| 19 | BuildRequires: python-devel |
---|
| 20 | |
---|
[4804] | 21 | #Requires: lua python |
---|
[4377] | 22 | |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | keybinder is a library for registering global keyboard shortcuts. |
---|
| 26 | Keybinder works with GTK-based applications using the X Window System. |
---|
| 27 | |
---|
| 28 | %package devel |
---|
| 29 | Summary: Development files for %{name} |
---|
| 30 | Summary(ja): %{name} の開発ファイル |
---|
| 31 | Group: Development/Libraries |
---|
| 32 | Requires: %{name} = %{version}-%{release} |
---|
| 33 | |
---|
| 34 | %description devel |
---|
| 35 | The %{name}-devel package contains libraries and header files for |
---|
| 36 | developing extensions for %{name}. |
---|
| 37 | |
---|
[4804] | 38 | %package -n python-%{name} |
---|
| 39 | Group: Development/Libraries |
---|
| 40 | License: GPLv2+ |
---|
| 41 | Summary: Keybinder python bindings |
---|
| 42 | Summary(ja): Keybinder の python バインディング |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | Requires: pygtk2 pygobject |
---|
| 45 | |
---|
| 46 | %description -n python-%{name} |
---|
| 47 | This package contains python bindings for keybinder. |
---|
| 48 | |
---|
| 49 | %package -n lua-%{name} |
---|
| 50 | Group: Development/Libraries |
---|
| 51 | Summary: Keybinder lua bindings |
---|
| 52 | Summary(ja): Keybinder の lua バインディング |
---|
| 53 | Requires: %{name} = %{version}-%{release} |
---|
| 54 | Requires: lua |
---|
| 55 | |
---|
| 56 | %description -n lua-%{name} |
---|
| 57 | This package contains lua bindings for keybinder. |
---|
| 58 | |
---|
[4377] | 59 | %prep |
---|
| 60 | %setup -q |
---|
| 61 | |
---|
| 62 | %build |
---|
[4804] | 63 | %configure --enable-static=no --enable-python |
---|
[4377] | 64 | make %{?_smp_mflags} |
---|
| 65 | |
---|
| 66 | %install |
---|
| 67 | rm -rf $RPM_BUILD_ROOT |
---|
| 68 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 69 | |
---|
| 70 | rm -rf $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la |
---|
[4804] | 71 | rm -rf $RPM_BUILD_ROOT%{_libdir}/lua/5.?/%{name}.la |
---|
[4377] | 72 | |
---|
| 73 | %clean |
---|
| 74 | rm -rf $RPM_BUILD_ROOT |
---|
| 75 | |
---|
[4804] | 76 | %post -p /sbin/ldconfig |
---|
| 77 | %postun -p /sbin/ldconfig |
---|
| 78 | |
---|
[4377] | 79 | %files |
---|
[4804] | 80 | %defattr(-,root,root) |
---|
[6576] | 81 | %{_libdir}/libkeybinder.so.* |
---|
| 82 | %{_libdir}/girepository-1.0/Keybinder-0.0.typelib |
---|
| 83 | %doc COPYING NEWS AUTHORS README |
---|
[4377] | 84 | |
---|
| 85 | %files devel |
---|
[4804] | 86 | %defattr(-,root,root) |
---|
[6576] | 87 | %{_datadir}/gtk-doc/html/%{name}/* |
---|
| 88 | %{_datadir}/gir-1.0/Keybinder-0.0.gir |
---|
[4804] | 89 | %{_includedir}/keybinder.h |
---|
| 90 | %{_libdir}/pkgconfig/keybinder.pc |
---|
[6576] | 91 | %{_libdir}/libkeybinder.so |
---|
[4377] | 92 | |
---|
[4804] | 93 | %files -n python-%{name} |
---|
| 94 | %defattr(-,root,root) |
---|
| 95 | %{python_sitearch}/%{name} |
---|
| 96 | %doc COPYING |
---|
[4377] | 97 | |
---|
[4804] | 98 | %files -n lua-%{name} |
---|
| 99 | %defattr(-,root,root) |
---|
| 100 | %{_libdir}/lua/5.?/keybinder.so |
---|
| 101 | |
---|
| 102 | |
---|
[4377] | 103 | %changelog |
---|
[6576] | 104 | * Sun Jul 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.0-1 |
---|
| 105 | - new upstream release |
---|
| 106 | |
---|
[5714] | 107 | * Tue Feb 21 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-3 |
---|
| 108 | - rebuilt with python-2.7 |
---|
| 109 | |
---|
[4804] | 110 | * Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-2 |
---|
| 111 | - splitted python-keybinder, lua-keybinder |
---|
| 112 | - added configure option |
---|
| 113 | - --enable-static=no --enable-python |
---|
| 114 | |
---|
[4377] | 115 | * Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2 |
---|
| 116 | - initial build for Vine Linux |
---|
| 117 | |
---|
| 118 | * Thu Nov 6 2010 Radek Ryckowski <radek@ebi.ac.uk> - 0.2.2 |
---|
| 119 | - Initial RPM release |
---|