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