]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- up to 2.12.3
[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.3
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:  04b72b022b42b10df12cbbae051e2d55
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-link.patch
12 #Patch3:                %{name}-pakchois.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.4.0
21 BuildRequires:  libstdc++-devel
22 BuildRequires:  libtasn1-devel >= 2.9
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 # pakchois is included in gnutls since 2.12.3
29 #BuildRequires: pakchois-devel
30 BuildRequires:  pkgconfig
31 BuildRequires:  readline-devel
32 BuildRequires:  rpmbuild(macros) >= 1.383
33 BuildRequires:  texinfo >= 4.8
34 BuildRequires:  zlib-devel
35 Requires(post,postun):  /sbin/ldconfig
36 Requires:       libgcrypt >= 1.4.0
37 Requires:       libtasn1 >= 2.9
38 #Requires:      opencdk >= 0.6.6
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 GnuTLS is a project that aims to develop a library which provides a
43 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
44 the gnuTLS library implements the proposed standards by the IETF's TLS
45 working group.
46
47 %description -l pl.UTF-8
48 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
49 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
50 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
51 grupę roboczą IETF TLS.
52
53 %package devel
54 Summary:        Header files etc to develop gnutls applications
55 Summary(pl.UTF-8):      Pliki nagłówkowe i inne do gnutls
56 License:        LGPL v2.1+ (libgnutls), GPL v3+ (extra libs)
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59 Requires:       libgcrypt-devel >= 1.4.0
60 Requires:       libtasn1-devel >= 2.9
61 #Requires:      opencdk-devel >= 0.6.6
62 #Requires:      pakchois-devel
63 # lzo-devel for libgnutls-extra only
64 Requires:       lzo-devel
65 Requires:       zlib-devel
66
67 %description devel
68 Header files etc to develop gnutls applications.
69
70 %description devel -l pl.UTF-8
71 Pliki nagłówkowe i inne do gnutls.
72
73 %package static
74 Summary:        Static gnutls library
75 Summary(pl.UTF-8):      Biblioteka statyczna gnutls
76 License:        LGPL v2.1+ (libgnutls), GPL v3+ (extra libs)
77 Group:          Development/Libraries
78 Requires:       %{name}-devel = %{version}-%{release}
79
80 %description static
81 Static gnutls library.
82
83 %description static -l pl.UTF-8
84 Biblioteka statyczna gnutls.
85
86 %package c++
87 Summary:        libgnutlsxx - C++ interface to gnutls library
88 Summary(pl.UTF-8):      libgnutlsxx - interfejs C++ do biblioteki gnutls
89 License:        LGPL v2.1+
90 Group:          Libraries
91 Requires:       %{name} = %{version}-%{release}
92
93 %description c++
94 libgnutlsxx - C++ interface to gnutls library.
95
96 %description c++ -l pl.UTF-8
97 libgnutlsxx - interfejs C++ do biblioteki gnutls.
98
99 %package c++-devel
100 Summary:        Header files for libgnutlsxx, a C++ interface to gnutls library
101 Summary(pl.UTF-8):      Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
102 License:        LGPL v2.1+
103 Group:          Development/Libraries
104 Requires:       %{name}-c++ = %{version}-%{release}
105 Requires:       %{name}-devel = %{version}-%{release}
106 Requires:       libstdc++-devel
107
108 %description c++-devel
109 Header files for libgnutlsxx, a C++ interface to gnutls library.
110
111 %description c++-devel -l pl.UTF-8
112 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
113
114 %package c++-static
115 Summary:        Static version of libgnutlsxx, a C++ interface to gnutls library
116 Summary(pl.UTF-8):      Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
117 License:        LGPL v2.1+
118 Group:          Development/Libraries
119 Requires:       %{name}-c++-devel = %{version}-%{release}
120
121 %description c++-static
122 Static version of libgnutlsxx, a C++ interface to gnutls library.
123
124 %description c++-static -l pl.UTF-8
125 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
126
127 %package -n guile-gnutls
128 Summary:        Guile bindings for GnuTLS
129 Summary(pl.UTF-8):      Wiązania Guile do GnuTLS
130 License:        LGPL v2.1+ (gnutls binding), GPL v3+ (gnutls-extra binding)
131 Group:          Development/Languages
132 Requires:       %{name} = %{version}-%{release}
133 Requires:       guile >= 5:1.8
134
135 %description -n guile-gnutls
136 Guile bindings for GnuTLS.
137
138 %description -n guile-gnutls -l pl.UTF-8
139 Wiązania Guile do GnuTLS.
140
141 %prep
142 %setup -q
143 %patch0 -p1
144 %patch1 -p1
145 #%patch3 -p1
146
147 %build
148 %{__libtoolize}
149 %{__aclocal} -I m4 -I gl/m4 -I lib/gl/m4 -I libextra/gl/m4 -I lib/m4 -I libextra/m4
150 %{__autoconf}
151 %{__autoheader}
152 %{__automake}
153 cd lib
154 %{__aclocal} -I m4 -I gl/m4
155 %{__autoconf}
156 %{__autoheader}
157 %{__automake}
158 cd ../libextra
159 %{__aclocal} -I m4 -I gl/m4 -I ../lib/m4 -I ../lib/gl/m4
160 %{__autoconf}
161 %{__autoheader}
162 %{__automake}
163 cd ..
164 %configure \
165         --disable-silent-rules \
166         --with-libgcrypt \
167         --with-lzo
168
169 %{__make}
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173
174 %{__make} install \
175         DESTDIR=$RPM_BUILD_ROOT
176
177 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libguile-gnutls-*.{la,a}
178 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
179
180 %find_lang libgnutls
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 libgnutls.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.26
209 %attr(755,root,root) %{_libdir}/libgnutls-extra.so.*.*.*
210 %attr(755,root,root) %ghost %{_libdir}/libgnutls-extra.so.26
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.27
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
This page took 0.049694 seconds and 3 git commands to generate.