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