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