787fe44
Name:		keybinder
f1c51f5
Version:	0.3.1
787fe44
Release:	12%{?dist}
johannes lips e2bf1f1
Summary:	A library for registering global keyboard shortcuts
787fe44
Group:		Development/Libraries
johannes lips e2bf1f1
License:	MIT
f1c51f5
URL:		https://github.com/engla/keybinder
787fe44
Source0:	%url/releases/download/v%{version}/%{name}-%{version}.tar.gz
johannes lips e2bf1f1
787fe44
BuildRequires:	automake
787fe44
BuildRequires:	gcc
johannes lips e2bf1f1
BuildRequires:	gtk2-devel
787fe44
BuildRequires:	libtool
ec0e4c6
BuildRequires:	python2-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
787fe44
%package	devel
787fe44
Summary:	Development files for %{name}
787fe44
Group:		Development/Libraries
787fe44
Requires:	%{name}%{?_isa} = %{version}-%{release}
johannes lips e2bf1f1
787fe44
%description	devel
johannes lips e2bf1f1
This package contains the development files for %{name}.
johannes lips e2bf1f1
johannes lips e2bf1f1
787fe44
%package -n	python2-%{name}
a0bec3e
%{?python_provide:%python_provide python2-%{name}}
johannes lips e2bf1f1
Group:		Development/Libraries
johannes lips e2bf1f1
License:	GPLv2+
johannes lips e2bf1f1
Summary:	Keybinder python bindings
787fe44
Requires:	%{name}%{?_isa} = %{version}-%{release}
johannes lips e2bf1f1
Requires:	pygtk2 pygobject2
johannes lips e2bf1f1
a0bec3e
%description -n python2-%{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}
787fe44
sed -i -e 's@-rpath @@g' libkeybinder/Makefile.in \
787fe44
 lua-keybinder/Makefile.in python-keybinder/Makefile.in
787fe44
autoreconf -fiv
johannes lips e2bf1f1
johannes lips e2bf1f1
%build
787fe44
export PYTHON=%{__python2}
b92e874
%configure --disable-static --enable-python --disable-lua
787fe44
%make_build
johannes lips e2bf1f1
johannes lips e2bf1f1
%install
787fe44
%make_install
johannes lips e2bf1f1
787fe44
#Remove libtool archives.
787fe44
find %{buildroot} -name '*.la'| xargs rm -f
johannes lips e2bf1f1
787fe44
787fe44
%ldconfig_scriptlets
johannes lips e2bf1f1
johannes lips e2bf1f1
%files
johannes lips e2bf1f1
%doc NEWS AUTHORS README
787fe44
%{_libdir}/libkeybinder.so.* 
johannes lips e2bf1f1
johannes lips e2bf1f1
%files devel
johannes lips e2bf1f1
%{_includedir}/keybinder.h
johannes lips e2bf1f1
%{_libdir}/pkgconfig/keybinder.pc
787fe44
%{_libdir}/libkeybinder.so
8e9d3b8
%{_datadir}/gtk-doc/html/%{name}
johannes lips e2bf1f1
a0bec3e
%files -n python2-%{name}
johannes lips e2bf1f1
%doc COPYING
787fe44
%{python2_sitearch}/%{name}
johannes lips e2bf1f1
johannes lips e2bf1f1
%changelog
787fe44
* Mon Sep 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 0.3.1-12
787fe44
- Fix f29 FTBFS (rhbz#1604486)
787fe44
- spec file clean up
787fe44
ad36bda
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-11
ad36bda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ad36bda
ec0e4c6
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.1-10
ec0e4c6
- Update Python 2 dependency declarations to new packaging standards
ec0e4c6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
ec0e4c6
4408889
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-9
4408889
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4408889
a0bec3e
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-8
a0bec3e
- Python 2 binary package renamed to python2-keybinder
a0bec3e
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
a0bec3e
b8c1f38
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-7
b8c1f38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b8c1f38
546ba0e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
546ba0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
546ba0e
Igor Gnatenko c7fb942
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.1-5
Igor Gnatenko c7fb942
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko c7fb942
1cfb196
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
1cfb196
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1cfb196
65874e0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-3
65874e0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
65874e0
f0974c2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
f0974c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f0974c2
f1c51f5
* Sun Nov 15 2015 Johannes Lips <hannes@fedoraproject.org> - 0.3.1-1
f1c51f5
- update to 0.3.1
f1c51f5
- change of upstream URL
f1c51f5
9fbba9e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-6
9fbba9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9fbba9e
48a83df
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-5
48a83df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
48a83df
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