johannes lips e2bf1f1
Name:	keybinder
1d0b0ba
Version:	0.3.0
f7e7835
Release:	4%{?dist}
johannes lips e2bf1f1
Summary:	A library for registering global keyboard shortcuts
johannes lips e2bf1f1
Group:	Development/Libraries
johannes lips e2bf1f1
License:	MIT
johannes lips e2bf1f1
URL:	http://kaizer.se/wiki/keybinder/
johannes lips e2bf1f1
Source0:	http://kaizer.se/publicfiles/%{name}/%{name}-%{version}.tar.gz
johannes lips e2bf1f1
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
johannes lips e2bf1f1
johannes lips e2bf1f1
BuildRequires:	gtk2-devel
johannes lips e2bf1f1
BuildRequires:	python-devel
johannes lips e2bf1f1
BuildRequires:	pygtk2-devel
johannes lips e2bf1f1
BuildRequires:	pygobject2-devel
johannes lips f0c1227
johannes lips e2bf1f1
johannes lips e2bf1f1
%description
johannes lips e2bf1f1
keybinder is a library for registering global keyboard shortcuts. 
johannes lips e2bf1f1
Keybinder works with GTK-based applications using the X Window System.
johannes lips e2bf1f1
johannes lips e2bf1f1
The library contains:
johannes lips e2bf1f1
- A C library, libkeybinder
johannes lips e2bf1f1
- Python bindings, python-keybinder
johannes lips e2bf1f1
- An examples directory with programs in C, Lua, Python and Vala.
johannes lips e2bf1f1
johannes lips e2bf1f1
%package devel
johannes lips e2bf1f1
Summary: Development files for %{name}
johannes lips e2bf1f1
Group: Development/Libraries
johannes lips e2bf1f1
Requires: %{name} = %{version}-%{release}
johannes lips f0c1227
Requires: pkgconfig
johannes lips e2bf1f1
johannes lips e2bf1f1
%description devel
johannes lips e2bf1f1
This package contains the development files for %{name}.
johannes lips e2bf1f1
johannes lips e2bf1f1
johannes lips e2bf1f1
%package -n python-%{name}
johannes lips e2bf1f1
Group:		Development/Libraries
johannes lips e2bf1f1
License:	GPLv2+
johannes lips e2bf1f1
Summary:	Keybinder python bindings
johannes lips e2bf1f1
Requires:	%{name} = %{version}-%{release}
johannes lips e2bf1f1
Requires:	pygtk2 pygobject2
johannes lips e2bf1f1
johannes lips e2bf1f1
%filter_provides_in %{python_sitearch}.*\.so$
johannes lips e2bf1f1
%filter_setup
johannes lips e2bf1f1
johannes lips e2bf1f1
%description -n python-%{name}
johannes lips e2bf1f1
This package contains python bindings for keybinder.
johannes lips e2bf1f1
johannes lips e2bf1f1
%prep
johannes lips e2bf1f1
%setup -q -n %{name}-%{version}
johannes lips e2bf1f1
johannes lips e2bf1f1
%build
b92e874
%configure --disable-static --enable-python --disable-lua
johannes lips e2bf1f1
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
johannes lips e2bf1f1
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
johannes lips e2bf1f1
make %{?_smp_mflags}
johannes lips e2bf1f1
johannes lips e2bf1f1
%install
johannes lips e2bf1f1
rm -rf %{buildroot}
johannes lips e2bf1f1
make install DESTDIR=%{buildroot}
johannes lips e2bf1f1
johannes lips e2bf1f1
rm -rf %{buildroot}/%{_libdir}/libkeybinder.la
johannes lips e2bf1f1
rm -rf %{buildroot}/%{_libdir}/lua/5.1/keybinder.la
johannes lips e2bf1f1
rm -rf %{python_sitearch}/%{name}/_keybinder.la
johannes lips e2bf1f1
johannes lips e2bf1f1
%clean
johannes lips e2bf1f1
rm -rf %{buildroot}
johannes lips e2bf1f1
johannes lips e2bf1f1
%post -p /sbin/ldconfig
johannes lips e2bf1f1
%postun -p /sbin/ldconfig
johannes lips e2bf1f1
johannes lips e2bf1f1
%files
johannes lips e2bf1f1
%defattr(-,root,root)
johannes lips e2bf1f1
%{_libdir}/libkeybinder.so.* 
johannes lips e2bf1f1
%doc NEWS AUTHORS README
johannes lips e2bf1f1
johannes lips e2bf1f1
%files devel
johannes lips e2bf1f1
%defattr(-,root,root)
johannes lips e2bf1f1
%{_includedir}/keybinder.h
johannes lips e2bf1f1
%{_libdir}/pkgconfig/keybinder.pc
johannes lips e2bf1f1
%{_libdir}/libkeybinder.so 
49a494d
%{_datadir}/gtk-doc
8e9d3b8
%{_datadir}/gtk-doc/html/%{name}
johannes lips e2bf1f1
johannes lips e2bf1f1
%files -n python-%{name}
johannes lips e2bf1f1
%defattr(-,root,root)
johannes lips e2bf1f1
%{python_sitearch}/%{name}
johannes lips e2bf1f1
%doc COPYING
johannes lips e2bf1f1
johannes lips e2bf1f1
%changelog
f7e7835
* Sat Jun 07 2014 Johannes Lips <hannes@fedoraproject.org> - 0.3.0-4
b92e874
- disabled the lua bindings to make it buildable again
d1aa17f
f7e7835
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0.3
f7e7835
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f7e7835
f7e7835
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
f7e7835
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f7e7835
1d0b0ba
* Thu Jul 19 2012 Johannes Lips <hannes@fedoraproject.org> - 0.3.0-1
1d0b0ba
- update to version 0.3.0
49a494d
- added the gtk-doc file to the devel package
1d0b0ba
9b90009
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-9
9b90009
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9b90009
868af62
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-8
868af62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
868af62
d579323
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.2.2-7
d579323
- Rebuild for new libpng
d579323
fc4455a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-6
fc4455a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fc4455a
johannes lips f0c1227
* Mon Nov 01 2010 Johannes Lips <Johannes.Lips googlemail com> 0.2.2-5
johannes lips f0c1227
- moved the pkgconfig into the devel subpackagae
johannes lips f0c1227
johannes lips e2bf1f1
* Mon Nov 01 2010 Johannes Lips <Johannes.Lips googlemail com> 0.2.2-4
johannes lips e2bf1f1
- added the %%{release} tag to the Requires section of the subpackages
johannes lips e2bf1f1
johannes lips e2bf1f1
* Sun Oct 17 2010 Johannes Lips <Johannes.Lips googlemail com> 0.2.2-3
johannes lips e2bf1f1
- removed the *.la file from python subpackage
johannes lips e2bf1f1
- added the GPLv2+ license tag for the python subpackage
johannes lips e2bf1f1
- fixed ownership of the lua-directory
johannes lips e2bf1f1
johannes lips e2bf1f1
* Sat Oct 16 2010 Johannes Lips <Johannes.Lips googlemail com> 0.2.2-2
johannes lips e2bf1f1
- added an additional lua subpackage
johannes lips e2bf1f1
- added the MIT license
johannes lips e2bf1f1
- fixed issues with files in the wrong subpackage
johannes lips e2bf1f1
- added a filter macro in the python subpackage
johannes lips e2bf1f1
- added a %%postun section
johannes lips e2bf1f1
johannes lips e2bf1f1
* Thu Oct 07 2010 Johannes Lips <Johannes.Lips googlemail com> 0.2.2-1
johannes lips e2bf1f1
- initial fedora spec