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