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