]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- updated to 3.0.15
[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.15
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:  37bdac12b5c039c7a8738b5d85eda968
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:  autogen >= 5.15
20 BuildRequires:  autogen-devel >= 5.15
21 BuildRequires:  automake >= 1:1.11
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.10
30 BuildRequires:  libtool >= 2:1.5
31 %{!?with_gcrypt:BuildRequires:  nettle-devel >= 2.4}
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:  tar >= 1:1.22
40 BuildRequires:  texinfo >= 4.8
41 BuildRequires:  xz
42 BuildRequires:  zlib-devel
43 Requires(post,postun):  /sbin/ldconfig
44 %{?with_gcrypt:Requires:        libgcrypt >= 1.4.0}
45 Requires:       libtasn1 >= 2.10
46 %{!?with_gcrypt:Requires:       nettle >= 2.4}
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.10
71 %{!?with_gcrypt:Requires:       nettle-devel >= 2.4}
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 # regenerate autogen stuff
158 %{__rm} src/{ocsptool-args,p11tool-args,psk-args,cli-debug-args,cli-args,serv-args,srptool-args,certtool-args}.[ch]
159
160 %build
161 %{__libtoolize}
162 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
163 %{__autoconf}
164 %{__autoheader}
165 %{__automake}
166 %configure \
167         --disable-silent-rules \
168         %{?with_gcrypt:--with-libgcrypt}
169
170 # docs build is broken with -jN
171 %{__make} -j1
172
173 %install
174 rm -rf $RPM_BUILD_ROOT
175
176 %{__make} install \
177         DESTDIR=$RPM_BUILD_ROOT
178
179 # although libgnutls.la is obsoleted by pkg-config, there is
180 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
181
182 # guile module - dynamic only
183 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
184
185 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
186
187 %find_lang %{name}
188
189 %clean
190 rm -rf $RPM_BUILD_ROOT
191
192 %post
193 /sbin/ldconfig
194 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
195
196 %postun
197 /sbin/ldconfig
198 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
199
200 %post   c++ -p /sbin/ldconfig
201 %postun c++ -p /sbin/ldconfig
202
203 %post   -n guile-gnutls -p /sbin/ldconfig
204 %postun -n guile-gnutls -p /sbin/ldconfig
205
206 %files -f %{name}.lang
207 %defattr(644,root,root,755)
208 %doc AUTHORS ChangeLog NEWS README THANKS
209 %attr(755,root,root) %{_bindir}/certtool
210 %attr(755,root,root) %{_bindir}/crywrap
211 %attr(755,root,root) %{_bindir}/gnutls-*
212 %attr(755,root,root) %{_bindir}/ocsptool
213 %attr(755,root,root) %{_bindir}/p11tool
214 %attr(755,root,root) %{_bindir}/psktool
215 %attr(755,root,root) %{_bindir}/srptool
216 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
218 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
219 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
220 %{_mandir}/man1/certtool.1*
221 %{_mandir}/man1/gnutls-*.1*
222 %{_mandir}/man1/ocsptool.1*
223 %{_mandir}/man1/p11tool.1*
224 %{_mandir}/man1/psktool.1*
225 %{_mandir}/man1/srptool.1*
226 %{_infodir}/gnutls.info*
227 %{_infodir}/gnutls-*.png
228 %{_infodir}/pkcs11-vision.png
229
230 %files devel
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/libgnutls.so
233 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
234 %{_libdir}/libgnutls.la
235 %{_libdir}/libgnutls-openssl.la
236 %{_includedir}/gnutls
237 %exclude %{_includedir}/gnutls/gnutlsxx.h
238 %{_pkgconfigdir}/gnutls.pc
239 %{_mandir}/man3/gnutls_*.3*
240
241 %files static
242 %defattr(644,root,root,755)
243 %{_libdir}/libgnutls.a
244 %{_libdir}/libgnutls-openssl.a
245
246 %files c++
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
249 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
250
251 %files c++-devel
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
254 %{_libdir}/libgnutlsxx.la
255 %{_includedir}/gnutls/gnutlsxx.h
256
257 %files c++-static
258 %defattr(644,root,root,755)
259 %{_libdir}/libgnutlsxx.a
260
261 %files -n guile-gnutls
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
264 %{_datadir}/guile/site/gnutls.scm
265 %{_datadir}/guile/site/gnutls
266 %{_infodir}/gnutls-guile.info*
This page took 0.048094 seconds and 4 git commands to generate.