[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 |
---|
| 4 | Version: 0.2.2 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 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 | |
---|
| 21 | Requires: lua python |
---|
| 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 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q |
---|
| 40 | |
---|
| 41 | %build |
---|
| 42 | %configure |
---|
| 43 | make %{?_smp_mflags} |
---|
| 44 | |
---|
| 45 | %install |
---|
| 46 | rm -rf $RPM_BUILD_ROOT |
---|
| 47 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 48 | |
---|
| 49 | rm -rf $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | rm -rf $RPM_BUILD_ROOT |
---|
| 53 | |
---|
| 54 | %files |
---|
| 55 | %defattr(-,root,root,-) |
---|
| 56 | %{_libdir}/libkey* |
---|
| 57 | %{_libdir}/lua/5.1/%{name}.* |
---|
| 58 | %{python_sitearch}/%{name} |
---|
| 59 | |
---|
| 60 | %files devel |
---|
| 61 | %defattr(-,root,root,-) |
---|
| 62 | %{_includedir}/* |
---|
| 63 | %{_libdir}/pkgconfig/* |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %changelog |
---|
| 67 | * Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2 |
---|
| 68 | - initial build for Vine Linux |
---|
| 69 | |
---|
| 70 | * Thu Nov 6 2010 Radek Ryckowski <radek@ebi.ac.uk> - 0.2.2 |
---|
| 71 | - Initial RPM release |
---|