]>
Commit | Line | Data |
---|---|---|
3f5d1bd5 JR |
1 | # |
2 | # Conditional build: | |
03a2e0dc | 3 | %bcond_without static_libs # static libraries |
3f5d1bd5 JR |
4 | # |
5 | Summary: An implementation of the GEIS (Gesture Engine Interface and Support) interface | |
03a2e0dc | 6 | Summary(pl.UTF-8): Implementacja interfejsu GEIS (Gesture Engine Interface and Support) |
3f5d1bd5 | 7 | Name: geis |
e5d98868 | 8 | Version: 2.2.17 |
0af26f40 | 9 | Release: 10 |
3f5d1bd5 JR |
10 | License: GPL v3/LGPL v3 |
11 | Group: Libraries | |
12 | Source0: https://launchpad.net/geis/trunk/%{version}/+download/%{name}-%{version}.tar.xz | |
e5d98868 | 13 | # Source0-md5: 2ff9d76a3ea5794516bb02c9d1924faf |
7c058ab1 | 14 | Patch0: build.patch |
3f5d1bd5 | 15 | URL: https://launchpad.net/geis |
e5d98868 AM |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
3f5d1bd5 JR |
18 | BuildRequires: dbus-devel >= 1.2.16 |
19 | BuildRequires: frame-devel >= 2.2 | |
20 | BuildRequires: grail-devel >= 3.0.8 | |
e5d98868 | 21 | BuildRequires: libtool |
3f5d1bd5 JR |
22 | BuildRequires: libxcb-devel >= 1.6 |
23 | BuildRequires: python3-devel | |
24 | BuildRequires: python3-modules | |
eaebaa70 | 25 | BuildRequires: python3-setuptools > 1:7.0 |
3f5d1bd5 JR |
26 | BuildRequires: rpm-pythonprov |
27 | BuildRequires: xorg-lib-libX11-devel | |
28 | BuildRequires: xorg-lib-libXext-devel | |
29 | BuildRequires: xorg-lib-libXi-devel >= 1.3 | |
30 | Requires(post,postun): /sbin/ldconfig | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | GEIS is a library for applications and toolkit programmers which | |
35 | provides a consistent platform independent interface for any | |
36 | system-wide input gesture recognition mechanism. | |
37 | ||
03a2e0dc JB |
38 | %description -l pl.UTF-8 |
39 | GEIS to biblioteka dla programistów aplikacji i toolkitów, | |
40 | zapewniająca spójny, niezależny od platformy interfejs do wszystkich | |
41 | systemowych mechanizmów rozpoznawania gestów. | |
42 | ||
3f5d1bd5 JR |
43 | %package tools |
44 | Summary: Test tools for geis library | |
45 | Summary(pl.UTF-8): Testowe narzędzia biblioteki geis | |
3f5d1bd5 JR |
46 | Group: Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
49 | %description tools | |
50 | Test tools for geis library. | |
51 | ||
52 | %description tools -l pl.UTF-8 | |
53 | Testowe narzędzia biblioteki geis. | |
54 | ||
55 | %package devel | |
56 | Summary: Header files for geis library | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki geis | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | ||
61 | %description devel | |
62 | Header files for geis library. | |
63 | ||
64 | %description devel -l pl.UTF-8 | |
65 | Pliki nagłówkowe biblioteki geis. | |
66 | ||
67 | %package static | |
68 | Summary: Static geis library | |
69 | Summary(pl.UTF-8): Statyczna biblioteka geis | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-devel = %{version}-%{release} | |
72 | ||
73 | %description static | |
74 | Static geis library. | |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka geis. | |
78 | ||
79 | %package -n python3-geis | |
03a2e0dc JB |
80 | Summary: Python 3 bindings for geis library |
81 | Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki geis | |
3f5d1bd5 JR |
82 | Group: Libraries/Python |
83 | Requires: %{name} = %{version}-%{release} | |
84 | Requires: python3-modules | |
85 | ||
86 | %description -n python3-geis | |
03a2e0dc | 87 | Python 3 bindings for geis library. |
3f5d1bd5 JR |
88 | |
89 | %description -n python3-geis -l pl.UTF-8 | |
03a2e0dc | 90 | Wiązania Pythona 3 do biblioteki geis. |
3f5d1bd5 JR |
91 | |
92 | %package -n geisview | |
93 | Summary: A tool to view operation of the GEIS API | |
94 | Summary(pl.UTF-8): Narzędzie do przeglądania działania GEIS API. | |
95 | Group: Applications | |
96 | Requires: python3-geis = %{version}-%{release} | |
97 | ||
98 | %description -n geisview | |
99 | A tool to view operation of the GEIS API. | |
100 | ||
101 | %description -n geisview -l pl.UTF-8 | |
102 | Narzędzie do przeglądania działania GEIS API. | |
103 | ||
104 | %prep | |
105 | %setup -q | |
7c058ab1 | 106 | %patch0 -p1 |
3f5d1bd5 | 107 | |
e5d98868 AM |
108 | sed -i -e 's#-pedantic##g' configure.ac |
109 | ||
3f5d1bd5 | 110 | %build |
e5d98868 AM |
111 | %{__libtoolize} |
112 | %{__aclocal} | |
113 | %{__autoconf} | |
114 | %{__automake} | |
3f5d1bd5 JR |
115 | %configure \ |
116 | %{!?with_static_libs:--disable-static} | |
117 | %{__make} V=1 | |
118 | ||
119 | %install | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %{__make} install \ | |
123 | DESTDIR=$RPM_BUILD_ROOT | |
124 | ||
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files | |
134 | %defattr(644,root,root,755) | |
135 | %doc AUTHORS README | |
136 | %attr(755,root,root) %{_libdir}/libgeis.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libgeis.so.1 | |
138 | ||
139 | %files tools | |
140 | %defattr(644,root,root,755) | |
141 | %attr(755,root,root) %{_bindir}/geistest | |
3f5d1bd5 JR |
142 | %attr(755,root,root) %{_bindir}/pygeis |
143 | %{_mandir}/man1/pygeis.1* | |
144 | %{_mandir}/man1/geistest.1* | |
145 | ||
146 | %files devel | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_libdir}/libgeis.so | |
149 | %{_includedir}/geis | |
150 | %{_pkgconfigdir}/libgeis.pc | |
151 | ||
152 | %if %{with static_libs} | |
153 | %files static | |
154 | %defattr(644,root,root,755) | |
155 | %{_libdir}/libgeis.a | |
156 | %endif | |
157 | ||
158 | %files -n python3-geis | |
159 | %defattr(644,root,root,755) | |
03a2e0dc | 160 | %attr(755,root,root) %{py3_sitedir}/_geis_bindings.so |
3f5d1bd5 | 161 | %dir %{py3_sitescriptdir}/geis |
e5d98868 | 162 | %{py3_sitescriptdir}/geis/__pycache__ |
3f5d1bd5 JR |
163 | %{py3_sitescriptdir}/geis/__init__.py* |
164 | %{py3_sitescriptdir}/geis/geis_v2.py* | |
165 | ||
166 | %files -n geisview | |
167 | %defattr(644,root,root,755) | |
168 | %attr(755,root,root) %{_bindir}/geisview | |
169 | %dir %{py3_sitescriptdir}/geisview | |
e5d98868 | 170 | %{py3_sitescriptdir}/geisview/__pycache__ |
3f5d1bd5 JR |
171 | %{py3_sitescriptdir}/geisview/*.py* |
172 | %{_desktopdir}/geisview.desktop | |
173 | %dir %{_datadir}/geisview | |
174 | %{_datadir}/geisview/filter_definition.ui | |
175 | %{_datadir}/geisview/filter_list.ui | |
176 | %{_datadir}/geisview/geisview.ui | |
177 | %{_pixmapsdir}/geisview32x32.xpm | |
178 | %{_mandir}/man1/geisview.1* |