File keybinder.spec of Package keybinder
#
# spec file for package keybinder
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define srcname keybinder
%define SONAME 0
%define libname lib%{name}%{SONAME}
Name: keybinder
Version: 0.2.2
Release: 3
License: GPLv2
Summary: A Library for Registering Global Keyboard Shortcuts
Url: http://kaizer.se/wiki/keybinder/
Group: Development/Libraries/Other
Source: %{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: lua-devel
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: python-devel
BuildRequires: python-gobject2-devel
BuildRequires: python-gtk-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Library for registering global keyboard shortcuts. Keybinder
works with GTK-based applications using the X Window System.
The library contains:
- A C library, libkeybinder
- Lua bindings, lua-keybinder
- Python bindings, python-keybinder
- An examples directory with programs in C, Lua, Python and Vala.
%package -n %libname
License: GPLv2
Summary: Library Package for Keybinder
Group: System/Libraries
%description -n %libname
Library for registering global keyboard shortcuts. Keybinder
works with GTK-based applications using the X Window System.
The library contains:
- A C library, libkeybinder
- Lua bindings, lua-keybinder
- Python bindings, python-keybinder
- An examples directory with programs in C, Lua, Python and Vala.
%package devel
License: GPLv2
Summary: Development Files for Keybinder
Group: Development/Libraries/Other
Requires: %{libname} = %{version}
Requires: pkgconfig(gtk+-2.0)
%description devel
This package contains development files needed for developing applications
based on keybinder.
%package lua
License: GPLv2
Summary: Lua Files for Keybinder
Group: Development/Libraries/Other
Requires: %{libname} = %{version}
%description lua
This package contains Lua files for applications based on keybinder.
%package -n python-%{name}
Summary: Python Bindings for Keybinder
Group: Development/Libraries/Python
Requires: python-base = %{py_ver}
Requires: %{libname} = %{version}
Requires: python-gobject2
Requires: python-gtk
%description -n python-%{name}
This package contains python bindings for keybinder.
%prep
%setup -q
%build
%{configure}\
--disable-static \
--enable-python
make %{?_smp_mflags} V=1
%install
%make_install
find %{buildroot} -name '*.la' -delete -print
%fdupes %{buildroot}
%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -n %libname
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libkeybinder.so.%{SONAME}*
%files devel
%defattr(-,root,root)
%doc examples
%{_includedir}/keybinder.h
%{_libdir}/libkeybinder.so
%{_libdir}/pkgconfig/keybinder.pc
%files lua
%defattr(-,root,root)
%{_libdir}/lua/*/keybinder.so
%files -n python-%{name}
%defattr(-,root,root)
%{python_sitearch}/%{name}
%changelog