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