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