]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- updated to 3.1.11
[packages/gnutls.git] / gnutls.spec
1 #
2 # Conditional build:
3 %bcond_with     gcrypt  # use gcrypt crypto backend instead of nettle (withdrawn?)
4 %bcond_without  dane    # libdane (DANE with DNSSEC certificate verification)
5 %bcond_with     tpm     # TPM support in gnutls (cannot be used with GPL programs)
6 #
7 Summary:        The GNU Transport Layer Security Library
8 Summary(pl.UTF-8):      Biblioteka GNU TLS (Transport Layer Security)
9 Name:           gnutls
10 Version:        3.1.11
11 Release:        1
12 License:        LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
13 Group:          Libraries
14 Source0:        ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/%{name}-%{version}.tar.lz
15 # Source0-md5:  83e71089a58df0a69b295c03c287b2a5
16 Patch0:         %{name}-info.patch
17 Patch1:         %{name}-link.patch
18 Patch2:         %{name}-pl.po-update.patch
19 URL:            http://www.gnutls.org/
20 BuildRequires:  autoconf >= 2.61
21 BuildRequires:  automake >= 1:1.11.3
22 BuildRequires:  gettext-devel >= 0.18
23 BuildRequires:  gtk-doc >= 1.1
24 BuildRequires:  guile-devel >= 5:2.0
25 BuildRequires:  libcfg+-devel
26 %{?with_gcrypt:BuildRequires:   libgcrypt-devel >= 1.4.0}
27 BuildRequires:  libidn-devel
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  libtasn1-devel >= 2.14
30 BuildRequires:  libtool >= 2:1.5
31 BuildRequires:  lzip
32 %{!?with_gcrypt:BuildRequires:  nettle-devel >= 2.5}
33 # miniopencdk is included in sources and currently maintained
34 # as part of gnutls, not external package
35 #BuildRequires: opencdk-devel >= 0.6.6
36 BuildRequires:  p11-kit-devel >= 0.11
37 BuildRequires:  pkgconfig
38 BuildRequires:  readline-devel
39 BuildRequires:  rpmbuild(macros) >= 1.383
40 BuildRequires:  sed >= 4.0
41 BuildRequires:  tar >= 1:1.22
42 BuildRequires:  texinfo >= 4.8
43 %{?with_tpm:BuildRequires:      trousers-devel}
44 %{?with_dane:BuildRequires:     unbound-devel}
45 BuildRequires:  zlib-devel
46 Requires(post,postun):  /sbin/ldconfig
47 %{?with_gcrypt:Requires:        libgcrypt >= 1.4.0}
48 Requires:       libtasn1 >= 2.14
49 %{!?with_gcrypt:Requires:       nettle >= 2.5}
50 #Requires:      opencdk >= 0.6.6
51 Requires:       p11-kit >= 0.11
52 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53
54 %description
55 GnuTLS is a project that aims to develop a library which provides a
56 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
57 the gnuTLS library implements the proposed standards by the IETF's TLS
58 working group.
59
60 %description -l pl.UTF-8
61 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
62 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
63 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
64 grupę roboczą IETF TLS.
65
66 %package devel
67 Summary:        Header files etc to develop gnutls applications
68 Summary(pl.UTF-8):      Pliki nagłówkowe i inne do gnutls
69 License:        LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
70 Group:          Development/Libraries
71 Requires:       %{name} = %{version}-%{release}
72 %{?with_gcrypt:Requires:        libgcrypt-devel >= 1.4.0}
73 Requires:       libtasn1-devel >= 2.14
74 %{!?with_gcrypt:Requires:       nettle-devel >= 2.5}
75 #Requires:      opencdk-devel >= 0.6.6
76 Requires:       p11-kit-devel >= 0.11
77 %{?with_tpm:Requires:   trousers-devel}
78 %{?with_dane:Requires:  unbound-devel}
79 Requires:       zlib-devel
80
81 %description devel
82 Header files etc to develop gnutls applications.
83
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe i inne do gnutls.
86
87 %package static
88 Summary:        Static gnutls library
89 Summary(pl.UTF-8):      Biblioteka statyczna gnutls
90 License:        LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
91 Group:          Development/Libraries
92 Requires:       %{name}-devel = %{version}-%{release}
93
94 %description static
95 Static gnutls library.
96
97 %description static -l pl.UTF-8
98 Biblioteka statyczna gnutls.
99
100 %package c++
101 Summary:        libgnutlsxx - C++ interface to gnutls library
102 Summary(pl.UTF-8):      libgnutlsxx - interfejs C++ do biblioteki gnutls
103 License:        LGPL v2.1+
104 Group:          Libraries
105 Requires:       %{name} = %{version}-%{release}
106
107 %description c++
108 libgnutlsxx - C++ interface to gnutls library.
109
110 %description c++ -l pl.UTF-8
111 libgnutlsxx - interfejs C++ do biblioteki gnutls.
112
113 %package c++-devel
114 Summary:        Header files for libgnutlsxx, a C++ interface to gnutls library
115 Summary(pl.UTF-8):      Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
116 License:        LGPL v2.1+
117 Group:          Development/Libraries
118 Requires:       %{name}-c++ = %{version}-%{release}
119 Requires:       %{name}-devel = %{version}-%{release}
120 Requires:       libstdc++-devel
121
122 %description c++-devel
123 Header files for libgnutlsxx, a C++ interface to gnutls library.
124
125 %description c++-devel -l pl.UTF-8
126 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
127
128 %package c++-static
129 Summary:        Static version of libgnutlsxx, a C++ interface to gnutls library
130 Summary(pl.UTF-8):      Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
131 License:        LGPL v2.1+
132 Group:          Development/Libraries
133 Requires:       %{name}-c++-devel = %{version}-%{release}
134
135 %description c++-static
136 Static version of libgnutlsxx, a C++ interface to gnutls library.
137
138 %description c++-static -l pl.UTF-8
139 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
140
141 %package -n guile-gnutls
142 Summary:        Guile bindings for GnuTLS
143 Summary(pl.UTF-8):      Wiązania Guile do GnuTLS
144 License:        LGPL v2.1+
145 Group:          Development/Languages
146 Requires:       %{name} = %{version}-%{release}
147 Requires:       guile >= 5:2.0
148
149 %description -n guile-gnutls
150 Guile bindings for GnuTLS.
151
152 %description -n guile-gnutls -l pl.UTF-8
153 Wiązania Guile do GnuTLS.
154
155 %prep
156 %setup -q
157 %patch0 -p1
158 %patch1 -p1
159 %patch2 -p1
160
161 %{__rm} po/stamp-po
162
163 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
164 # (after gnutls or libtool change)
165 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
166
167 %build
168 %{__libtoolize}
169 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
170 %{__autoconf}
171 %{__autoheader}
172 %{__automake}
173 %configure \
174         --disable-silent-rules \
175         --enable-heartbeat-support \
176         --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
177         %{?with_gcrypt:--with-libgcrypt} \
178         %{?with_tpm:--with-tpm}
179
180 # docs build is broken with -jN
181 %{__make} -j1
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185
186 %{__make} install \
187         DESTDIR=$RPM_BUILD_ROOT
188
189 # although libgnutls.la is obsoleted by pkg-config, there is
190 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
191
192 # guile module - dynamic only
193 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
194
195 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
196
197 %find_lang %{name}
198
199 %clean
200 rm -rf $RPM_BUILD_ROOT
201
202 %post
203 /sbin/ldconfig
204 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
205
206 %postun
207 /sbin/ldconfig
208 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
209
210 %post   c++ -p /sbin/ldconfig
211 %postun c++ -p /sbin/ldconfig
212
213 %post   -n guile-gnutls -p /sbin/ldconfig
214 %postun -n guile-gnutls -p /sbin/ldconfig
215
216 %files -f %{name}.lang
217 %defattr(644,root,root,755)
218 %doc AUTHORS ChangeLog NEWS README THANKS
219 %attr(755,root,root) %{_bindir}/certtool
220 %attr(755,root,root) %{_bindir}/crywrap
221 %{?with_dane:%attr(755,root,root) %{_bindir}/danetool}
222 %attr(755,root,root) %{_bindir}/gnutls-*
223 %attr(755,root,root) %{_bindir}/ocsptool
224 %attr(755,root,root) %{_bindir}/p11tool
225 %attr(755,root,root) %{_bindir}/psktool
226 %attr(755,root,root) %{_bindir}/srptool
227 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
228 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
229 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
230 %if %{with dane}
231 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
232 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
233 %endif
234 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
235 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
236 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.*
237 %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0
238 %{_mandir}/man1/certtool.1*
239 %{?with_dane:%{_mandir}/man1/danetool.1*}
240 %{_mandir}/man1/gnutls-*.1*
241 %{_mandir}/man1/ocsptool.1*
242 %{_mandir}/man1/p11tool.1*
243 %{_mandir}/man1/psktool.1*
244 %{_mandir}/man1/srptool.1*
245 %{_mandir}/man1/tpmtool.1*
246 %{_infodir}/gnutls.info*
247 %{_infodir}/gnutls-*.png
248 %{_infodir}/pkcs11-vision.png
249
250 %files devel
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libgnutls.so
253 %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so}
254 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
255 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so
256 %{_libdir}/libgnutls.la
257 %{?with_dane:%{_libdir}/libgnutls-dane.la}
258 %{_libdir}/libgnutls-openssl.la
259 %{_libdir}/libgnutls-xssl.la
260 %{_includedir}/gnutls
261 %exclude %{_includedir}/gnutls/gnutlsxx.h
262 %{_pkgconfigdir}/gnutls.pc
263 %{?with_dane:%{_pkgconfigdir}/gnutls-dane.pc}
264 %{_mandir}/man3/gnutls_*.3*
265
266 %files static
267 %defattr(644,root,root,755)
268 %{_libdir}/libgnutls.a
269 %{?with_dane:%{_libdir}/libgnutls-dane.a}
270 %{_libdir}/libgnutls-openssl.a
271 %{_libdir}/libgnutls-xssl.a
272
273 %files c++
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
276 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
277
278 %files c++-devel
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
281 %{_libdir}/libgnutlsxx.la
282 %{_includedir}/gnutls/gnutlsxx.h
283
284 %files c++-static
285 %defattr(644,root,root,755)
286 %{_libdir}/libgnutlsxx.a
287
288 %files -n guile-gnutls
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
291 %{_datadir}/guile/site/gnutls.scm
292 %{_datadir}/guile/site/gnutls
293 %{_infodir}/gnutls-guile.info*
This page took 0.062945 seconds and 4 git commands to generate.