]>
Commit | Line | Data |
---|---|---|
af34125f | 1 | # |
2 | # TODO: - define _one_, system-wide place for ca-bundle.crt and use one, up-to-date file | |
a57bd46d JB |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without fox # FOX 1.6 GUI | |
af34125f | 6 | # |
c9677431 | 7 | Summary: Gwenhywfar - a multi-platform helper library for networking and security |
c0251854 | 8 | Summary(pl.UTF-8): Gwenhywfar - wieloplatformowa biblioteka pomocnicza do sieci i bezpieczeństwa |
c9677431 | 9 | Name: gwenhywfar |
9b17a7cc | 10 | Version: 4.2.1 |
11 | Release: 1 | |
c9677431 JB |
12 | License: LGPL v2.1+ with OpenSSL linking exception |
13 | Group: Libraries | |
104ef448 | 14 | # http://www2.aquamaniac.de/sites/download/packages.php |
6440f570 | 15 | Source0: %{name}-%{version}.tar.gz |
9b17a7cc | 16 | # Source0-md5: b1673f601af5f07d591f6716d822275b |
a3e2fd8e | 17 | URL: http://www.aquamaniac.de/aqbanking/ |
9db45f92 | 18 | BuildRequires: QtGui-devel >= 4 |
45b54d76 | 19 | BuildRequires: autoconf >= 2.60 |
a24cb890 | 20 | BuildRequires: automake |
a57bd46d | 21 | %{?with_fox:BuildRequires: fox16-devel >= 1.6} |
a24cb890 | 22 | BuildRequires: gettext-devel |
45b54d76 | 23 | BuildRequires: gnutls-devel >= 1.6.1 |
9db45f92 JB |
24 | BuildRequires: gtk+2-devel >= 2:2.17.5 |
25 | BuildRequires: libgcrypt-devel >= 1.2.0 | |
a24cb890 | 26 | BuildRequires: libtool |
c9677431 | 27 | BuildRequires: openssl-devel |
9db45f92 | 28 | BuildRequires: pkgconfig |
c3f30a6d | 29 | BuildRequires: qt4-build |
9db45f92 | 30 | Requires: libgcrypt >= 1.2.0 |
c9677431 JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | This is Gwenhywfar, a multi-platform helper library for networking and | |
35 | security applications and libraries. It is used by: | |
45b54d76 | 36 | - Libchipcard (http://www.libchipcard.de/), |
c9677431 JB |
37 | - OpenHBCI2 (http://www.openhbci.de/), |
38 | - Simthetic, the simulation tool (http://simthetic.sourceforge.net/) | |
39 | - AqBanking/AqHBCI (http://www.aquamaniac.de/aqbanking/). | |
40 | ||
4dabdb30 | 41 | %description -l pl.UTF-8 |
c9677431 | 42 | To jest Gwenhywfar - wieloplatformowa biblioteka pomocnicza do |
4dabdb30 JR |
43 | aplikacji i bibliotek związanych z siecią i bezpieczeństwem. Jest |
44 | używana przez: | |
45b54d76 | 45 | - Libchipcard (http://www.libchipcard.de/), |
c9677431 | 46 | - OpenHBCI2 (http://www.openhbci.de/), |
4dabdb30 | 47 | - narzędzie do symulacji Simthetic (http://simthetic.sourceforge.net/) |
c9677431 JB |
48 | - AqBanking/AqHBCI (http://www.aquamaniac.de/aqbanking/). |
49 | ||
50 | %package devel | |
51 | Summary: Header files for Gwenhywfar library | |
c0251854 | 52 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Gwenhywfar |
c9677431 JB |
53 | Group: Development/Libraries |
54 | Requires: %{name} = %{version}-%{release} | |
45b54d76 | 55 | Requires: gnutls-devel >= 1.6.1 |
9db45f92 | 56 | Requires: libgcrypt-devel >= 1.2.0 |
c9677431 JB |
57 | |
58 | %description devel | |
59 | Header files for Gwenhywfar library. | |
60 | ||
4dabdb30 JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe biblioteki Gwenhywfar. | |
c9677431 JB |
63 | |
64 | %package static | |
65 | Summary: Static Gwenhywfar library | |
c0251854 | 66 | Summary(pl.UTF-8): Statyczna biblioteka Gwenhywfar |
c9677431 JB |
67 | Group: Development/Libraries |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static Gwenhywfar library. | |
72 | ||
4dabdb30 | 73 | %description static -l pl.UTF-8 |
c9677431 JB |
74 | Statyczna biblioteka Gwenhywfar. |
75 | ||
a57bd46d JB |
76 | %package fox |
77 | Summary: GTK+ 2 Gwenhywfar GUI library implementation of the GWEN_DIALOG framework | |
78 | Summary(pl.UTF-8): Biblioteka graficznego interfejsu GTK+ 2 do Gwenhywfar | |
79 | Group: X11/Libraries | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | ||
82 | %description fox | |
83 | GTK+ 2 Gwenhywfar GUI library, containing GTK+ 2 implementation of the | |
84 | GWEN_DIALOG framework. | |
85 | ||
86 | %description fox | |
87 | Biblioteka graficznego interfejsu GTK+ 2 do Gwenhywfar, zawierająca | |
88 | implementację GTK+2 szkieletu GWEN_DIALOG. | |
89 | ||
90 | %package fox-devel | |
91 | Summary: Header files for FOX 1.6 Gwenhywfar GUI library | |
92 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki graficznego interfejsu FOX 1.6 do Gwenhywfar | |
93 | Group: X11/Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | Requires: %{name}-fox = %{version}-%{release} | |
96 | Requires: fox16-devel >= 1.6 | |
97 | ||
98 | %description fox-devel | |
99 | Header files for FOX 1.6 Gwenhywfar GUI library | |
100 | ||
101 | %description fox-devel -l pl.UTF-8 | |
102 | Pliki nagłówkowe biblioteki graficznego interfejsu FOX 1.6 do | |
103 | Gwenhywfar. | |
104 | ||
105 | %package fox-static | |
106 | Summary: Static FOX 1.6 Gwenhywfar GUI library | |
107 | Summary(pl.UTF-8): Statyczna biblioteka graficznego interfejsu FOX 1.6 do Gwenhywfar | |
108 | Group: X11/Development/Libraries | |
109 | Requires: %{name}-fox-devel = %{version}-%{release} | |
110 | ||
111 | %description fox-static | |
112 | Static FOX 1.6 Gwenhywfar GUI library. | |
113 | ||
114 | %description fox-static -l pl.UTF-8 | |
115 | Statyczna biblioteka graficznego interfejsu FOX 1.6 do Gwenhywfar. | |
116 | ||
ce6dc1cb JB |
117 | %package gtk |
118 | Summary: GTK+ 2 Gwenhywfar GUI library implementation of the GWEN_DIALOG framework | |
119 | Summary(pl.UTF-8): Biblioteka graficznego interfejsu GTK+ 2 do Gwenhywfar | |
120 | Group: X11/Libraries | |
121 | Requires: %{name} = %{version}-%{release} | |
a57bd46d | 122 | Requires: gtk+2 >= 2:2.17.5 |
ce6dc1cb JB |
123 | |
124 | %description gtk | |
125 | GTK+ 2 Gwenhywfar GUI library, containing GTK+ 2 implementation of the | |
126 | GWEN_DIALOG framework. | |
127 | ||
128 | %description gtk | |
129 | Biblioteka graficznego interfejsu GTK+ 2 do Gwenhywfar, zawierająca | |
130 | implementację GTK+2 szkieletu GWEN_DIALOG. | |
131 | ||
132 | %package gtk-devel | |
133 | Summary: Header files for GTK+ 2 Gwenhywfar GUI library | |
134 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki graficznego interfejsu GTK+ 2 do Gwenhywfar | |
135 | Group: X11/Development/Libraries | |
136 | Requires: %{name}-devel = %{version}-%{release} | |
137 | Requires: %{name}-gtk = %{version}-%{release} | |
a57bd46d | 138 | Requires: gtk+2-devel >= 2:2.17.5 |
ce6dc1cb JB |
139 | |
140 | %description gtk-devel | |
141 | Header files for GTK+ 2 Gwenhywfar GUI library | |
142 | ||
143 | %description gtk-devel -l pl.UTF-8 | |
144 | Pliki nagłówkowe biblioteki graficznego interfejsu GTK+ 2 do | |
145 | Gwenhywfar. | |
146 | ||
147 | %package gtk-static | |
148 | Summary: Static GTK+ 2 Gwenhywfar GUI library | |
149 | Summary(pl.UTF-8): Statyczna biblioteka graficznego interfejsu GTK+ 2 do Gwenhywfar | |
150 | Group: X11/Development/Libraries | |
151 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
152 | ||
153 | %description gtk-static | |
154 | Static GTK+ 2 Gwenhywfar GUI library. | |
155 | ||
156 | %description gtk-static -l pl.UTF-8 | |
157 | Statyczna biblioteka graficznego interfejsu GTK+ 2 do Gwenhywfar. | |
158 | ||
159 | %package qt | |
160 | Summary: Qt 4 Gwenhywfar GUI library implementation of the GWEN_DIALOG framework | |
161 | Summary(pl.UTF-8): Biblioteka graficznego interfejsu Qt 4 do Gwenhywfar | |
162 | Group: X11/Libraries | |
163 | Requires: %{name} = %{version}-%{release} | |
164 | ||
165 | %description qt | |
166 | Qt 4 Gwenhywfar GUI library, containing Qt 4 implementation of the | |
167 | GWEN_DIALOG framework. | |
168 | ||
169 | %description qt | |
170 | Biblioteka graficznego interfejsu Qt 4 do Gwenhywfar, zawierająca | |
171 | implementację GTK+2 szkieletu GWEN_DIALOG. | |
172 | ||
173 | %package qt-devel | |
174 | Summary: Header files for Qt 4 Gwenhywfar GUI library | |
175 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki graficznego interfejsu Qt 4 do Gwenhywfar | |
176 | Group: X11/Development/Libraries | |
177 | Requires: %{name}-devel = %{version}-%{release} | |
178 | Requires: %{name}-qt = %{version}-%{release} | |
a57bd46d | 179 | Requires: QtGui-devel >= 4 |
ce6dc1cb JB |
180 | |
181 | %description qt-devel | |
182 | Header files for Qt 4 Gwenhywfar GUI library | |
183 | ||
184 | %description qt-devel -l pl.UTF-8 | |
185 | Pliki nagłówkowe biblioteki graficznego interfejsu Qt 4 do Gwenhywfar. | |
186 | ||
187 | %package qt-static | |
188 | Summary: Static Qt 4 Gwenhywfar GUI library | |
189 | Summary(pl.UTF-8): Statyczna biblioteka graficznego interfejsu Qt 4 do Gwenhywfar | |
190 | Group: X11/Development/Libraries | |
191 | Requires: %{name}-qt-devel = %{version}-%{release} | |
192 | ||
193 | %description qt-static | |
194 | Static Qt 4 Gwenhywfar GUI library. | |
195 | ||
196 | %description qt-static -l pl.UTF-8 | |
197 | Statyczna biblioteka graficznego interfejsu Qt 4 do Gwenhywfar. | |
198 | ||
c9677431 JB |
199 | %prep |
200 | %setup -q | |
201 | ||
202 | %build | |
45b54d76 JB |
203 | # gettextize not used (custom support instead of AM_GNU_GETTEXT) |
204 | touch config.rpath | |
a24cb890 JB |
205 | %{__libtoolize} |
206 | %{__aclocal} -I m4 | |
207 | %{__autoconf} | |
208 | %{__autoheader} | |
209 | %{__automake} | |
c9677431 | 210 | %configure \ |
f2cfcef2 | 211 | --enable-static \ |
ce6dc1cb JB |
212 | --with-guis="%{?with_fox:fox16 }gtk2 qt4" \ |
213 | --with-openssl-libs=%{_libdir} \ | |
214 | --with-qt4-libs=%{_libdir} | |
c77e6c9f | 215 | |
c3f30a6d | 216 | %{__make} |
c9677431 JB |
217 | |
218 | %install | |
219 | rm -rf $RPM_BUILD_ROOT | |
220 | ||
221 | %{__make} install \ | |
222 | DESTDIR=$RPM_BUILD_ROOT | |
223 | ||
7a38ab96 | 224 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gwenhywfar/plugins/*/*/*.{la,a} |
119469bf | 225 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
c9677431 JB |
226 | |
227 | %find_lang %{name} | |
228 | ||
229 | %clean | |
230 | rm -rf $RPM_BUILD_ROOT | |
231 | ||
232 | %post -p /sbin/ldconfig | |
233 | %postun -p /sbin/ldconfig | |
234 | ||
a57bd46d JB |
235 | %post fox -p /sbin/ldconfig |
236 | %postun fox -p /sbin/ldconfig | |
237 | ||
ce6dc1cb JB |
238 | %post gtk -p /sbin/ldconfig |
239 | %postun gtk -p /sbin/ldconfig | |
240 | ||
241 | %post qt -p /sbin/ldconfig | |
242 | %postun qt -p /sbin/ldconfig | |
243 | ||
c9677431 JB |
244 | %files -f %{name}.lang |
245 | %defattr(644,root,root,755) | |
246 | %doc AUTHORS ChangeLog NEWS README TODO | |
c9677431 | 247 | %attr(755,root,root) %{_bindir}/gct-tool |
9b17a7cc | 248 | %attr(755,root,root) %{_bindir}/gsa |
c9677431 JB |
249 | %attr(755,root,root) %{_bindir}/mklistdoc |
250 | %attr(755,root,root) %{_bindir}/typemaker | |
9599e188 | 251 | %attr(755,root,root) %{_bindir}/typemaker2 |
c9677431 | 252 | %attr(755,root,root) %{_bindir}/xmlmerge |
2673ce26 | 253 | %attr(755,root,root) %{_libdir}/libgwenhywfar.so.*.*.* |
af34125f | 254 | %attr(755,root,root) %ghost %{_libdir}/libgwenhywfar.so.60 |
c9677431 JB |
255 | %dir %{_libdir}/gwenhywfar |
256 | %dir %{_libdir}/gwenhywfar/plugins | |
257 | %dir %{_libdir}/gwenhywfar/plugins/* | |
45b54d76 JB |
258 | %dir %{_libdir}/gwenhywfar/plugins/*/ct |
259 | %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/ct/*.so* | |
260 | %{_libdir}/gwenhywfar/plugins/*/ct/*.xml | |
c9677431 JB |
261 | %dir %{_libdir}/gwenhywfar/plugins/*/dbio |
262 | %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/dbio/*.so* | |
263 | %{_libdir}/gwenhywfar/plugins/*/dbio/*.xml | |
104ef448 AF |
264 | %dir %{_libdir}/gwenhywfar/plugins/*/configmgr |
265 | %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/configmgr/*.so | |
266 | %{_libdir}/gwenhywfar/plugins/*/configmgr/*.xml | |
45b54d76 JB |
267 | # just ca-bundle.crt |
268 | %{_datadir}/gwenhywfar | |
c9677431 JB |
269 | |
270 | %files devel | |
271 | %defattr(644,root,root,755) | |
272 | %attr(755,root,root) %{_bindir}/gwenhywfar-config | |
2673ce26 | 273 | %attr(755,root,root) %{_libdir}/libgwenhywfar.so |
ce6dc1cb JB |
274 | %dir %{_includedir}/gwenhywfar4 |
275 | %{_includedir}/gwenhywfar4/gwen-gui-cpp | |
276 | %{_includedir}/gwenhywfar4/gwenhywfar | |
c9677431 JB |
277 | %{_aclocaldir}/gwenhywfar.m4 |
278 | %{_pkgconfigdir}/gwenhywfar.pc | |
279 | ||
280 | %files static | |
281 | %defattr(644,root,root,755) | |
ce6dc1cb JB |
282 | %{_libdir}/libgwenhywfar.a |
283 | ||
a57bd46d JB |
284 | %if %{with fox} |
285 | %files fox | |
286 | %defattr(644,root,root,755) | |
287 | %attr(755,root,root) %{_libdir}/libgwengui-fox16.so.*.*.* | |
288 | %attr(755,root,root) %ghost %{_libdir}/libgwengui-fox16.so.0 | |
289 | ||
290 | %files fox-devel | |
291 | %defattr(644,root,root,755) | |
292 | %attr(755,root,root) %{_libdir}/libgwengui-fox16.so | |
293 | %{_includedir}/gwenhywfar4/gwen-gui-fox16 | |
294 | %{_pkgconfigdir}/gwengui-fox16.pc | |
295 | ||
296 | %files fox-static | |
297 | %defattr(644,root,root,755) | |
298 | %{_libdir}/libgwengui-fox16.a | |
299 | %endif | |
300 | ||
ce6dc1cb JB |
301 | %files gtk |
302 | %defattr(644,root,root,755) | |
303 | %attr(755,root,root) %{_libdir}/libgwengui-gtk2.so.*.*.* | |
304 | %attr(755,root,root) %ghost %{_libdir}/libgwengui-gtk2.so.0 | |
305 | ||
306 | %files gtk-devel | |
307 | %defattr(644,root,root,755) | |
308 | %attr(755,root,root) %{_libdir}/libgwengui-gtk2.so | |
309 | %{_includedir}/gwenhywfar4/gwen-gui-gtk2 | |
310 | %{_pkgconfigdir}/gwengui-gtk2.pc | |
311 | ||
312 | %files gtk-static | |
313 | %defattr(644,root,root,755) | |
8fc6b9b9 | 314 | %{_libdir}/libgwengui-gtk2.a |
ce6dc1cb JB |
315 | |
316 | %files qt | |
317 | %defattr(644,root,root,755) | |
318 | %attr(755,root,root) %{_libdir}/libgwengui-qt4.so.*.*.* | |
319 | %attr(755,root,root) %ghost %{_libdir}/libgwengui-qt4.so.0 | |
320 | ||
321 | %files qt-devel | |
322 | %defattr(644,root,root,755) | |
323 | %attr(755,root,root) %{_libdir}/libgwengui-qt4.so | |
324 | %{_includedir}/gwenhywfar4/gwen-gui-qt4 | |
325 | %{_pkgconfigdir}/gwengui-qt4.pc | |
326 | ||
327 | %files qt-static | |
328 | %defattr(644,root,root,755) | |
8fc6b9b9 | 329 | %{_libdir}/libgwengui-qt4.a |