]> git.pld-linux.org Git - packages/gwenhywfar.git/blob - gwenhywfar.spec
9d81ae4d1e4f1126fd5995f65cf705e83944a9a9
[packages/gwenhywfar.git] / gwenhywfar.spec
1 #
2 # TODO: - define _one_, system-wide place for ca-bundle.crt and use one, up-to-date file
3 #
4 # Conditional build:
5 %bcond_without  fox     # FOX 1.6 GUI
6 #
7 Summary:        Gwenhywfar - a multi-platform helper library for networking and security
8 Summary(pl.UTF-8):      Gwenhywfar - wieloplatformowa biblioteka pomocnicza do sieci i bezpieczeństwa
9 Name:           gwenhywfar
10 Version:        4.3.0
11 Release:        1
12 License:        LGPL v2.1+ with OpenSSL linking exception
13 Group:          Libraries
14 # http://www2.aquamaniac.de/sites/download/packages.php
15 Source0:        http://www2.aquamaniac.de/sites/download/download.php?package=01&release=64&file=01&dummy=%{name}-%{version}.tar.gz#/%{name}-%{version}.tar.gz
16 # Source0-md5:  6c3647c5a9065d0126b0e2b77752527b
17 Patch0:         %{name}-gnutls.patch
18 URL:            http://www.aquamaniac.de/aqbanking/
19 BuildRequires:  QtGui-devel >= 4
20 BuildRequires:  autoconf >= 2.60
21 BuildRequires:  automake
22 %{?with_fox:BuildRequires:      fox16-devel >= 1.6}
23 BuildRequires:  gettext-devel
24 BuildRequires:  gnutls-devel >= 1.6.1
25 BuildRequires:  gtk+2-devel >= 2:2.17.5
26 BuildRequires:  libgcrypt-devel >= 1.2.0
27 BuildRequires:  libtool
28 BuildRequires:  openssl-devel
29 BuildRequires:  pkgconfig
30 BuildRequires:  qt4-build
31 Requires:       libgcrypt >= 1.2.0
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:
37  - Libchipcard (http://www.libchipcard.de/),
38  - OpenHBCI2 (http://www.openhbci.de/),
39  - Simthetic, the simulation tool (http://simthetic.sourceforge.net/)
40  - AqBanking/AqHBCI (http://www.aquamaniac.de/aqbanking/).
41
42 %description -l pl.UTF-8
43 To jest Gwenhywfar - wieloplatformowa biblioteka pomocnicza do
44 aplikacji i bibliotek związanych z siecią i bezpieczeństwem. Jest
45 używana przez:
46  - Libchipcard (http://www.libchipcard.de/),
47  - OpenHBCI2 (http://www.openhbci.de/),
48  - narzędzie do symulacji Simthetic (http://simthetic.sourceforge.net/)
49  - AqBanking/AqHBCI (http://www.aquamaniac.de/aqbanking/).
50
51 %package devel
52 Summary:        Header files for Gwenhywfar library
53 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Gwenhywfar
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       gnutls-devel >= 1.6.1
57 Requires:       libgcrypt-devel >= 1.2.0
58
59 %description devel
60 Header files for Gwenhywfar library.
61
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe biblioteki Gwenhywfar.
64
65 %package static
66 Summary:        Static Gwenhywfar library
67 Summary(pl.UTF-8):      Statyczna biblioteka Gwenhywfar
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 Static Gwenhywfar library.
73
74 %description static -l pl.UTF-8
75 Statyczna biblioteka Gwenhywfar.
76
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
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}
123 Requires:       gtk+2 >= 2:2.17.5
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}
139 Requires:       gtk+2-devel >= 2:2.17.5
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}
180 Requires:       QtGui-devel >= 4
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
200 %prep
201 %setup -q
202 %patch0 -p1
203
204 %build
205 # gettextize not used (custom support instead of AM_GNU_GETTEXT)
206 touch config.rpath
207 %{__libtoolize}
208 %{__aclocal} -I m4
209 %{__autoconf}
210 %{__autoheader}
211 %{__automake}
212 %configure \
213         --enable-static \
214         --with-guis="%{?with_fox:fox16 }gtk2 qt4" \
215         --with-openssl-libs=%{_libdir} \
216         --with-qt4-libs=%{_libdir}
217
218 %{__make}
219
220 %install
221 rm -rf $RPM_BUILD_ROOT
222
223 %{__make} install \
224         DESTDIR=$RPM_BUILD_ROOT
225
226 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gwenhywfar/plugins/*/*/*.{la,a}
227 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
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
237 %post   fox -p /sbin/ldconfig
238 %postun fox -p /sbin/ldconfig
239
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
246 %files -f %{name}.lang
247 %defattr(644,root,root,755)
248 %doc AUTHORS ChangeLog NEWS README TODO
249 %attr(755,root,root) %{_bindir}/gct-tool
250 %attr(755,root,root) %{_bindir}/gsa
251 %attr(755,root,root) %{_bindir}/mklistdoc
252 %attr(755,root,root) %{_bindir}/typemaker
253 %attr(755,root,root) %{_bindir}/typemaker2
254 %attr(755,root,root) %{_bindir}/xmlmerge
255 %attr(755,root,root) %{_libdir}/libgwenhywfar.so.*.*.*
256 %attr(755,root,root) %ghost %{_libdir}/libgwenhywfar.so.60
257 %dir %{_libdir}/gwenhywfar
258 %dir %{_libdir}/gwenhywfar/plugins
259 %dir %{_libdir}/gwenhywfar/plugins/*
260 %dir %{_libdir}/gwenhywfar/plugins/*/ct
261 %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/ct/*.so*
262 %{_libdir}/gwenhywfar/plugins/*/ct/*.xml
263 %dir %{_libdir}/gwenhywfar/plugins/*/dbio
264 %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/dbio/*.so*
265 %{_libdir}/gwenhywfar/plugins/*/dbio/*.xml
266 %dir %{_libdir}/gwenhywfar/plugins/*/configmgr
267 %attr(755,root,root) %{_libdir}/gwenhywfar/plugins/*/configmgr/*.so
268 %{_libdir}/gwenhywfar/plugins/*/configmgr/*.xml
269 # just ca-bundle.crt
270 %{_datadir}/gwenhywfar
271
272 %files devel
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_bindir}/gwenhywfar-config
275 %attr(755,root,root) %{_libdir}/libgwenhywfar.so
276 %dir %{_includedir}/gwenhywfar4
277 %{_includedir}/gwenhywfar4/gwen-gui-cpp
278 %{_includedir}/gwenhywfar4/gwenhywfar
279 %{_aclocaldir}/gwenhywfar.m4
280 %{_pkgconfigdir}/gwenhywfar.pc
281
282 %files static
283 %defattr(644,root,root,755)
284 %{_libdir}/libgwenhywfar.a
285
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
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)
316 %{_libdir}/libgwengui-gtk2.a
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)
331 %{_libdir}/libgwengui-qt4.a
This page took 0.071569 seconds and 2 git commands to generate.