]>
Commit | Line | Data |
---|---|---|
6d7519d8 | 1 | Summary: The GNU Transport Layer Security Library |
7b093bb5 | 2 | Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security) |
6d7519d8 | 3 | Name: gnutls |
ed2e7196 | 4 | Version: 2.12.3 |
4a7c7cf2 | 5 | Release: 1 |
54300055 | 6 | License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs and tools) |
6d7519d8 | 7 | Group: Libraries |
784e28c1 | 8 | Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2 |
ed2e7196 | 9 | # Source0-md5: 04b72b022b42b10df12cbbae051e2d55 |
bf6baa77 | 10 | Patch0: %{name}-info.patch |
4d87caea | 11 | Patch1: %{name}-link.patch |
ed2e7196 | 12 | #Patch3: %{name}-pakchois.patch |
6d7519d8 | 13 | URL: http://www.gnu.org/software/gnutls/ |
24cf4cad | 14 | BuildRequires: autoconf >= 2.61 |
ffb593f5 | 15 | BuildRequires: automake >= 1:1.10.2-2 |
d711a6c0 JB |
16 | BuildRequires: gettext-devel >= 0.17 |
17 | BuildRequires: gtk-doc >= 1.1 | |
3c916209 | 18 | BuildRequires: guile-devel >= 5:1.8 |
62c2e78b | 19 | BuildRequires: libcfg+-devel |
41fffb0a | 20 | BuildRequires: libgcrypt-devel >= 1.4.0 |
71cef829 | 21 | BuildRequires: libstdc++-devel |
a15e13c5 | 22 | BuildRequires: libtasn1-devel >= 2.9 |
d5b1fd56 | 23 | BuildRequires: libtool >= 2:1.5 |
abf24673 | 24 | BuildRequires: lzo-devel |
17285f2a JB |
25 | # miniopencdk is included in sources and currently maintained |
26 | # as part of gnutls, not external package | |
27 | #BuildRequires: opencdk-devel >= 0.6.6 | |
ed2e7196 | 28 | # pakchois is included in gnutls since 2.12.3 |
29 | #BuildRequires: pakchois-devel | |
6c4df057 | 30 | BuildRequires: pkgconfig |
e5ea410a | 31 | BuildRequires: readline-devel |
24cf4cad | 32 | BuildRequires: rpmbuild(macros) >= 1.383 |
a7221760 | 33 | BuildRequires: texinfo >= 4.8 |
5a115208 | 34 | BuildRequires: zlib-devel |
10899c2c | 35 | Requires(post,postun): /sbin/ldconfig |
41fffb0a | 36 | Requires: libgcrypt >= 1.4.0 |
a15e13c5 | 37 | Requires: libtasn1 >= 2.9 |
17285f2a | 38 | #Requires: opencdk >= 0.6.6 |
6d7519d8 AM |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | GnuTLS is a project that aims to develop a library which provides a | |
43 | secure layer, over a reliable transport layer (ie. TCP/IP). Currently | |
44 | the gnuTLS library implements the proposed standards by the IETF's TLS | |
45 | working group. | |
46 | ||
fc7e37b3 JR |
47 | %description -l pl.UTF-8 |
48 | GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej | |
49 | powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP). | |
6d7519d8 | 50 | Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez |
fc7e37b3 | 51 | grupę roboczą IETF TLS. |
6d7519d8 AM |
52 | |
53 | %package devel | |
54 | Summary: Header files etc to develop gnutls applications | |
7b093bb5 | 55 | Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls |
54300055 | 56 | License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs) |
6d7519d8 | 57 | Group: Development/Libraries |
72115ddc | 58 | Requires: %{name} = %{version}-%{release} |
41fffb0a | 59 | Requires: libgcrypt-devel >= 1.4.0 |
a15e13c5 | 60 | Requires: libtasn1-devel >= 2.9 |
17285f2a | 61 | #Requires: opencdk-devel >= 0.6.6 |
ed2e7196 | 62 | #Requires: pakchois-devel |
41fffb0a JB |
63 | # lzo-devel for libgnutls-extra only |
64 | Requires: lzo-devel | |
74be7fb4 | 65 | Requires: zlib-devel |
6d7519d8 AM |
66 | |
67 | %description devel | |
68 | Header files etc to develop gnutls applications. | |
69 | ||
fc7e37b3 JR |
70 | %description devel -l pl.UTF-8 |
71 | Pliki nagłówkowe i inne do gnutls. | |
6d7519d8 AM |
72 | |
73 | %package static | |
74 | Summary: Static gnutls library | |
7b093bb5 | 75 | Summary(pl.UTF-8): Biblioteka statyczna gnutls |
54300055 | 76 | License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs) |
6d7519d8 | 77 | Group: Development/Libraries |
72115ddc | 78 | Requires: %{name}-devel = %{version}-%{release} |
6d7519d8 AM |
79 | |
80 | %description static | |
81 | Static gnutls library. | |
82 | ||
fc7e37b3 | 83 | %description static -l pl.UTF-8 |
6d7519d8 AM |
84 | Biblioteka statyczna gnutls. |
85 | ||
71cef829 JB |
86 | %package c++ |
87 | Summary: libgnutlsxx - C++ interface to gnutls library | |
7b093bb5 | 88 | Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls |
24cf4cad | 89 | License: LGPL v2.1+ |
71cef829 JB |
90 | Group: Libraries |
91 | Requires: %{name} = %{version}-%{release} | |
92 | ||
93 | %description c++ | |
94 | libgnutlsxx - C++ interface to gnutls library. | |
95 | ||
fc7e37b3 | 96 | %description c++ -l pl.UTF-8 |
71cef829 JB |
97 | libgnutlsxx - interfejs C++ do biblioteki gnutls. |
98 | ||
99 | %package c++-devel | |
100 | Summary: Header files for libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 101 | Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 102 | License: LGPL v2.1+ |
71cef829 JB |
103 | Group: Development/Libraries |
104 | Requires: %{name}-c++ = %{version}-%{release} | |
105 | Requires: %{name}-devel = %{version}-%{release} | |
106 | Requires: libstdc++-devel | |
107 | ||
108 | %description c++-devel | |
109 | Header files for libgnutlsxx, a C++ interface to gnutls library. | |
110 | ||
fc7e37b3 JR |
111 | %description c++-devel -l pl.UTF-8 |
112 | Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls. | |
71cef829 JB |
113 | |
114 | %package c++-static | |
115 | Summary: Static version of libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 116 | Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 117 | License: LGPL v2.1+ |
71cef829 JB |
118 | Group: Development/Libraries |
119 | Requires: %{name}-c++-devel = %{version}-%{release} | |
120 | ||
121 | %description c++-static | |
122 | Static version of libgnutlsxx, a C++ interface to gnutls library. | |
123 | ||
fc7e37b3 | 124 | %description c++-static -l pl.UTF-8 |
71cef829 JB |
125 | Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls. |
126 | ||
3c916209 JB |
127 | %package -n guile-gnutls |
128 | Summary: Guile bindings for GnuTLS | |
129 | Summary(pl.UTF-8): Wiązania Guile do GnuTLS | |
54300055 | 130 | License: LGPL v2.1+ (gnutls binding), GPL v3+ (gnutls-extra binding) |
3c916209 JB |
131 | Group: Development/Languages |
132 | Requires: %{name} = %{version}-%{release} | |
133 | Requires: guile >= 5:1.8 | |
134 | ||
135 | %description -n guile-gnutls | |
136 | Guile bindings for GnuTLS. | |
137 | ||
138 | %description -n guile-gnutls -l pl.UTF-8 | |
139 | Wiązania Guile do GnuTLS. | |
140 | ||
6d7519d8 AM |
141 | %prep |
142 | %setup -q | |
67b46ca6 | 143 | %patch0 -p1 |
4d87caea | 144 | %patch1 -p1 |
ed2e7196 | 145 | #%patch3 -p1 |
6d7519d8 AM |
146 | |
147 | %build | |
5a115208 | 148 | %{__libtoolize} |
56647289 | 149 | %{__aclocal} -I m4 -I gl/m4 -I lib/gl/m4 -I libextra/gl/m4 -I lib/m4 -I libextra/m4 |
5a115208 | 150 | %{__autoconf} |
d191db7f | 151 | %{__autoheader} |
5a115208 | 152 | %{__automake} |
d6e4f2bd JB |
153 | cd lib |
154 | %{__aclocal} -I m4 -I gl/m4 | |
155 | %{__autoconf} | |
156 | %{__autoheader} | |
157 | %{__automake} | |
cf4ab563 JB |
158 | cd ../libextra |
159 | %{__aclocal} -I m4 -I gl/m4 -I ../lib/m4 -I ../lib/gl/m4 | |
160 | %{__autoconf} | |
161 | %{__autoheader} | |
162 | %{__automake} | |
d6e4f2bd | 163 | cd .. |
6d7519d8 | 164 | %configure \ |
41fffb0a JB |
165 | --disable-silent-rules \ |
166 | --with-libgcrypt \ | |
60ea5b82 | 167 | --with-lzo |
5a115208 | 168 | |
6d7519d8 AM |
169 | %{__make} |
170 | ||
171 | %install | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %{__make} install \ | |
d711a6c0 | 175 | DESTDIR=$RPM_BUILD_ROOT |
6d7519d8 | 176 | |
d711a6c0 JB |
177 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libguile-gnutls-*.{la,a} |
178 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir | |
3c916209 | 179 | |
d711a6c0 | 180 | %find_lang libgnutls |
b5ab22ee | 181 | |
6d7519d8 AM |
182 | %clean |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
10899c2c JB |
185 | %post |
186 | /sbin/ldconfig | |
187 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
188 | ||
189 | %postun | |
190 | /sbin/ldconfig | |
191 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
0522b080 | 192 | |
71cef829 JB |
193 | %post c++ -p /sbin/ldconfig |
194 | %postun c++ -p /sbin/ldconfig | |
195 | ||
3c916209 JB |
196 | %post -n guile-gnutls -p /sbin/ldconfig |
197 | %postun -n guile-gnutls -p /sbin/ldconfig | |
198 | ||
d711a6c0 | 199 | %files -f libgnutls.lang |
6d7519d8 | 200 | %defattr(644,root,root,755) |
07a67478 | 201 | %doc AUTHORS ChangeLog NEWS README THANKS |
d191db7f | 202 | %attr(755,root,root) %{_bindir}/certtool |
71cef829 | 203 | %attr(755,root,root) %{_bindir}/gnutls-* |
41fffb0a | 204 | %attr(755,root,root) %{_bindir}/p11tool |
2637a2e1 | 205 | %attr(755,root,root) %{_bindir}/psktool |
62c2e78b | 206 | %attr(755,root,root) %{_bindir}/srptool |
71cef829 | 207 | %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.* |
54300055 | 208 | %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.26 |
71cef829 | 209 | %attr(755,root,root) %{_libdir}/libgnutls-extra.so.*.*.* |
54300055 | 210 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-extra.so.26 |
71cef829 | 211 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.* |
41fffb0a | 212 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27 |
584b5346 | 213 | %{_mandir}/man1/certtool.1* |
71cef829 | 214 | %{_mandir}/man1/gnutls-*.1* |
41fffb0a | 215 | %{_mandir}/man1/p11tool.1* |
2637a2e1 | 216 | %{_mandir}/man1/psktool.1* |
62c2e78b | 217 | %{_mandir}/man1/srptool.1* |
71cef829 | 218 | %{_infodir}/gnutls.info* |
24cf4cad | 219 | %{_infodir}/gnutls-*.png |
41fffb0a | 220 | %{_infodir}/pkcs11-vision.png |
6d7519d8 AM |
221 | |
222 | %files devel | |
223 | %defattr(644,root,root,755) | |
71cef829 JB |
224 | %attr(755,root,root) %{_libdir}/libgnutls.so |
225 | %attr(755,root,root) %{_libdir}/libgnutls-extra.so | |
226 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so | |
227 | %{_libdir}/libgnutls.la | |
228 | %{_libdir}/libgnutls-extra.la | |
229 | %{_libdir}/libgnutls-openssl.la | |
07a67478 | 230 | %{_includedir}/gnutls |
71cef829 | 231 | %exclude %{_includedir}/gnutls/gnutlsxx.h |
71cef829 JB |
232 | %{_pkgconfigdir}/gnutls.pc |
233 | %{_pkgconfigdir}/gnutls-extra.pc | |
10899c2c | 234 | %{_mandir}/man3/*gnutls*.3* |
6d7519d8 AM |
235 | |
236 | %files static | |
237 | %defattr(644,root,root,755) | |
71cef829 JB |
238 | %{_libdir}/libgnutls.a |
239 | %{_libdir}/libgnutls-extra.a | |
240 | %{_libdir}/libgnutls-openssl.a | |
241 | ||
242 | %files c++ | |
243 | %defattr(644,root,root,755) | |
244 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.* | |
41fffb0a | 245 | %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.27 |
71cef829 JB |
246 | |
247 | %files c++-devel | |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so | |
250 | %{_libdir}/libgnutlsxx.la | |
251 | %{_includedir}/gnutls/gnutlsxx.h | |
252 | ||
253 | %files c++-static | |
254 | %defattr(644,root,root,755) | |
255 | %{_libdir}/libgnutlsxx.a | |
3c916209 JB |
256 | |
257 | %files -n guile-gnutls | |
258 | %defattr(644,root,root,755) | |
54300055 JB |
259 | %attr(755,root,root) %{_libdir}/libguile-gnutls-v-1.so.*.*.* |
260 | %attr(755,root,root) %ghost %{_libdir}/libguile-gnutls-v-1.so.0 | |
261 | %attr(755,root,root) %{_libdir}/libguile-gnutls-v-1.so | |
262 | %attr(755,root,root) %{_libdir}/libguile-gnutls-extra-v-1.so.*.*.* | |
263 | %attr(755,root,root) %ghost %{_libdir}/libguile-gnutls-extra-v-1.so.0 | |
264 | %attr(755,root,root) %{_libdir}/libguile-gnutls-extra-v-1.so | |
3c916209 JB |
265 | %{_datadir}/guile/site/gnutls.scm |
266 | %dir %{_datadir}/guile/site/gnutls | |
267 | %{_datadir}/guile/site/gnutls/extra.scm |