]>
Commit | Line | Data |
---|---|---|
547ca217 JB |
1 | # |
2 | # Conditional build: | |
0089fafa | 3 | %bcond_with gcrypt # use gcrypt crypto backend instead of nettle (withdrawn?) |
83ed044d | 4 | %bcond_without dane # libdane (DANE with DNSSEC certificate verification) |
cc933e6a | 5 | %bcond_with tpm # TPM support in gnutls (cannot be used with GPL programs) |
547ca217 | 6 | # |
6d7519d8 | 7 | Summary: The GNU Transport Layer Security Library |
7b093bb5 | 8 | Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security) |
6d7519d8 | 9 | Name: gnutls |
cc933e6a | 10 | Version: 3.1.6 |
54e8adbd | 11 | Release: 1 |
fdd1e702 | 12 | License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools) |
6d7519d8 | 13 | Group: Libraries |
4adb064a | 14 | Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/%{name}-%{version}.tar.lz |
cc933e6a | 15 | # Source0-md5: 770d3ed5adfb67b075b5b398f13f484c |
bf6baa77 | 16 | Patch0: %{name}-info.patch |
4d87caea | 17 | Patch1: %{name}-link.patch |
547ca217 | 18 | Patch2: %{name}-pl.po-update.patch |
cc933e6a | 19 | Patch3: %{name}-am.patch |
4adb064a | 20 | URL: http://www.gnutls.org/ |
24cf4cad | 21 | BuildRequires: autoconf >= 2.61 |
4cce63bf | 22 | BuildRequires: automake >= 1:1.11.3 |
27be42ab | 23 | BuildRequires: gettext-devel >= 0.18 |
d711a6c0 | 24 | BuildRequires: gtk-doc >= 1.1 |
9d8f6e85 | 25 | BuildRequires: guile-devel >= 5:2.0 |
62c2e78b | 26 | BuildRequires: libcfg+-devel |
547ca217 | 27 | %{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0} |
396dd4ff | 28 | BuildRequires: libidn-devel |
71cef829 | 29 | BuildRequires: libstdc++-devel |
bcda9fc2 | 30 | BuildRequires: libtasn1-devel >= 2.14 |
d5b1fd56 | 31 | BuildRequires: libtool >= 2:1.5 |
2bc707dc | 32 | BuildRequires: lzip |
0089fafa | 33 | %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.5} |
17285f2a JB |
34 | # miniopencdk is included in sources and currently maintained |
35 | # as part of gnutls, not external package | |
36 | #BuildRequires: opencdk-devel >= 0.6.6 | |
f2e1d83e | 37 | BuildRequires: p11-kit-devel >= 0.11 |
6c4df057 | 38 | BuildRequires: pkgconfig |
e5ea410a | 39 | BuildRequires: readline-devel |
24cf4cad | 40 | BuildRequires: rpmbuild(macros) >= 1.383 |
cf0a9984 | 41 | BuildRequires: sed >= 4.0 |
547ca217 | 42 | BuildRequires: tar >= 1:1.22 |
a7221760 | 43 | BuildRequires: texinfo >= 4.8 |
cc933e6a | 44 | %{?with_tpm:BuildRequires: trousers-devel} |
83ed044d | 45 | %{?with_dane:BuildRequires: unbound-devel} |
5a115208 | 46 | BuildRequires: zlib-devel |
10899c2c | 47 | Requires(post,postun): /sbin/ldconfig |
547ca217 | 48 | %{?with_gcrypt:Requires: libgcrypt >= 1.4.0} |
bcda9fc2 | 49 | Requires: libtasn1 >= 2.14 |
0089fafa | 50 | %{!?with_gcrypt:Requires: nettle >= 2.5} |
17285f2a | 51 | #Requires: opencdk >= 0.6.6 |
f2e1d83e | 52 | Requires: p11-kit >= 0.11 |
6d7519d8 AM |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
56 | GnuTLS is a project that aims to develop a library which provides a | |
57 | secure layer, over a reliable transport layer (ie. TCP/IP). Currently | |
58 | the gnuTLS library implements the proposed standards by the IETF's TLS | |
59 | working group. | |
60 | ||
fc7e37b3 JR |
61 | %description -l pl.UTF-8 |
62 | GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej | |
63 | powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP). | |
6d7519d8 | 64 | Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez |
fc7e37b3 | 65 | grupę roboczą IETF TLS. |
6d7519d8 AM |
66 | |
67 | %package devel | |
68 | Summary: Header files etc to develop gnutls applications | |
7b093bb5 | 69 | Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls |
fdd1e702 | 70 | License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library) |
6d7519d8 | 71 | Group: Development/Libraries |
72115ddc | 72 | Requires: %{name} = %{version}-%{release} |
547ca217 | 73 | %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0} |
bcda9fc2 | 74 | Requires: libtasn1-devel >= 2.14 |
0089fafa | 75 | %{!?with_gcrypt:Requires: nettle-devel >= 2.5} |
17285f2a | 76 | #Requires: opencdk-devel >= 0.6.6 |
f2e1d83e | 77 | Requires: p11-kit-devel >= 0.11 |
cc933e6a | 78 | %{?with_tpm:Requires: trousers-devel} |
83ed044d | 79 | %{?with_dane:Requires: unbound-devel} |
74be7fb4 | 80 | Requires: zlib-devel |
6d7519d8 AM |
81 | |
82 | %description devel | |
83 | Header files etc to develop gnutls applications. | |
84 | ||
fc7e37b3 JR |
85 | %description devel -l pl.UTF-8 |
86 | Pliki nagłówkowe i inne do gnutls. | |
6d7519d8 AM |
87 | |
88 | %package static | |
89 | Summary: Static gnutls library | |
7b093bb5 | 90 | Summary(pl.UTF-8): Biblioteka statyczna gnutls |
fdd1e702 | 91 | License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library) |
6d7519d8 | 92 | Group: Development/Libraries |
72115ddc | 93 | Requires: %{name}-devel = %{version}-%{release} |
6d7519d8 AM |
94 | |
95 | %description static | |
96 | Static gnutls library. | |
97 | ||
fc7e37b3 | 98 | %description static -l pl.UTF-8 |
6d7519d8 AM |
99 | Biblioteka statyczna gnutls. |
100 | ||
71cef829 JB |
101 | %package c++ |
102 | Summary: libgnutlsxx - C++ interface to gnutls library | |
7b093bb5 | 103 | Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls |
24cf4cad | 104 | License: LGPL v2.1+ |
71cef829 JB |
105 | Group: Libraries |
106 | Requires: %{name} = %{version}-%{release} | |
107 | ||
108 | %description c++ | |
109 | libgnutlsxx - C++ interface to gnutls library. | |
110 | ||
fc7e37b3 | 111 | %description c++ -l pl.UTF-8 |
71cef829 JB |
112 | libgnutlsxx - interfejs C++ do biblioteki gnutls. |
113 | ||
114 | %package c++-devel | |
115 | Summary: Header files for libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 116 | Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 117 | License: LGPL v2.1+ |
71cef829 JB |
118 | Group: Development/Libraries |
119 | Requires: %{name}-c++ = %{version}-%{release} | |
120 | Requires: %{name}-devel = %{version}-%{release} | |
121 | Requires: libstdc++-devel | |
122 | ||
123 | %description c++-devel | |
124 | Header files for libgnutlsxx, a C++ interface to gnutls library. | |
125 | ||
fc7e37b3 JR |
126 | %description c++-devel -l pl.UTF-8 |
127 | Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls. | |
71cef829 JB |
128 | |
129 | %package c++-static | |
130 | Summary: Static version of libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 131 | Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 132 | License: LGPL v2.1+ |
71cef829 JB |
133 | Group: Development/Libraries |
134 | Requires: %{name}-c++-devel = %{version}-%{release} | |
135 | ||
136 | %description c++-static | |
137 | Static version of libgnutlsxx, a C++ interface to gnutls library. | |
138 | ||
fc7e37b3 | 139 | %description c++-static -l pl.UTF-8 |
71cef829 JB |
140 | Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls. |
141 | ||
3c916209 JB |
142 | %package -n guile-gnutls |
143 | Summary: Guile bindings for GnuTLS | |
144 | Summary(pl.UTF-8): Wiązania Guile do GnuTLS | |
fdd1e702 | 145 | License: LGPL v2.1+ |
3c916209 JB |
146 | Group: Development/Languages |
147 | Requires: %{name} = %{version}-%{release} | |
9d8f6e85 | 148 | Requires: guile >= 5:2.0 |
3c916209 JB |
149 | |
150 | %description -n guile-gnutls | |
151 | Guile bindings for GnuTLS. | |
152 | ||
153 | %description -n guile-gnutls -l pl.UTF-8 | |
154 | Wiązania Guile do GnuTLS. | |
155 | ||
6d7519d8 AM |
156 | %prep |
157 | %setup -q | |
67b46ca6 | 158 | %patch0 -p1 |
4d87caea | 159 | %patch1 -p1 |
396dd4ff | 160 | %patch2 -p1 |
cc933e6a | 161 | %patch3 -p1 |
547ca217 JB |
162 | |
163 | %{__rm} po/stamp-po | |
6d7519d8 | 164 | |
cf0a9984 JB |
165 | # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone |
166 | # (after gnutls or libtool change) | |
167 | %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac | |
168 | ||
6d7519d8 | 169 | %build |
5a115208 | 170 | %{__libtoolize} |
f2e1d83e | 171 | %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 |
d6e4f2bd JB |
172 | %{__autoconf} |
173 | %{__autoheader} | |
174 | %{__automake} | |
6d7519d8 | 175 | %configure \ |
41fffb0a | 176 | --disable-silent-rules \ |
0089fafa | 177 | --with-default-trust-store-file=/etc/certs/ca-certificates.crt \ |
cc933e6a JB |
178 | %{?with_gcrypt:--with-libgcrypt} \ |
179 | %{?with_tpm:--with-tpm} | |
5a115208 | 180 | |
9dc804da JB |
181 | # docs build is broken with -jN |
182 | %{__make} -j1 | |
6d7519d8 AM |
183 | |
184 | %install | |
185 | rm -rf $RPM_BUILD_ROOT | |
186 | ||
187 | %{__make} install \ | |
d711a6c0 | 188 | DESTDIR=$RPM_BUILD_ROOT |
6d7519d8 | 189 | |
fdd1e702 JB |
190 | # although libgnutls.la is obsoleted by pkg-config, there is |
191 | # .pc file missing for libgnutls-openssl, and it needs libgnutls.la | |
8e4a1eaa JB |
192 | |
193 | # guile module - dynamic only | |
9d8f6e85 | 194 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a} |
8e4a1eaa | 195 | |
d711a6c0 | 196 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
3c916209 | 197 | |
547ca217 | 198 | %find_lang %{name} |
b5ab22ee | 199 | |
6d7519d8 AM |
200 | %clean |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
10899c2c JB |
203 | %post |
204 | /sbin/ldconfig | |
205 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
206 | ||
207 | %postun | |
208 | /sbin/ldconfig | |
209 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
0522b080 | 210 | |
71cef829 JB |
211 | %post c++ -p /sbin/ldconfig |
212 | %postun c++ -p /sbin/ldconfig | |
213 | ||
3c916209 JB |
214 | %post -n guile-gnutls -p /sbin/ldconfig |
215 | %postun -n guile-gnutls -p /sbin/ldconfig | |
216 | ||
547ca217 | 217 | %files -f %{name}.lang |
6d7519d8 | 218 | %defattr(644,root,root,755) |
07a67478 | 219 | %doc AUTHORS ChangeLog NEWS README THANKS |
d191db7f | 220 | %attr(755,root,root) %{_bindir}/certtool |
56a7698b | 221 | %attr(755,root,root) %{_bindir}/crywrap |
83ed044d | 222 | %{?with_dane:%attr(755,root,root) %{_bindir}/danetool} |
71cef829 | 223 | %attr(755,root,root) %{_bindir}/gnutls-* |
9dc804da | 224 | %attr(755,root,root) %{_bindir}/ocsptool |
41fffb0a | 225 | %attr(755,root,root) %{_bindir}/p11tool |
2637a2e1 | 226 | %attr(755,root,root) %{_bindir}/psktool |
62c2e78b | 227 | %attr(755,root,root) %{_bindir}/srptool |
cc933e6a | 228 | %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool} |
71cef829 | 229 | %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.* |
547ca217 | 230 | %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28 |
83ed044d JB |
231 | %if %{with dane} |
232 | %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.* | |
233 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0 | |
234 | %endif | |
71cef829 | 235 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.* |
41fffb0a | 236 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27 |
584b5346 | 237 | %{_mandir}/man1/certtool.1* |
83ed044d | 238 | %{?with_dane:%{_mandir}/man1/danetool.1*} |
71cef829 | 239 | %{_mandir}/man1/gnutls-*.1* |
f2e1d83e | 240 | %{_mandir}/man1/ocsptool.1* |
41fffb0a | 241 | %{_mandir}/man1/p11tool.1* |
2637a2e1 | 242 | %{_mandir}/man1/psktool.1* |
62c2e78b | 243 | %{_mandir}/man1/srptool.1* |
0089fafa | 244 | %{_mandir}/man1/tpmtool.1* |
71cef829 | 245 | %{_infodir}/gnutls.info* |
24cf4cad | 246 | %{_infodir}/gnutls-*.png |
41fffb0a | 247 | %{_infodir}/pkcs11-vision.png |
6d7519d8 AM |
248 | |
249 | %files devel | |
250 | %defattr(644,root,root,755) | |
71cef829 | 251 | %attr(755,root,root) %{_libdir}/libgnutls.so |
83ed044d | 252 | %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so} |
71cef829 JB |
253 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so |
254 | %{_libdir}/libgnutls.la | |
83ed044d | 255 | %{?with_dane:%{_libdir}/libgnutls-dane.la} |
71cef829 | 256 | %{_libdir}/libgnutls-openssl.la |
07a67478 | 257 | %{_includedir}/gnutls |
71cef829 | 258 | %exclude %{_includedir}/gnutls/gnutlsxx.h |
71cef829 | 259 | %{_pkgconfigdir}/gnutls.pc |
a7273f20 | 260 | %{?with_dane:%{_pkgconfigdir}/gnutls-dane.pc} |
4a97978f | 261 | %{_mandir}/man3/gnutls_*.3* |
6d7519d8 AM |
262 | |
263 | %files static | |
264 | %defattr(644,root,root,755) | |
71cef829 | 265 | %{_libdir}/libgnutls.a |
83ed044d | 266 | %{?with_dane:%{_libdir}/libgnutls-dane.a} |
71cef829 JB |
267 | %{_libdir}/libgnutls-openssl.a |
268 | ||
269 | %files c++ | |
270 | %defattr(644,root,root,755) | |
271 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.* | |
547ca217 | 272 | %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28 |
71cef829 JB |
273 | |
274 | %files c++-devel | |
275 | %defattr(644,root,root,755) | |
276 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so | |
277 | %{_libdir}/libgnutlsxx.la | |
278 | %{_includedir}/gnutls/gnutlsxx.h | |
279 | ||
280 | %files c++-static | |
281 | %defattr(644,root,root,755) | |
282 | %{_libdir}/libgnutlsxx.a | |
3c916209 JB |
283 | |
284 | %files -n guile-gnutls | |
285 | %defattr(644,root,root,755) | |
9d8f6e85 | 286 | %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so* |
3c916209 | 287 | %{_datadir}/guile/site/gnutls.scm |
9d8f6e85 | 288 | %{_datadir}/guile/site/gnutls |
547ca217 | 289 | %{_infodir}/gnutls-guile.info* |