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