]> git.pld-linux.org Git - packages/keybinder3.git/blob - keybinder3.spec
75bc80ba888d46deb192a4f3ad98fde822915d65
[packages/keybinder3.git] / keybinder3.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library build
4 #
5 Summary:        keybinder library for GTK+3
6 Summary(pl.UTF-8):      Biblioteka keybinder dla GTK+3
7 Name:           keybinder3
8 Version:        0.3.2
9 Release:        1
10 License:        GPL v2
11 Group:          Libraries
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)
28
29 %description
30 keybinder is a library for registering global keyboard shortcuts.
31 Keybinder works with GTK-based applications using the X Window System.
32
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.
36
37 %package devel
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
43
44 %description devel
45 Header files for keybinder3 library.
46
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki keybinder3.
49
50 %package static
51 Summary:        Static keybinder3 library
52 Summary(pl.UTF-8):      Statyczna biblioteka keybinder3
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static keybinder3 library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka keybinder3.
61
62 %package doc
63 Summary:        HTML documentation for keybinder3 library
64 Summary(pl.UTF-8):      Dokumentacja w HTML biblioteki keybinder3
65 Group:          Documentation
66 Requires:       %{name} = %{version}-%{release}
67
68 %description doc
69 HTML documentation for keybinder3 library.
70
71 %description devel -l pl.UTF-8
72 Dokumentacja w HTML biblioteki keybinder3.
73
74 %prep
75 %setup -q -n keybinder-3.0-%{version}
76 %patch0 -p1
77
78 %build
79 %{__gtkdocize}
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__automake}
84 %configure \
85         --disable-silent-rules \
86         --enable-gtk-doc \
87         %{?with_static_libs:--enable-static} \
88         --with-html-dir=%{_gtkdocdir}
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 # obsoleted by pkg-config
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libkeybinder-3.0.la
101
102 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
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
116
117 %files devel
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}
125
126 %if %{with static_libs}
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libkeybinder-3.0.a
130 %endif
131
132 %files doc
133 %defattr(644,root,root,755)
134 %{_gtkdocdir}/keybinder-3.0
This page took 0.076495 seconds and 2 git commands to generate.