]>
Commit | Line | Data |
---|---|---|
1 | Summary: The GNU Transport Layer Security Library | |
2 | Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security) | |
3 | Name: gnutls | |
4 | Version: 2.10.3 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs and tools) | |
7 | Group: Libraries | |
8 | Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 8e8f024d5d3bd8e5298ae7ed33401f9a | |
10 | Patch0: %{name}-info.patch | |
11 | Patch1: %{name}-link.patch | |
12 | URL: http://www.gnu.org/software/gnutls/ | |
13 | BuildRequires: autoconf >= 2.61 | |
14 | BuildRequires: automake >= 1:1.10.2-2 | |
15 | BuildRequires: gettext-devel >= 0.17 | |
16 | BuildRequires: gtk-doc >= 1.1 | |
17 | BuildRequires: guile-devel >= 5:1.8 | |
18 | BuildRequires: libcfg+-devel | |
19 | BuildRequires: libgcrypt-devel >= 1.2.4 | |
20 | BuildRequires: libstdc++-devel | |
21 | BuildRequires: libtasn1-devel >= 2.6 | |
22 | BuildRequires: libtool >= 2:1.5 | |
23 | BuildRequires: lzo-devel | |
24 | # miniopencdk is included in sources and currently maintained | |
25 | # as part of gnutls, not external package | |
26 | #BuildRequires: opencdk-devel >= 0.6.6 | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: readline-devel | |
29 | BuildRequires: rpmbuild(macros) >= 1.383 | |
30 | BuildRequires: texinfo >= 4.8 | |
31 | BuildRequires: zlib-devel | |
32 | Requires(post,postun): /sbin/ldconfig | |
33 | Requires: libgcrypt >= 1.2.4 | |
34 | Requires: libtasn1 >= 2.6 | |
35 | #Requires: opencdk >= 0.6.6 | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | GnuTLS is a project that aims to develop a library which provides a | |
40 | secure layer, over a reliable transport layer (ie. TCP/IP). Currently | |
41 | the gnuTLS library implements the proposed standards by the IETF's TLS | |
42 | working group. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej | |
46 | powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP). | |
47 | Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez | |
48 | grupę roboczą IETF TLS. | |
49 | ||
50 | %package devel | |
51 | Summary: Header files etc to develop gnutls applications | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls | |
53 | License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs) | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: libgcrypt-devel >= 1.2.4 | |
57 | Requires: libtasn1-devel >= 2.6 | |
58 | #Requires: opencdk-devel >= 0.6.6 | |
59 | Requires: zlib-devel | |
60 | # libgnutls-extra R: lzo-devel | |
61 | ||
62 | %description devel | |
63 | Header files etc to develop gnutls applications. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe i inne do gnutls. | |
67 | ||
68 | %package static | |
69 | Summary: Static gnutls library | |
70 | Summary(pl.UTF-8): Biblioteka statyczna gnutls | |
71 | License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs) | |
72 | Group: Development/Libraries | |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
76 | Static gnutls library. | |
77 | ||
78 | %description static -l pl.UTF-8 | |
79 | Biblioteka statyczna gnutls. | |
80 | ||
81 | %package c++ | |
82 | Summary: libgnutlsxx - C++ interface to gnutls library | |
83 | Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls | |
84 | License: LGPL v2.1+ | |
85 | Group: Libraries | |
86 | Requires: %{name} = %{version}-%{release} | |
87 | ||
88 | %description c++ | |
89 | libgnutlsxx - C++ interface to gnutls library. | |
90 | ||
91 | %description c++ -l pl.UTF-8 | |
92 | libgnutlsxx - interfejs C++ do biblioteki gnutls. | |
93 | ||
94 | %package c++-devel | |
95 | Summary: Header files for libgnutlsxx, a C++ interface to gnutls library | |
96 | Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls | |
97 | License: LGPL v2.1+ | |
98 | Group: Development/Libraries | |
99 | Requires: %{name}-c++ = %{version}-%{release} | |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | Requires: libstdc++-devel | |
102 | ||
103 | %description c++-devel | |
104 | Header files for libgnutlsxx, a C++ interface to gnutls library. | |
105 | ||
106 | %description c++-devel -l pl.UTF-8 | |
107 | Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls. | |
108 | ||
109 | %package c++-static | |
110 | Summary: Static version of libgnutlsxx, a C++ interface to gnutls library | |
111 | Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls | |
112 | License: LGPL v2.1+ | |
113 | Group: Development/Libraries | |
114 | Requires: %{name}-c++-devel = %{version}-%{release} | |
115 | ||
116 | %description c++-static | |
117 | Static version of libgnutlsxx, a C++ interface to gnutls library. | |
118 | ||
119 | %description c++-static -l pl.UTF-8 | |
120 | Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls. | |
121 | ||
122 | %package -n guile-gnutls | |
123 | Summary: Guile bindings for GnuTLS | |
124 | Summary(pl.UTF-8): Wiązania Guile do GnuTLS | |
125 | License: LGPL v2.1+ (gnutls binding), GPL v3+ (gnutls-extra binding) | |
126 | Group: Development/Languages | |
127 | Requires: %{name} = %{version}-%{release} | |
128 | Requires: guile >= 5:1.8 | |
129 | ||
130 | %description -n guile-gnutls | |
131 | Guile bindings for GnuTLS. | |
132 | ||
133 | %description -n guile-gnutls -l pl.UTF-8 | |
134 | Wiązania Guile do GnuTLS. | |
135 | ||
136 | %prep | |
137 | %setup -q | |
138 | %patch0 -p1 | |
139 | %patch1 -p1 | |
140 | ||
141 | %build | |
142 | %{__libtoolize} | |
143 | %{__aclocal} -I m4 -I gl/m4 -I lib/gl/m4 -I libextra/gl/m4 -I lib/m4 -I libextra/m4 | |
144 | %{__autoconf} | |
145 | %{__autoheader} | |
146 | %{__automake} | |
147 | cd lib | |
148 | %{__aclocal} -I m4 -I gl/m4 | |
149 | %{__autoconf} | |
150 | %{__autoheader} | |
151 | %{__automake} | |
152 | cd .. | |
153 | %configure \ | |
154 | --with-lzo | |
155 | ||
156 | %{__make} | |
157 | ||
158 | %install | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
161 | %{__make} install \ | |
162 | DESTDIR=$RPM_BUILD_ROOT | |
163 | ||
164 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libguile-gnutls-*.{la,a} | |
165 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir | |
166 | ||
167 | %find_lang libgnutls | |
168 | ||
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %post | |
173 | /sbin/ldconfig | |
174 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
175 | ||
176 | %postun | |
177 | /sbin/ldconfig | |
178 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
179 | ||
180 | %post c++ -p /sbin/ldconfig | |
181 | %postun c++ -p /sbin/ldconfig | |
182 | ||
183 | %post -n guile-gnutls -p /sbin/ldconfig | |
184 | %postun -n guile-gnutls -p /sbin/ldconfig | |
185 | ||
186 | %files -f libgnutls.lang | |
187 | %defattr(644,root,root,755) | |
188 | %doc AUTHORS ChangeLog NEWS README THANKS | |
189 | %attr(755,root,root) %{_bindir}/certtool | |
190 | %attr(755,root,root) %{_bindir}/gnutls-* | |
191 | %attr(755,root,root) %{_bindir}/psktool | |
192 | %attr(755,root,root) %{_bindir}/srptool | |
193 | %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.* | |
194 | %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.26 | |
195 | %attr(755,root,root) %{_libdir}/libgnutls-extra.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-extra.so.26 | |
197 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.* | |
198 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.26 | |
199 | %{_mandir}/man1/certtool.1* | |
200 | %{_mandir}/man1/gnutls-*.1* | |
201 | %{_mandir}/man1/psktool.1* | |
202 | %{_mandir}/man1/srptool.1* | |
203 | %{_infodir}/gnutls.info* | |
204 | %{_infodir}/gnutls-*.png | |
205 | ||
206 | %files devel | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_libdir}/libgnutls.so | |
209 | %attr(755,root,root) %{_libdir}/libgnutls-extra.so | |
210 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so | |
211 | %{_libdir}/libgnutls.la | |
212 | %{_libdir}/libgnutls-extra.la | |
213 | %{_libdir}/libgnutls-openssl.la | |
214 | %{_includedir}/gnutls | |
215 | %exclude %{_includedir}/gnutls/gnutlsxx.h | |
216 | %{_pkgconfigdir}/gnutls.pc | |
217 | %{_pkgconfigdir}/gnutls-extra.pc | |
218 | %{_mandir}/man3/*gnutls*.3* | |
219 | ||
220 | %files static | |
221 | %defattr(644,root,root,755) | |
222 | %{_libdir}/libgnutls.a | |
223 | %{_libdir}/libgnutls-extra.a | |
224 | %{_libdir}/libgnutls-openssl.a | |
225 | ||
226 | %files c++ | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.* | |
229 | %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.26 | |
230 | ||
231 | %files c++-devel | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so | |
234 | %{_libdir}/libgnutlsxx.la | |
235 | %{_includedir}/gnutls/gnutlsxx.h | |
236 | ||
237 | %files c++-static | |
238 | %defattr(644,root,root,755) | |
239 | %{_libdir}/libgnutlsxx.a | |
240 | ||
241 | %files -n guile-gnutls | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/libguile-gnutls-v-1.so.*.*.* | |
244 | %attr(755,root,root) %ghost %{_libdir}/libguile-gnutls-v-1.so.0 | |
245 | %attr(755,root,root) %{_libdir}/libguile-gnutls-v-1.so | |
246 | %attr(755,root,root) %{_libdir}/libguile-gnutls-extra-v-1.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libguile-gnutls-extra-v-1.so.0 | |
248 | %attr(755,root,root) %{_libdir}/libguile-gnutls-extra-v-1.so | |
249 | %{_datadir}/guile/site/gnutls.scm | |
250 | %dir %{_datadir}/guile/site/gnutls | |
251 | %{_datadir}/guile/site/gnutls/extra.scm |