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