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