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