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