3 %bcond_without static_libs # static library build
5 Summary: keybinder library for GTK+3
6 Summary(pl.UTF-8): Biblioteka keybinder dla GTK+3
12 Source0: https://github.com/engla/keybinder/archive/keybinder-3.0-v%{version}.tar.gz
13 # Source0-md5: c2f534d7977b337b333313ac9b8bd6c9
14 URL: https://github.com/engla/keybinder/
15 BuildRequires: autoconf >= 2.62
16 BuildRequires: automake >= 1:1.9.2
17 BuildRequires: gobject-introspection-devel >= 0.6.7
18 BuildRequires: gnome-common
19 BuildRequires: gtk-doc >= 1.14
20 BuildRequires: gtk+3-devel
21 BuildRequires: libtool
22 BuildRequires: pkgconfig
23 BuildRequires: xorg-lib-libX11-devel
24 BuildRequires: xorg-lib-libXext-devel
25 BuildRequires: xorg-lib-libXrender-devel
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 keybinder is a library for registering global keyboard shortcuts.
30 Keybinder works with GTK-based applications using the X Window System.
32 %description -l pl.UTF-8
33 keybinder jest biblioteką umożliwiającą rejestrowanie globalnych
34 skrótów klawiszowych. Działa z aplikacjami opartymi na GTK.
37 Summary: Header files for keybinder3 library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki keybinder3
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
44 Header files for keybinder3 library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki keybinder3.
50 Summary: Static keybinder3 library
51 Summary(pl.UTF-8): Statyczna biblioteka keybinder3
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static keybinder3 library.
58 %description static -l pl.UTF-8
59 Statyczna biblioteka keybinder3.
62 Summary: HTML documentation for keybinder3 library
63 Summary(pl.UTF-8): Dokumentacja w HTML biblioteki keybinder3
65 Requires: %{name} = %{version}-%{release}
68 HTML documentation for keybinder3 library.
70 %description devel -l pl.UTF-8
71 Dokumentacja w HTML biblioteki keybinder3.
74 %setup -q -n keybinder-keybinder-3.0-v%{version}
83 --disable-silent-rules \
85 %{?with_static_libs:--enable-static} \
86 --with-html-dir=%{_gtkdocdir}
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
95 DESTDIR=$RPM_BUILD_ROOT
97 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %doc AUTHORS NEWS README
108 %attr(755,root,root) %ghost %{_libdir}/libkeybinder-3.0.so.0
109 %attr(755,root,root) %{_libdir}/libkeybinder-3.0.so.*.*.*
110 %{_libdir}/girepository-1.0/Keybinder-3.0.typelib
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libkeybinder-3.0.so
115 %{_libdir}/libkeybinder-3.0.la
116 %{_datadir}/gir-1.0/Keybinder-3.0.gir
117 %dir %{_includedir}/keybinder-3.0
118 %{_includedir}/keybinder-3.0/keybinder.h
119 %{_pkgconfigdir}/keybinder-3.0.pc
120 %{_examplesdir}/%{name}-%{version}
122 %if %{with static_libs}
124 %defattr(644,root,root,755)
125 %{_libdir}/libkeybinder-3.0.a
129 %defattr(644,root,root,755)
130 %{_gtkdocdir}/keybinder-3.0