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