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