|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
Name: keybinder
|
|
|
Version: 0.2.2
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
Summary: library for registering global keyboard shortcuts
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
@@ -18,7 +18,7 @@ BuildRequires: pygtk2-devel >= 2.12
|
|
|
BuildRequires: pygobject-devel >= 2.15.3
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
-Requires: lua python
|
|
|
+#Requires: lua python
|
|
|
|
|
|
|
|
|
%description
|
|
@@ -35,11 +35,32 @@ Requires: %{name} = %{version}-%{release}
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
developing extensions for %{name}.
|
|
|
|
|
|
+%package -n python-%{name}
|
|
|
+Group: Development/Libraries
|
|
|
+License: GPLv2+
|
|
|
+Summary: Keybinder python bindings
|
|
|
+Summary(ja): Keybinder の python バインディング
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+Requires: pygtk2 pygobject
|
|
|
+
|
|
|
+%description -n python-%{name}
|
|
|
+This package contains python bindings for keybinder.
|
|
|
+
|
|
|
+%package -n lua-%{name}
|
|
|
+Group: Development/Libraries
|
|
|
+Summary: Keybinder lua bindings
|
|
|
+Summary(ja): Keybinder の lua バインディング
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+Requires: lua
|
|
|
+
|
|
|
+%description -n lua-%{name}
|
|
|
+This package contains lua bindings for keybinder.
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
-%configure
|
|
|
+%configure --enable-static=no --enable-python
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
@@ -47,23 +68,41 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la
|
|
|
+rm -rf $RPM_BUILD_ROOT%{_libdir}/lua/5.?/%{name}.la
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+%post -p /sbin/ldconfig
|
|
|
+%postun -p /sbin/ldconfig
|
|
|
+
|
|
|
%files
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%{_libdir}/libkey*
|
|
|
-%{_libdir}/lua/5.1/%{name}.*
|
|
|
-%{python_sitearch}/%{name}
|
|
|
+%defattr(-,root,root)
|
|
|
+%{_libdir}/libkeybinder.so.*
|
|
|
+%doc NEWS AUTHORS README
|
|
|
|
|
|
%files devel
|
|
|
-%defattr(-,root,root,-)
|
|
|
-%{_includedir}/*
|
|
|
-%{_libdir}/pkgconfig/*
|
|
|
+%defattr(-,root,root)
|
|
|
+%{_includedir}/keybinder.h
|
|
|
+%{_libdir}/pkgconfig/keybinder.pc
|
|
|
+%{_libdir}/libkeybinder.so
|
|
|
+
|
|
|
+%files -n python-%{name}
|
|
|
+%defattr(-,root,root)
|
|
|
+%{python_sitearch}/%{name}
|
|
|
+%doc COPYING
|
|
|
+
|
|
|
+%files -n lua-%{name}
|
|
|
+%defattr(-,root,root)
|
|
|
+%{_libdir}/lua/5.?/keybinder.so
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2-2
|
|
|
+- splitted python-keybinder, lua-keybinder
|
|
|
+- added configure option
|
|
|
+ - --enable-static=no --enable-python
|
|
|
+
|
|
|
* Sat Jul 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.2
|
|
|
- initial build for Vine Linux
|
|
|
|