Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
keybinder
keybinder.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File keybinder.spec of Package keybinder
# # spec file for package keybinder # # Copyright (c) 2012 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 libname libkeybinder0 Name: keybinder Version: 0.2.2 Release: 0 Summary: A Library for Registering Global Keyboard Shortcuts License: GPL-2.0+ ; MIT Group: Development/Libraries/Other Url: http://kaizer.se/wiki/keybinder/ Source: http://kaizer.se/publicfiles/keybinder/%{name}-%{version}.tar.gz BuildRequires: ed BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-gobject2-devel BuildRequires: python-gtk-devel %if 0%{suse_version} > 1210 BuildRequires: lua51-devel BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xkbcommon) %else BuildRequires: lua-devel BuildRequires: xorg-x11-devel %endif BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xrender) 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} 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 Summary: Development Files for Keybinder Group: Development/Libraries/Other Requires: %{libname} = %{version} %description devel This package contains development files needed for developing applications based on keybinder. %package lua 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: %{libname} = %{version} Requires: python-base = %{py_ver} Requires: python-gobject2 Requires: python-gtk %description -n python-%{name} This package contains python bindings for keybinder. %prep %setup -q find examples/ \( -name '*.py' -o -name '*.lua' \) -print -exec sh -c ' ed -s "$1" 2>/dev/null <<\EOF ,s/^#!\/usr\/bin\/env /#!\/usr\/bin\// w EOF ' {} {} \; %build %{configure}\ --disable-static make %{?_smp_mflags} V=1 %install %make_install find %{buildroot}%{_libdir} -name '*.la' -exec rm -f {} + find examples -type f -exec chmod 644 {} + %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.* %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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor