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