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