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 Patch0: %{name}-docs.patch
16 URL: https://github.com/kupferlauncher/keybinder/
17 BuildRequires: autoconf >= 2.62
18 BuildRequires: automake >= 1:1.9.2
19 BuildRequires: gobject-introspection-devel >= 0.6.7
20 BuildRequires: gtk-doc >= 1.14
21 BuildRequires: gtk+3-devel >= 3.0
22 BuildRequires: libtool
23 BuildRequires: pkgconfig
24 BuildRequires: xorg-lib-libX11-devel
25 BuildRequires: xorg-lib-libXext-devel
26 BuildRequires: xorg-lib-libXrender-devel
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 keybinder is a library for registering global keyboard shortcuts.
31 Keybinder works with GTK-based applications using the X Window System.
33 %description -l pl.UTF-8
34 keybinder jest biblioteką umożliwiającą rejestrowanie globalnych
35 skrótów klawiszowych. Działa z aplikacjami opartymi na GTK.
38 Summary: Header files for keybinder3 library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki keybinder3
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: gtk+3-devel >= 3.0
45 Header files for keybinder3 library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki keybinder3.
51 Summary: Static keybinder3 library
52 Summary(pl.UTF-8): Statyczna biblioteka keybinder3
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static keybinder3 library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka keybinder3.
63 Summary: HTML documentation for keybinder3 library
64 Summary(pl.UTF-8): Dokumentacja w HTML biblioteki keybinder3
66 Requires: %{name} = %{version}-%{release}
69 HTML documentation for keybinder3 library.
71 %description devel -l pl.UTF-8
72 Dokumentacja w HTML biblioteki keybinder3.
75 %setup -q -n keybinder-3.0-%{version}
85 --disable-silent-rules \
87 %{?with_static_libs:--enable-static} \
88 --with-html-dir=%{_gtkdocdir}
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
97 DESTDIR=$RPM_BUILD_ROOT
99 # obsoleted by pkg-config
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libkeybinder-3.0.la
102 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc AUTHORS NEWS README
113 %attr(755,root,root) %{_libdir}/libkeybinder-3.0.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libkeybinder-3.0.so.0
115 %{_libdir}/girepository-1.0/Keybinder-3.0.typelib
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libkeybinder-3.0.so
120 %{_datadir}/gir-1.0/Keybinder-3.0.gir
121 %dir %{_includedir}/keybinder-3.0
122 %{_includedir}/keybinder-3.0/keybinder.h
123 %{_pkgconfigdir}/keybinder-3.0.pc
124 %{_examplesdir}/%{name}-%{version}
126 %if %{with static_libs}
128 %defattr(644,root,root,755)
129 %{_libdir}/libkeybinder-3.0.a
133 %defattr(644,root,root,755)
134 %{_gtkdocdir}/keybinder-3.0