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 #Source0Download: https://github.com/kupferlauncher/keybinder/releases
13 Source0: https://github.com/kupferlauncher/keybinder/releases/download/keybinder-3.0-v%{version}/keybinder-3.0-%{version}.tar.gz
14 # Source0-md5: 97260321fda721fce799174ea6ba10cf
15 URL: https://github.com/kupferlauncher/keybinder/
16 BuildRequires: autoconf >= 2.62
17 BuildRequires: automake >= 1:1.9.2
18 BuildRequires: gobject-introspection-devel >= 0.6.7
19 BuildRequires: gtk-doc >= 1.14
20 BuildRequires: gtk+3-devel >= 3.0
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}
41 Requires: gtk+3-devel >= 3.0
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-3.0-%{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 # obsoleted by pkg-config
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libkeybinder-3.0.la
100 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS NEWS README
111 %attr(755,root,root) %{_libdir}/libkeybinder-3.0.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libkeybinder-3.0.so.0
113 %{_libdir}/girepository-1.0/Keybinder-3.0.typelib
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libkeybinder-3.0.so
118 %{_datadir}/gir-1.0/Keybinder-3.0.gir
119 %dir %{_includedir}/keybinder-3.0
120 %{_includedir}/keybinder-3.0/keybinder.h
121 %{_pkgconfigdir}/keybinder-3.0.pc
122 %{_examplesdir}/%{name}-%{version}
124 %if %{with static_libs}
126 %defattr(644,root,root,755)
127 %{_libdir}/libkeybinder-3.0.a
131 %defattr(644,root,root,755)
132 %{_gtkdocdir}/keybinder-3.0