]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- updated to 3.1.7
[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.7
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:  dc9f58084f926f51df2da4a828b1e3fb
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         --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
176         %{?with_gcrypt:--with-libgcrypt} \
177         %{?with_tpm:--with-tpm}
178
179 # docs build is broken with -jN
180 %{__make} -j1
181
182 %install
183 rm -rf $RPM_BUILD_ROOT
184
185 %{__make} install \
186         DESTDIR=$RPM_BUILD_ROOT
187
188 # although libgnutls.la is obsoleted by pkg-config, there is
189 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
190
191 # guile module - dynamic only
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
193
194 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
195
196 %find_lang %{name}
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %post
202 /sbin/ldconfig
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
204
205 %postun
206 /sbin/ldconfig
207 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
208
209 %post   c++ -p /sbin/ldconfig
210 %postun c++ -p /sbin/ldconfig
211
212 %post   -n guile-gnutls -p /sbin/ldconfig
213 %postun -n guile-gnutls -p /sbin/ldconfig
214
215 %files -f %{name}.lang
216 %defattr(644,root,root,755)
217 %doc AUTHORS ChangeLog NEWS README THANKS
218 %attr(755,root,root) %{_bindir}/certtool
219 %attr(755,root,root) %{_bindir}/crywrap
220 %{?with_dane:%attr(755,root,root) %{_bindir}/danetool}
221 %attr(755,root,root) %{_bindir}/gnutls-*
222 %attr(755,root,root) %{_bindir}/ocsptool
223 %attr(755,root,root) %{_bindir}/p11tool
224 %attr(755,root,root) %{_bindir}/psktool
225 %attr(755,root,root) %{_bindir}/srptool
226 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
227 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
228 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
229 %if %{with dane}
230 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
231 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
232 %endif
233 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
234 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
235 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0
237 %{_mandir}/man1/certtool.1*
238 %{?with_dane:%{_mandir}/man1/danetool.1*}
239 %{_mandir}/man1/gnutls-*.1*
240 %{_mandir}/man1/ocsptool.1*
241 %{_mandir}/man1/p11tool.1*
242 %{_mandir}/man1/psktool.1*
243 %{_mandir}/man1/srptool.1*
244 %{_mandir}/man1/tpmtool.1*
245 %{_infodir}/gnutls.info*
246 %{_infodir}/gnutls-*.png
247 %{_infodir}/pkcs11-vision.png
248
249 %files devel
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/libgnutls.so
252 %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so}
253 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
254 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so
255 %{_libdir}/libgnutls.la
256 %{?with_dane:%{_libdir}/libgnutls-dane.la}
257 %{_libdir}/libgnutls-openssl.la
258 %{_libdir}/libgnutls-xssl.la
259 %{_includedir}/gnutls
260 %exclude %{_includedir}/gnutls/gnutlsxx.h
261 %{_pkgconfigdir}/gnutls.pc
262 %{?with_dane:%{_pkgconfigdir}/gnutls-dane.pc}
263 %{_mandir}/man3/gnutls_*.3*
264
265 %files static
266 %defattr(644,root,root,755)
267 %{_libdir}/libgnutls.a
268 %{?with_dane:%{_libdir}/libgnutls-dane.a}
269 %{_libdir}/libgnutls-openssl.a
270 %{_libdir}/libgnutls-xssl.a
271
272 %files c++
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
275 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
276
277 %files c++-devel
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
280 %{_libdir}/libgnutlsxx.la
281 %{_includedir}/gnutls/gnutlsxx.h
282
283 %files c++-static
284 %defattr(644,root,root,755)
285 %{_libdir}/libgnutlsxx.a
286
287 %files -n guile-gnutls
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
290 %{_datadir}/guile/site/gnutls.scm
291 %{_datadir}/guile/site/gnutls
292 %{_infodir}/gnutls-guile.info*
This page took 0.061655 seconds and 4 git commands to generate.