]> git.pld-linux.org Git - packages/keybinder3.git/blame - keybinder3.spec
fix shebangs
[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
34408fe2 15Patch0: %{name}-docs.patch
2862399e 16URL: https://github.com/kupferlauncher/keybinder/
86a6883a
JP
17BuildRequires: autoconf >= 2.62
18BuildRequires: automake >= 1:1.9.2
19BuildRequires: gobject-introspection-devel >= 0.6.7
86a6883a 20BuildRequires: gtk-doc >= 1.14
2862399e 21BuildRequires: gtk+3-devel >= 3.0
86a6883a
JP
22BuildRequires: libtool
23BuildRequires: pkgconfig
24BuildRequires: xorg-lib-libX11-devel
25BuildRequires: xorg-lib-libXext-devel
26BuildRequires: xorg-lib-libXrender-devel
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30keybinder is a library for registering global keyboard shortcuts.
31Keybinder works with GTK-based applications using the X Window System.
32
33%description -l pl.UTF-8
34keybinder jest biblioteką umożliwiającą rejestrowanie globalnych
35skrótów klawiszowych. Działa z aplikacjami opartymi na GTK.
36
37%package devel
38Summary: Header files for keybinder3 library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki keybinder3
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
2862399e 42Requires: gtk+3-devel >= 3.0
86a6883a
JP
43
44%description devel
45Header files for keybinder3 library.
46
47%description devel -l pl.UTF-8
48Pliki nagłówkowe biblioteki keybinder3.
49
50%package static
51Summary: Static keybinder3 library
52Summary(pl.UTF-8): Statyczna biblioteka keybinder3
53Group: Development/Libraries
54Requires: %{name}-devel = %{version}-%{release}
55
56%description static
57Static keybinder3 library.
58
59%description static -l pl.UTF-8
60Statyczna biblioteka keybinder3.
61
62%package doc
63Summary: HTML documentation for keybinder3 library
64Summary(pl.UTF-8): Dokumentacja w HTML biblioteki keybinder3
65Group: Documentation
66Requires: %{name} = %{version}-%{release}
67
68%description doc
69HTML documentation for keybinder3 library.
70
71%description devel -l pl.UTF-8
72Dokumentacja w HTML biblioteki keybinder3.
73
74%prep
2862399e 75%setup -q -n keybinder-3.0-%{version}
34408fe2 76%patch0 -p1
86a6883a 77
2a012905
JP
78grep -rl /usr/bin/env examples | xargs sed -i -e '1{
79 s,^#!.*bin/env python,#!%{__python},
80 s,^#!.*bin/env lua,#!%{__lua},
81}'
82
86a6883a
JP
83%build
84%{__gtkdocize}
85%{__libtoolize}
86%{__aclocal}
87%{__autoconf}
88%{__automake}
89%configure \
90 --disable-silent-rules \
91 --enable-gtk-doc \
92 %{?with_static_libs:--enable-static} \
93 --with-html-dir=%{_gtkdocdir}
94
95%{__make}
96
97%install
98rm -rf $RPM_BUILD_ROOT
99install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
100
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
103
2862399e
JB
104# obsoleted by pkg-config
105%{__rm} $RPM_BUILD_ROOT%{_libdir}/libkeybinder-3.0.la
106
86a6883a
JP
107cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%post -p /sbin/ldconfig
113%postun -p /sbin/ldconfig
114
115%files
116%defattr(644,root,root,755)
117%doc AUTHORS NEWS README
86a6883a 118%attr(755,root,root) %{_libdir}/libkeybinder-3.0.so.*.*.*
2862399e 119%attr(755,root,root) %ghost %{_libdir}/libkeybinder-3.0.so.0
86a6883a
JP
120%{_libdir}/girepository-1.0/Keybinder-3.0.typelib
121
122%files devel
123%defattr(644,root,root,755)
124%attr(755,root,root) %{_libdir}/libkeybinder-3.0.so
86a6883a
JP
125%{_datadir}/gir-1.0/Keybinder-3.0.gir
126%dir %{_includedir}/keybinder-3.0
127%{_includedir}/keybinder-3.0/keybinder.h
128%{_pkgconfigdir}/keybinder-3.0.pc
129%{_examplesdir}/%{name}-%{version}
130
131%if %{with static_libs}
132%files static
133%defattr(644,root,root,755)
134%{_libdir}/libkeybinder-3.0.a
135%endif
136
137%files doc
138%defattr(644,root,root,755)
139%{_gtkdocdir}/keybinder-3.0
This page took 0.111592 seconds and 4 git commands to generate.