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