]> git.pld-linux.org Git - packages/keybinder3.git/blob - keybinder3.spec
c5b9ef21043a8af82aabfcc16a76e08b290f9fde
[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.1
9 Release:        1
10 License:        GPL v2
11 Group:          Libraries
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)
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
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-keybinder-3.0-v%{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 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
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
111
112 %files devel
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}
121
122 %if %{with static_libs}
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libkeybinder-3.0.a
126 %endif
127
128 %files doc
129 %defattr(644,root,root,755)
130 %{_gtkdocdir}/keybinder-3.0
This page took 0.076209 seconds and 2 git commands to generate.