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