]> git.pld-linux.org Git - packages/keybinder3.git/blame - keybinder3.spec
- new URLs, updated to 0.3.2
[packages/keybinder3.git] / keybinder3.spec
CommitLineData
86a6883a
JP
1#
2# Conditional build:
3%bcond_without static_libs # static library build
4#
5Summary: keybinder library for GTK+3
6Summary(pl.UTF-8): Biblioteka keybinder dla GTK+3
7Name: keybinder3
2862399e 8Version: 0.3.2
86a6883a
JP
9Release: 1
10License: GPL v2
11Group: Libraries
2862399e
JB
12#Source0Download: https://github.com/kupferlauncher/keybinder/releases
13Source0: https://github.com/kupferlauncher/keybinder/releases/download/keybinder-3.0-v%{version}/keybinder-3.0-%{version}.tar.gz
14# Source0-md5: 97260321fda721fce799174ea6ba10cf
15URL: https://github.com/kupferlauncher/keybinder/
86a6883a
JP
16BuildRequires: autoconf >= 2.62
17BuildRequires: automake >= 1:1.9.2
18BuildRequires: gobject-introspection-devel >= 0.6.7
86a6883a 19BuildRequires: gtk-doc >= 1.14
2862399e 20BuildRequires: gtk+3-devel >= 3.0
86a6883a
JP
21BuildRequires: libtool
22BuildRequires: pkgconfig
23BuildRequires: xorg-lib-libX11-devel
24BuildRequires: xorg-lib-libXext-devel
25BuildRequires: xorg-lib-libXrender-devel
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29keybinder is a library for registering global keyboard shortcuts.
30Keybinder works with GTK-based applications using the X Window System.
31
32%description -l pl.UTF-8
33keybinder jest biblioteką umożliwiającą rejestrowanie globalnych
34skrótów klawiszowych. Działa z aplikacjami opartymi na GTK.
35
36%package devel
37Summary: Header files for keybinder3 library
38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki keybinder3
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
2862399e 41Requires: gtk+3-devel >= 3.0
86a6883a
JP
42
43%description devel
44Header files for keybinder3 library.
45
46%description devel -l pl.UTF-8
47Pliki nagłówkowe biblioteki keybinder3.
48
49%package static
50Summary: Static keybinder3 library
51Summary(pl.UTF-8): Statyczna biblioteka keybinder3
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static keybinder3 library.
57
58%description static -l pl.UTF-8
59Statyczna biblioteka keybinder3.
60
61%package doc
62Summary: HTML documentation for keybinder3 library
63Summary(pl.UTF-8): Dokumentacja w HTML biblioteki keybinder3
64Group: Documentation
65Requires: %{name} = %{version}-%{release}
66
67%description doc
68HTML documentation for keybinder3 library.
69
70%description devel -l pl.UTF-8
71Dokumentacja w HTML biblioteki keybinder3.
72
73%prep
2862399e 74%setup -q -n keybinder-3.0-%{version}
86a6883a
JP
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
91rm -rf $RPM_BUILD_ROOT
92install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93
94%{__make} install \
95 DESTDIR=$RPM_BUILD_ROOT
96
2862399e
JB
97# obsoleted by pkg-config
98%{__rm} $RPM_BUILD_ROOT%{_libdir}/libkeybinder-3.0.la
99
86a6883a
JP
100cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
101
102%clean
103rm -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
86a6883a 111%attr(755,root,root) %{_libdir}/libkeybinder-3.0.so.*.*.*
2862399e 112%attr(755,root,root) %ghost %{_libdir}/libkeybinder-3.0.so.0
86a6883a
JP
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
86a6883a
JP
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.100065 seconds and 4 git commands to generate.